gongchunyi
3 天以前 e9b4ceeea014f9d81263672f3d9c46a567c39591
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
package com.ruoyi.energymeter.dto;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
 
/**
 * 新增手工抄表设备请求(水表/电表/气表均可)。
 */
@Data
@Schema(description = "新增手工抄表设备请求")
public class MeterManualBindRequest implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Schema(description = "能源类型 WATER/ELECTRIC/GAS", requiredMode = Schema.RequiredMode.REQUIRED)
    private String meterType;
 
    @Schema(description = "表号(通信地址),按字符串保存,保留前导零", requiredMode = Schema.RequiredMode.REQUIRED)
    private String meterAddress;
 
    @Schema(description = "本系统显示名称")
    private String displayName;
 
    @Schema(description = "安装位置")
    private String location;
 
    @Schema(description = "起始表码", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal initialReading;
 
    @Schema(description = "起始表码日期,默认今天")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate initialReadingDate;
}