2026-06-29 940c8481d2fdcf51341db4ccd6fd6fcc2d43debb
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
package cn.iocoder.yudao.module.mes.controller.admin.md.unitmeasure.vo;
 
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
 
@Schema(description = "管理后台 - MES 计量单位新增/修改 Request VO")
@Data
public class MesMdUnitMeasureSaveReqVO {
 
    @Schema(description = "单位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;
 
    @Schema(description = "单位编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "KG")
    @NotEmpty(message = "单位编码不能为空")
    private String code;
 
    @Schema(description = "单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "公斤")
    @NotEmpty(message = "单位名称不能为空")
    private String name;
 
    @Schema(description = "是否主单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    @NotNull(message = "是否主单位不能为空")
    private Boolean primaryFlag;
 
    @Schema(description = "主单位编号", example = "200")
    private Long primaryId;
 
    @Schema(description = "与主单位换算比例", example = "1000.0000")
    private BigDecimal changeRate;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "状态不能为空")
    @InEnum(CommonStatusEnum.class)
    private Integer status;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
    }