hsy
4 天以前 bb0b80bd7ca7c1f979ab0125ae01f3faa1d14f4b
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package cn.iocoder.yudao.module.mes.controller.admin.dv.metering.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.time.LocalDate;
 
@Schema(description = "管理后台 - MES 计量器具新增/修改 Request VO")
@Data
public class MesDvMeteringSaveReqVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;
 
    @Schema(description = "计量器具编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "MD-001")
    @NotEmpty(message = "计量器具编码不能为空")
    private String code;
 
    @Schema(description = "计量器具名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数显卡尺")
    @NotEmpty(message = "计量器具名称不能为空")
    private String name;
 
    @Schema(description = "规格型号", example = "0-150mm")
    private String specification;
 
    @Schema(description = "品牌/生产厂家", example = "三丰")
    private String brand;
 
    @Schema(description = "器具类别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "器具类别不能为空")
    private Integer category;
 
    @Schema(description = "精度", example = "0.01mm")
    private String precision;
 
    @Schema(description = "量程", example = "0-150mm")
    private String range;
 
    @Schema(description = "使用部门编号", example = "100")
    private Long deptId;
 
    @Schema(description = "责任人编号", example = "200")
    private Long chargeUserId;
 
    @Schema(description = "校准周期(月)", requiredMode = Schema.RequiredMode.REQUIRED, example = "12")
    @NotNull(message = "校准周期不能为空")
    private Integer checkCycleCount;
 
    @Schema(description = "投入使用日期")
    private LocalDate useDate;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}