tuqin
7 天以前 33fe3368c6692d67e1fae5d2922ff614e5f56404
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
68
69
70
package cn.iocoder.yudao.module.mes.controller.admin.em.meter.vo;
 
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;
import java.time.LocalDate;
 
@Schema(description = "管理后台 - MES 能耗计量点新增/修改 Request VO")
@Data
public class MesEmMeterSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "计量点编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "EM-DL-001")
    @NotEmpty(message = "计量点编码不能为空")
    private String code;
 
    @Schema(description = "计量点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "变压器车间总电表")
    @NotEmpty(message = "计量点名称不能为空")
    private String name;
 
    @Schema(description = "能源类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "能源类型不能为空")
    private Integer energyType;
 
    @Schema(description = "计量单位", example = "kWh")
    private String unit;
 
    @Schema(description = "表号", example = "DTSD341-001")
    private String meterNo;
 
    @Schema(description = "所属车间编号", example = "7")
    private Long workshopId;
 
    @Schema(description = "所属产线编号", example = "1")
    private Long lineId;
 
    @Schema(description = "关联设备编号", example = "1001")
    private Long machineryId;
 
    @Schema(description = "倍率", example = "1")
    private BigDecimal ratio;
 
    @Schema(description = "初始读数", example = "0")
    private BigDecimal initialReading;
 
    @Schema(description = "折标煤系数(kgce/计量单位)", example = "0.1229")
    private BigDecimal coalFactor;
 
    @Schema(description = "日用量异常上限(超过触发疑似跑冒滴漏预警)", example = "500")
    private BigDecimal leakThreshold;
 
    @Schema(description = "责任人编号", example = "1")
    private Long chargeUserId;
 
    @Schema(description = "投用日期")
    private LocalDate installDate;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}