package com.zt.plat.module.erp.controller.admin.erp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Schema(description = "管理后台 - ERP内部订单新增/修改 Request VO")
@Data
public class ErpInternalOrderSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19327")
    private Long id;

    @Schema(description = "内部订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内部订单编号不能为空")
    private String number;

    @Schema(description = "内部订单描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "内部订单描述不能为空")
    private String name;

    @Schema(description = "内部订单类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "内部订单类型不能为空")
    private String type;

    @Schema(description = "是否已关闭;使用这个基础数据是，如果为X时必须和工区使用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "是否已关闭;使用这个基础数据是，如果为X时必须和工区使用不能为空")
    private String isOff;

    @Schema(description = "是否已完成")
    private String isFinish;

}