| | |
| | | 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.p206V1.DataV1; |
| | | import com.dy.common.mw.protocol.p206V2.DataV2; |
| | | import com.dy.common.mw.protocol.p206V202404.DataV202404; |
| | | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd80_5BVo; |
| | | import com.dy.common.po.BaseEntity; |
| | |
| | | @TableId(type = IdType.INPUT) |
| | | public Long id; |
| | | |
| | | /** |
| | | * 农户实体ID(外键) |
| | | */ |
| | | @Schema(description = "农户实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long clientId; |
| | | |
| | | /** |
| | | * 农户姓名 |
| | | */ |
| | | @Schema(description = "农户姓名", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | public String clientName; |
| | | /** |
| | | * 控制器实体ID(外键) |
| | | */ |
| | |
| | | * 水位(单位0.001米) |
| | | */ |
| | | @Schema(description = "水位(单位0.001米)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterLevel; |
| | | |
| | | /** |
| | | * 水压(单位0.01千帕) |
| | | */ |
| | | @Schema(description = "水压(单位0.01千帕)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterPress; |
| | | |
| | | /** |
| | | * 瞬时流量(单位0.01m3/小时) |
| | | */ |
| | | @Schema(description = "瞬时流量(单位0.01m3/小时)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterInstant; |
| | | |
| | | /** |
| | | * 水表累计流量(单位0.01m3) |
| | | */ |
| | | @Schema(description = "水表累计流量(单位0.01m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterTotal; |
| | | |
| | | /** |
| | | * 电表累计电量(单位0.01度) |
| | | */ |
| | | @Schema(description = "电表累计电量(单位0.01度)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double eleTotal; |
| | | |
| | | /** |
| | | * 用户剩余金额(单位0.01元) |
| | | */ |
| | | @Schema(description = "用户剩余金额(单位0.01元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double moneyRemain; |
| | | |
| | | /** |
| | | * 用户剩余水量(单位0.01m3) |
| | | */ |
| | | @Schema(description = "用户剩余水量(单位0.01m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterRemain; |
| | | |
| | | /** |
| | | * 本次使用电量(单位0.01度) |
| | | */ |
| | | @Schema(description = "本次使用电量(单位0.01度)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double thisEle; |
| | | |
| | | /** |
| | | * 本次使用水量(单位0.01m3) |
| | | */ |
| | | @Schema(description = "本次使用水量(单位0.01m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double thisWater; |
| | | |
| | | /** |
| | | * 本次使用金额(单位0.01元) |
| | | */ |
| | | @Schema(description = "本次使用金额(单位0.01元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double thisMoney; |
| | | |
| | | /** |
| | |
| | | * 当前水量单价(单位0.01元 最大99.99元) |
| | | */ |
| | | @Schema(description = "当前水量单价(单位0.01元 最大99.99元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterPrice; |
| | | |
| | | /** |
| | | * 当前电量单价(单位0.01元 最大99.99元) |
| | | */ |
| | | @Schema(description = "当前电量单价(单位0.01元 最大99.99元)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double elePrice; |
| | | |
| | | /** |
| | | * 交流A相电压(单位0.1伏特) |
| | | */ |
| | | @Schema(description = "交流A相电压(单位0.1伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double aVolt; |
| | | |
| | | /** |
| | | * 交流B相电压(单位0.1伏特) |
| | | */ |
| | | @Schema(description = "交流B相电压(单位0.1伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double bVolt; |
| | | |
| | | /** |
| | | * 交流C相电压(单位0.1伏特) |
| | | */ |
| | | @Schema(description = "交流C相电压(单位0.1伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double cVolt; |
| | | |
| | | /** |
| | | * 交流A相电流(单位0.1安培) |
| | | */ |
| | | @Schema(description = "交流A相电流(单位0.1安培)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double aCurrent; |
| | | |
| | | /** |
| | | * 交流B相电流数据(单位0.1安培) |
| | | */ |
| | | @Schema(description = "交流B相电流数据(单位0.1安培)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double bCurrent; |
| | | |
| | | /** |
| | | * 交流C相电流(单位0.1安培) |
| | | */ |
| | | @Schema(description = "交流C相电流(单位0.1安培)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double cCurrent; |
| | | |
| | | /** |
| | | * 后备电池电压(单位0.01伏特) |
| | | */ |
| | | @Schema(description = "后备电池电压(单位0.01伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double batteryVolt; |
| | | |
| | | /** |
| | | * 水表远传电压(单位0.01伏特) |
| | | */ |
| | | @Schema(description = "水表远传电压(单位0.01伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterMeterTransVolt; |
| | | |
| | | /** |
| | | * 水表工作电压(单位0.01伏特) |
| | | */ |
| | | @Schema(description = "水表工作电压(单位0.01伏特)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | public Double waterMeterWorkVolt; |
| | | |
| | | public void valueFrom(DataV202404 dataV202404, DataCd80_5BVo cdData) throws Exception{ |
| | |
| | | } |
| | | |
| | | |
| | | 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); |
| | | public void valueFrom(DataV1 dV1, com.dy.common.mw.protocol.p206V1.upVos.DataCd84Vo cdData) throws Exception{ |
| | | this.dt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dV1.dt); |
| | | this.rtuDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.rtuDt); |
| | | //this.orderNo = cdData.orderNo ; |
| | | //this.icCardAddr = cdData.icCardAddr ; |
| | | this.icCardAddr = cdData.cardAddr ; |
| | | 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 ; |
| | | } |
| | | |
| | | public void valueFrom(DataV2 dV2, com.dy.common.mw.protocol.p206V2.upVos.DataCd84Vo cdData) throws Exception{ |
| | | this.dt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dV2.dt); |
| | | this.rtuDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.rtuDt); |
| | | //this.orderNo = cdData.orderNo ; |
| | | this.icCardAddr = cdData.cardAddr ; |
| | | this.icCardNo = cdData.cardNo ; |
| | | //this.waterLevel = cdData.waterLevel ; |
| | | //this.waterPress = cdData.waterPress ; |