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

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - ERP生产版本新增/修改 Request VO")
@Data
public class ErpProductiveVersionSaveReqVO {

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

    @Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工厂编码不能为空")
    private String factoryNumber;

    @Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料编码不能为空")
    private String materialNumber;

    @Schema(description = "生产版本编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "生产版本编码不能为空")
    private String productiveVersionNumber;

    @Schema(description = "生产版本描述", example = "赵六")
    private String productiveVersionName;

    @Schema(description = "备选BOM编号")
    private String bomNumber;

    @Schema(description = "工艺路线组", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工艺路线组不能为空")
    private String blineGroup;

    @Schema(description = "组计数器", requiredMode = Schema.RequiredMode.REQUIRED, example = "15610")
    @NotNull(message = "组计数器不能为空")
    private Long groupCount;

    @Schema(description = "是否启用")
    private String isEnable;

}