gaoluyang
昨天 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
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
62
63
64
65
66
67
package cn.iocoder.yudao.module.mes.controller.admin.pro.worktime.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
 
@Schema(description = "管理后台 - MES 辅助工时配置新增/修改 Request VO")
@Data
public class MesProWorktimeAuxSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "工序不能为空,请选择该辅助工时适用的工序")
    private Long processId;
 
    @Schema(description = "工作站(机台)编号,空=不限机台", example = "2048")
    private Long workstationId;
 
    @Schema(description = "辅助项目编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "AUX_REEL_CHANGE")
    @NotBlank(message = "辅助项目编码不能为空")
    private String itemCode;
 
    @Schema(description = "辅助项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "上下放线盘")
    @NotBlank(message = "辅助项目名称不能为空")
    private String itemName;
 
    @Schema(description = "计量方式:1-按次 2-按个 3-按盘 4-按米折算", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "计量方式不能为空,请选择 1-按次 / 2-按个 / 3-按盘 / 4-按米折算")
    private Integer measureType;
 
    @Schema(description = "辅助计薪方式:0-不计薪 1-按工序辅助小时工资 2-按本项单价", example = "1")
    private Integer wageMode;
 
    @Schema(description = "本项辅助小时工资(元/小时),计薪方式=2 时必填", example = "25.00")
    @DecimalMin(value = "0", message = "辅助小时工资不能小于 0;请按元/小时填写")
    private BigDecimal wageRate;
 
    @Schema(description = "单次/单个/单盘分钟数", example = "5.00")
    @DecimalMin(value = "0", message = "单项分钟数不能小于 0")
    private BigDecimal durationMinutes;
 
    @Schema(description = "折算速度(米/分),按米折算时必填且必须大于 0", example = "30.00")
    @DecimalMin(value = "0", message = "折算速度不能小于 0")
    private BigDecimal speedMPerMin;
 
    @Schema(description = "换色/换料起始材料", example = "PVC")
    private String materialFrom;
 
    @Schema(description = "换色/换料目标材料", example = "LSZH")
    private String materialTo;
 
    @Schema(description = "状态:0-启用 1-禁用", example = "0")
    private Integer status;
 
    @Schema(description = "排序", example = "1")
    private Integer sort;
 
    @Schema(description = "备注")
    private String remark;
 
}