liyong
5 天以前 9b386ddaa6c8892d346d1e09b8bea20cb9000f58
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
package cn.iocoder.yudao.module.mes.controller.admin.dv.checkplan.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.LocalDateTime;
 
@Schema(description = "管理后台 - MES 点检保养方案新增/修改 Request VO")
@Data
public class MesDvCheckPlanSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "方案编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "CHP001")
    @NotEmpty(message = "方案编码不能为空")
    private String code;
 
    @Schema(description = "方案名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "注塑机日检方案")
    @NotEmpty(message = "方案名称不能为空")
    private String name;
 
    @Schema(description = "方案类型(1=设备点检,2=设备保养)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "方案类型不能为空")
    private Integer type;
 
    @Schema(description = "开始日期")
    private LocalDateTime startDate;
 
    @Schema(description = "结束日期")
    private LocalDateTime endDate;
 
    @Schema(description = "周期类型(1=天,2=周,3=月,4=年)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "周期类型不能为空")
    private Integer cycleType;
 
    @Schema(description = "周期数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "周期数量不能为空")
    private Integer cycleCount;
 
    @Schema(description = "状态", example = "0")
    private Integer status;
 
    @Schema(description = "备注")
    private String remark;
 
    }