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

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 ErpProcessSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13200")
    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 = "物料描述", example = "李四")
    private String materialName;

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

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

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

    @Schema(description = "计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "计量单位不能为空")
    private String uom;

    @Schema(description = "用途")
    private String useDescription;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "状态不能为空")
    private String status;

}