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
package cn.iocoder.yudao.module.mes.controller.admin.pro.wage.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
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 MesProProcessWageFieldSaveReqVO {
 
    @Schema(description = "编号")
    private Long id;
 
    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工序不能为空")
    private Long processId;
 
    @Schema(description = "字段编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "TEMP_COEF")
    @NotBlank(message = "字段编码不能为空")
    private String fieldCode;
 
    @Schema(description = "字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "高温系数")
    @NotBlank(message = "字段名称不能为空")
    private String fieldName;
 
    @Schema(description = "字段类型:1-数值 2-文本 3-下拉 4-布尔", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "字段类型不能为空")
    private Integer fieldType;
 
    @Schema(description = "单位", example = "系数")
    private String unit;
 
    @Schema(description = "工序级固定值", example = "1.10")
    private String fieldValue;
 
    @Schema(description = "计算角色:1-系数 2-加减金额 3-计价数量 4-仅记录", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "计算角色不能为空")
    private Integer calcRole;
 
    @Schema(description = "计价数量单价", example = "2.00")
    private BigDecimal unitPrice;
 
    @Schema(description = "排序")
    private Integer sort;
 
    @Schema(description = "状态:0-启用 1-禁用")
    private Integer status;
 
    @Schema(description = "备注")
    private String remark;
 
}