doum
2026-05-22 23b57fc7eab3defc741a0e54e3dac939ad49f13f
server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/YwElectrical.java
@@ -10,110 +10,137 @@
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.util.Date;
import java.math.BigDecimal;
/**
 * 电表设备信息
 * @author renkang
 * @date 2026/04/03
 * 电表设备信息Model定义
 * @author doumee
 * @date 2026-05-21 11:10:04
 */
@Data
@ApiModel("电表设备信息")
@TableName("`yw_electrical`")
@TableName("yw_electrical")
@ApiModel(value = "电表设备信息实体类")
public class YwElectrical extends LoginUserModel {
    @ApiModelProperty("主键")
    @ExcelColumn(name="主键",index=1 ,width=10)
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", example = "1")
    @ExcelColumn(name = "主键")
    private Integer id;
    @ApiModelProperty(value = "创建人编码")
    @ExcelColumn(name = "创建人编码")
    @ApiModelProperty("创建人编码")
    @ExcelColumn(name="创建人编码",index=2 ,width=10)
    private Integer creator;
    @ApiModelProperty(value = "创建时间")
    @ExcelColumn(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    @ExcelColumn(name="创建时间",index=3 ,width=10)
    private Date createDate;
    @ApiModelProperty(value = "更新人编码")
    @ExcelColumn(name = "更新人编码")
    private Integer editor;
    @ApiModelProperty(value = "更新时间")
    @ExcelColumn(name = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新人编码")
    @ExcelColumn(name="更新人编码",index=4 ,width=10)
    private Integer edirot;
    @ApiModelProperty("更新时间")
    @ExcelColumn(name="更新时间",index=5 ,width=10)
    private Date editDate;
    @ApiModelProperty(value = "是否删除0否 1是", example = "0")
    @ExcelColumn(name = "是否删除0否 1是")
    @ApiModelProperty("是否删除0否 1是")
    @ExcelColumn(name="是否删除0否 1是",index=6 ,width=10)
    private Integer isdeleted;
    @ApiModelProperty(value = "备注")
    @ExcelColumn(name = "备注")
    @ApiModelProperty("备注")
    @ExcelColumn(name="备注",index=7 ,width=10)
    private String remark;
    @ApiModelProperty(value = "采集器号")
    @ExcelColumn(name = "采集器号")
    private String collectorNo;
    @ApiModelProperty(value = "表号")
    @ExcelColumn(name = "表号")
    @ApiModelProperty("采集器号")
    @ExcelColumn(name="采集器号",index=8 ,width=10)
    private String collectorId;
    @ApiModelProperty("表号")
    @ExcelColumn(name="表号",index=9 ,width=10)
    private String code;
    @ApiModelProperty(value = "表地址(通讯地址)")
    @ExcelColumn(name = "表地址(通讯地址)")
    private String electricAddress;
    @ApiModelProperty(value = "电表类型")
    @ExcelColumn(name = "电表类型")
    private String electricType;
    @ApiModelProperty(value = "倍率", example = "1")
    @ExcelColumn(name = "倍率")
    private Integer magnification;
    @ApiModelProperty(value = "付费类型", example = "0")
    @ExcelColumn(name = "付费类型")
    @ApiModelProperty("表地址(通讯地址)")
    @ExcelColumn(name="表地址(通讯地址)",index=10 ,width=10)
    private String address;
    @ApiModelProperty("设备类型 0 表示电表 , 1 表示水表")
    @ExcelColumn(name="设备类型 0 表示电表 , 1 表示水表",index=11 ,width=10)
    private String deviceType;
    @ApiModelProperty("倍率")
    @ExcelColumn(name="倍率",index=12 ,width=10)
    private BigDecimal rate;
    @ApiModelProperty("付费类型")
    @ExcelColumn(name="付费类型",index=13 ,width=10)
    private Integer payType;
    @ApiModelProperty(value = "名称")
    @ExcelColumn(name = "名称")
    @ApiModelProperty("名称")
    @ExcelColumn(name="名称",index=14 ,width=10)
    private String name;
    @ApiModelProperty(value = "网关主键", example = "1")
    @ExcelColumn(name = "网关主键")
    @ApiModelProperty("网关主键")
    @ExcelColumn(name="网关主键",index=15 ,width=10)
    private Integer gatewayId;
    @ApiModelProperty(value = "网关通信端口")
    @ExcelColumn(name = "网关通信端口")
    @ApiModelProperty("网关通信端口")
    @ExcelColumn(name="网关通信端口",index=16 ,width=10)
    private String gatewayPort;
    @ApiModelProperty(value = "上次心跳时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelColumn(name = "上次心跳时间")
    @ApiModelProperty("上次心跳时间")
    @ExcelColumn(name="上次心跳时间",index=17 ,width=10)
    private Date lastHeartbeatDate;
    @ApiModelProperty(value = "电表余额")
    @ExcelColumn(name = "电表余额")
    @ApiModelProperty("电表余额(元)")
    @ExcelColumn(name="电表余额(元)",index=18 ,width=10)
    private BigDecimal balance;
    @ApiModelProperty(value = "运行状态:0=未开户;1=拉闸;2=合闸;3=其他", example = "0")
    @ExcelColumn(name = "运行状态")
    private Integer runStatus;
    @ApiModelProperty(value = "上次开户时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelColumn(name = "上次开户时间")
    @ApiModelProperty("继电器状态:0=拉闸;1=合闸;2=其他")
    @ExcelColumn(name="继电器状态:0=拉闸;1=合闸;2=其他",index=19 ,width=10)
    private String relayStatus;
    @ApiModelProperty("上次开户时间")
    @ExcelColumn(name="上次开户时间",index=20 ,width=10)
    private Date lastOpenDate;
    @ApiModelProperty(value = "上次清零时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelColumn(name = "上次清零时间")
    @ApiModelProperty("上次清零时间")
    @ExcelColumn(name="上次清零时间",index=21 ,width=10)
    private Date lastCleanDate;
    @ApiModelProperty(value = "网关名称")
    @ApiModelProperty("在线状态:0=离线 1=在线")
    @ExcelColumn(name="在线状态:0=离线 1=在线",index=22 ,width=10)
    private Integer online;
    @ApiModelProperty("是否开户:0=未开户;1=已开户")
    @ExcelColumn(name="是否开户:0=未开户;1=已开户",index=23 ,width=10)
    private Integer accountStatus;
    @ApiModelProperty("状态:0=正常;1=禁用")
    @ExcelColumn(name="状态:0=正常;1=禁用",index=24 ,width=10)
    private Integer status;
    @ApiModelProperty("预警状况编码")
    @ExcelColumn(name="预警状况编码",index=25 ,width=10)
    private String warnType;
    @ApiModelProperty("设备型号")
    @ExcelColumn(name="设备型号",index=26 ,width=10)
    private String type;
    @ApiModelProperty("设备档案ID")
    @ExcelColumn(name="设备档案ID",index=27 ,width=10)
    private String dId;
    @ApiModelProperty("采集器档案ID")
    @ExcelColumn(name="采集器档案ID",index=28 ,width=10)
    private String cId;
    @ApiModelProperty("备注")
    @ExcelColumn(name="备注",index=29 ,width=10)
    private String description;
    @ApiModelProperty("信号值,1-31 。 20以上算信号稳定")
    @ExcelColumn(name="信号值,1-31 。 20以上算信号稳定",index=30 ,width=10)
    private BigDecimal csq;
    @ApiModelProperty("上次掉线时间 online = false 时存在")
    @ExcelColumn(name="上次掉线时间 online = false 时存在",index=31 ,width=10)
    private Date disconnectTime;
    @ApiModelProperty("上次上线时间 online = true 时存在")
    @ExcelColumn(name="上次上线时间 online = true 时存在",index=32 ,width=10)
    private Date connectTime;
    @ApiModelProperty("当前剩余总电量(KW)")
    @ExcelColumn(name="当前剩余总电量(KW)",index=33 ,width=10)
    private String balanceBattery;
    @ApiModelProperty("最近抄表时间")
    @ExcelColumn(name="最近抄表时间",index=34 ,width=10)
    private Date balanceTime;
    @ApiModelProperty("户号 关联用户档案ID")
    @ExcelColumn(name="户号 关联用户档案ID",index=35 ,width=10)
    private String accountId;
    @ApiModelProperty("关联价格档案ID priceid和param_id 每块表只会用其中一种")
    @ExcelColumn(name="关联价格档案ID priceid和param_id 每块表只会用其中一种",index=37 ,width=10)
    private String priceid;
    @ApiModelProperty("关联参数档案ID priceid和param_id 每块表只会用其中一种")
    @ExcelColumn(name="关联参数档案ID priceid和param_id 每块表只会用其中一种",index=36 ,width=10)
    private String paramId;
    @ApiModelProperty("绑定房间名称(关联yw_electrical_room、yw_room)")
    @TableField(exist = false)
    private String gatewayName;
    private String roomNames;
    @TableField(exist = false)
    private String warnTypeName;
    @TableField(exist = false)
    private String meterKeyword;
}