package com.dy.pipIrrGlobal.pojoRm;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.dy.common.mw.protocol.p206V1_0_0.DataV1_0_1;
|
import com.dy.common.mw.protocol.p206V1_0_0.upVos.DataCd84Vo;
|
import com.dy.common.mw.protocol.p206V202404.DataV202404;
|
import com.dy.common.mw.protocol.p206V202404.upVos.DataCd80_5BVo;
|
import com.dy.common.po.BaseEntity;
|
import com.dy.common.util.DateTime;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.*;
|
|
import java.util.Date;
|
|
/**
|
* @Author: liurunyu
|
* @Date: 2024/6/14 10:11
|
* @Description 控制器阀开工作报最新数据
|
*/
|
@TableName(value="rm_work_report_last", autoResultMap = true)
|
@Data
|
@Builder
|
@ToString
|
@NoArgsConstructor
|
@AllArgsConstructor
|
@Schema(name = "终端阀开工作报最新数据")
|
public class RmWorkReportLast implements BaseEntity {
|
public static final long serialVersionUID = 202402280855001L;
|
/**
|
* 主键
|
*/
|
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
|
@JSONField(serializeUsing= ObjectWriterImplToString.class)
|
@TableId(type = IdType.INPUT)
|
public Long id;
|
|
/**
|
* 控制器实体ID(外键)
|
*/
|
@Schema(description = "控制器实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@JSONField(serializeUsing= ObjectWriterImplToString.class)
|
public Long controllerId;
|
|
/**
|
* 取水口实体ID(外键)
|
*/
|
@Schema(description = "取水口实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@JSONField(serializeUsing= ObjectWriterImplToString.class)
|
public Long intakeId;
|
|
/**
|
* 控制器地址
|
*/
|
@Schema(description = "控制器地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
public String rtuAddr;
|
|
/**
|
* 数据接收日期时间
|
*/
|
@Schema(description = "上报日期时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
public Date dt;
|
|
/**
|
* 开阀时控制器时钟
|
*/
|
@Schema(description = "控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
public Date rtuDt;
|
|
/**
|
* 订单号(16位数字)
|
*/
|
@Schema(hidden=true)
|
@JSONField(serialize = false)
|
public String orderNo;
|
|
/**
|
* IC卡地址(远程开泵/阀时全为0)
|
*/
|
@Schema(description = "IC卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public String icCardAddr;
|
|
/**
|
* IC卡编号
|
*/
|
@Schema(description = "IC卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public String icCardNo;
|
|
/**
|
* 水位(单位0.001米)
|
*/
|
@Schema(description = "水位(单位0.001米)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterLevel;
|
|
/**
|
* 水压(单位0.01千帕)
|
*/
|
@Schema(description = "水压(单位0.01千帕)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterPress;
|
|
/**
|
* 瞬时流量(单位0.01m3/小时)
|
*/
|
@Schema(description = "瞬时流量(单位0.01m3/小时)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterInstant;
|
|
/**
|
* 水表累计流量(单位0.01m3)
|
*/
|
@Schema(description = "水表累计流量(单位0.01m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterTotal;
|
|
/**
|
* 电表累计电量(单位0.01度)
|
*/
|
@Schema(description = "电表累计电量(单位0.01度)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double eleTotal;
|
|
/**
|
* 用户剩余金额(单位0.01元)
|
*/
|
@Schema(description = "用户剩余金额(单位0.01元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double moneyRemain;
|
|
/**
|
* 用户剩余水量(单位0.01m3)
|
*/
|
@Schema(description = "用户剩余水量(单位0.01m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterRemain;
|
|
/**
|
* 本次使用电量(单位0.01度)
|
*/
|
@Schema(description = "本次使用电量(单位0.01度)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double thisEle;
|
|
/**
|
* 本次使用水量(单位0.01m3)
|
*/
|
@Schema(description = "本次使用水量(单位0.01m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double thisWater;
|
|
/**
|
* 本次使用金额(单位0.01元)
|
*/
|
@Schema(description = "本次使用金额(单位0.01元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double thisMoney;
|
|
/**
|
* 本次使用时长(单位:分钟 最大9999分钟)
|
*/
|
@Schema(description = "本次使用时长(单位:分钟 最大9999分钟)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Integer thisDuration;
|
|
/**
|
* 当前水量单价(单位0.01元 最大99.99元)
|
*/
|
@Schema(description = "当前水量单价(单位0.01元 最大99.99元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterPrice;
|
|
/**
|
* 当前电量单价(单位0.01元 最大99.99元)
|
*/
|
@Schema(description = "当前电量单价(单位0.01元 最大99.99元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double elePrice;
|
|
/**
|
* 交流A相电压(单位0.1伏特)
|
*/
|
@Schema(description = "交流A相电压(单位0.1伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double aVolt;
|
|
/**
|
* 交流B相电压(单位0.1伏特)
|
*/
|
@Schema(description = "交流B相电压(单位0.1伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double bVolt;
|
|
/**
|
* 交流C相电压(单位0.1伏特)
|
*/
|
@Schema(description = "交流C相电压(单位0.1伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double cVolt;
|
|
/**
|
* 交流A相电流(单位0.1安培)
|
*/
|
@Schema(description = "交流A相电流(单位0.1安培)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double aCurrent;
|
|
/**
|
* 交流B相电流数据(单位0.1安培)
|
*/
|
@Schema(description = "交流B相电流数据(单位0.1安培)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double bCurrent;
|
|
/**
|
* 交流C相电流(单位0.1安培)
|
*/
|
@Schema(description = "交流C相电流(单位0.1安培)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double cCurrent;
|
|
/**
|
* 后备电池电压(单位0.01伏特)
|
*/
|
@Schema(description = "后备电池电压(单位0.01伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double batteryVolt;
|
|
/**
|
* 水表远传电压(单位0.01伏特)
|
*/
|
@Schema(description = "水表远传电压(单位0.01伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterMeterTransVolt;
|
|
/**
|
* 水表工作电压(单位0.01伏特)
|
*/
|
@Schema(description = "水表工作电压(单位0.01伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
public Double waterMeterWorkVolt;
|
|
public void valueFrom(DataV202404 dataV202404, DataCd80_5BVo cdData) throws Exception{
|
this.dt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dataV202404.dt);
|
this.rtuDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.rtuDt);
|
this.orderNo = cdData.orderNo ;
|
this.icCardAddr = cdData.icCardAddr ;
|
this.icCardNo = cdData.icCardNo ;
|
this.waterLevel = cdData.waterLevel ;
|
this.waterPress = cdData.waterPress ;
|
this.waterInstant = cdData.waterInstant ;
|
this.waterTotal = cdData.waterTotal ;
|
this.eleTotal = cdData.eleTotal ;
|
this.moneyRemain = cdData.moneyRemain ;
|
this.waterRemain = cdData.waterRemain ;
|
this.thisEle = cdData.thisEle ;
|
this.thisWater = cdData.thisWater ;
|
this.thisMoney = cdData.thisMoney ;
|
this.thisDuration = cdData.thisDuration ;
|
this.waterPrice = cdData.waterPrice ;
|
this.elePrice = cdData.elePrice ;
|
this.aVolt = cdData.aVolt ;
|
this.bVolt = cdData.bVolt ;
|
this.cVolt = cdData.cVolt ;
|
this.aCurrent = cdData.aCurrent ;
|
this.bCurrent = cdData.bCurrent ;
|
this.cCurrent = cdData.cCurrent ;
|
this.batteryVolt = cdData.batteryVolt ;
|
this.waterMeterTransVolt = cdData.waterMeterTransVolt ;
|
this.waterMeterWorkVolt = cdData.waterMeterWorkVolt ;
|
}
|
|
|
public void valueFrom(DataV1_0_1 dV1_0_1, DataCd84Vo cdData) throws Exception{
|
this.dt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dV1_0_1.dt);
|
this.rtuDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.rtuDt);
|
//this.orderNo = cdData.orderNo ;
|
//this.icCardAddr = cdData.icCardAddr ;
|
this.icCardNo = cdData.cardNo ;
|
//this.waterLevel = cdData.waterLevel ;
|
//this.waterPress = cdData.waterPress ;
|
this.waterInstant = cdData.instantAmount ;
|
this.waterTotal = cdData.totalAmount ;
|
//this.eleTotal = cdData.eleTotal ;
|
this.moneyRemain = cdData.remainMoney ;
|
//this.waterRemain = cdData.waterRemain ;
|
//this.thisEle = cdData.thisEle ;
|
//this.thisWater = cdData.thisWater ;
|
//this.thisMoney = cdData.thisMoney ;
|
//this.thisDuration = cdData.thisDuration ;
|
//this.waterPrice = cdData.waterPrice ;
|
//this.elePrice = cdData.elePrice ;
|
//this.aVolt = cdData.aVolt ;
|
//this.bVolt = cdData.bVolt ;
|
//this.cVolt = cdData.cVolt ;
|
//this.aCurrent = cdData.aCurrent ;
|
//this.bCurrent = cdData.bCurrent ;
|
//this.cCurrent = cdData.cCurrent ;
|
//this.batteryVolt = cdData.batteryVolt ;
|
//this.waterMeterTransVolt = cdData.waterMeterTransVolt ;
|
//this.waterMeterWorkVolt = cdData.waterMeterWorkVolt ;
|
}
|
}
|