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
package cn.iocoder.yudao.module.mes.controller.admin.pro.wage.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDate;
 
@Schema(description = "管理后台 - MES 工序工资单价规则新增/修改 Request VO")
@Data
public class MesProProcessWageRuleSaveReqVO {
 
    @Schema(description = "编号")
    private Long id;
 
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工序不能为空")
    private Long processId;
 
    @Schema(description = "工艺路线编号,空=不限路线")
    private Long routeId;
 
    @Schema(description = "设备编号,空=不限设备")
    private Long machineryId;
 
    @Schema(description = "计费类型:1-计时 2-计件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "计费类型不能为空")
    private Integer billingType;
 
    @Schema(description = "工资单价:计时=元/小时,计件=元/件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工资单价不能为空")
    @DecimalMin(value = "0", message = "工资单价不能小于 0")
    private BigDecimal wageRate;
 
    @Schema(description = "生效开始日期")
    private LocalDate effectiveFrom;
 
    @Schema(description = "生效结束日期")
    private LocalDate effectiveTo;
 
    @Schema(description = "优先级,越大越优先")
    private Integer priority;
 
    @Schema(description = "状态:0-启用 1-禁用")
    private Integer status;
 
    @Schema(description = "备注")
    private String remark;
 
}