6 天以前 85156554438bb13930c89072ee0b7fa93192a7fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package cn.iocoder.yudao.module.mes.controller.admin.wm.sn.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
@Schema(description = "管理后台 - MES SN 码生成 Request VO")
@Data
public class MesWmSnGenerateReqVO {
 
    @Schema(description = "物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "物料编号不能为空")
    private Long itemId;
 
    @Schema(description = "批次号", example = "BATCH001")
    @Size(max = 100, message = "批次号长度不能超过 100 个字符")
    private String batchCode;
 
    @Schema(description = "生产工单编号", example = "1")
    private Long workOrderId;
 
    @Schema(description = "生成数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @NotNull(message = "生成数量不能为空")
    @Min(value = 1, message = "生成数量最小为 1")
    @Max(value = 1000, message = "生成数量最大为 1000")
    private Integer count;
 
}