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
package cn.iocoder.yudao.module.mes.controller.admin.em.record.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDate;
 
@Schema(description = "管理后台 - MES 能耗抄表记录新增/修改 Request VO")
@Data
public class MesEmRecordSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "计量点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "计量点不能为空")
    private Long meterId;
 
    @Schema(description = "抄表日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "抄表日期不能为空")
    private LocalDate recordDate;
 
    @Schema(description = "期初读数(为空时取上一条记录读数或计量点初始读数)", example = "1000")
    private BigDecimal prevReading;
 
    @Schema(description = "期末读数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1200")
    @NotNull(message = "期末读数不能为空")
    private BigDecimal reading;
 
    @Schema(description = "单价(元/计量单位)", example = "0.68")
    private BigDecimal price;
 
    @Schema(description = "数据来源", example = "1")
    private Integer source;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}