吴羡
52 分钟以前 3d416372d21acb1a554e4e3eb96e2f9dead6d5a4
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
package cn.iocoder.yudao.module.mes.controller.admin.dc.record.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
@Schema(description = "管理后台 - MES 采集记录更正 Request VO")
@Data
public class MesDcRecordCorrectReqVO {
 
    @Schema(description = "记录编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "记录编号不能为空")
    private Long id;
 
    @Schema(description = "更正后的采集数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @NotNull(message = "更正后的数量不能为空")
    @Min(value = 0, message = "更正后的数量不能小于 0")
    private Integer quantity;
 
    @Schema(description = "更正原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "设备误计数,按实际数量更正")
    @NotBlank(message = "更正原因不能为空")
    @Size(max = 255, message = "更正原因长度不能超过 255 个字符")
    private String reason;
 
}