| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.common.mw.protocol.p206V1.upVos; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.mw.protocol.UpDataVo; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 遥测站自报(整点)实时数据 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | public class DataCdC0Vo implements UpDataVo { | 
|---|
|  |  |  | public Double instantAmount; //瞬时流量:5字节BCD码,取值范围0~9999999.999,单位为m3/h。 | 
|---|
|  |  |  | public Double totalAmount; //累计流量:5字节BCD码,取值范围0~9999999999,单位为m3。 | 
|---|
|  |  |  | public Double lossAmount; //损失流量(从0时到当前的漏损累计流量,24时一个周期,0时归0):5字节BCD码,取值范围0~9999999999,单位为m3。 | 
|---|
|  |  |  | public Double waterPress; //水压:4字节BCD码,取值范围0~999999.99,单位为KPa。 | 
|---|
|  |  |  | public Double batteryVolt;//蓄电池电压:2字节BCD码,取值范围0~99.99,单位为V。 | 
|---|
|  |  |  | public Integer signalValue; //信号强度:1字节BCD码,取值范围0~99。 | 
|---|
|  |  |  | public Double waterPrice ;//水价:2字节BCD码,取值范围0~99.99,单位为V。 | 
|---|
|  |  |  | public String rtuDt ;//控制器时钟 | 
|---|
|  |  |  | public DataAlarmVo alarmVo ;//报警 | 
|---|
|  |  |  | public DataStateVo stateVo ;//状态 | 
|---|
|  |  |  | public String toString(){ | 
|---|
|  |  |  | StringBuilder sb = new StringBuilder() ; | 
|---|
|  |  |  | sb.append("   终端自报(整点)实时数据:\n"); | 
|---|
|  |  |  | sb.append("      瞬时流量:"); | 
|---|
|  |  |  | sb.append(instantAmount==null?"":instantAmount); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      累计流量:"); | 
|---|
|  |  |  | sb.append(totalAmount==null?"":totalAmount); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      损失流量:"); | 
|---|
|  |  |  | sb.append(lossAmount==null?"":lossAmount); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      水压:"); | 
|---|
|  |  |  | sb.append(waterPress==null?"":waterPress); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      蓄电池电压:"); | 
|---|
|  |  |  | sb.append(batteryVolt==null?"":batteryVolt); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      信号强度:"); | 
|---|
|  |  |  | sb.append(signalValue ==null?"": signalValue); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      水价:"); | 
|---|
|  |  |  | sb.append(waterPrice ==null?"": waterPrice); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | sb.append("      控制器时钟:"); | 
|---|
|  |  |  | sb.append(rtuDt==null?"":rtuDt); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | if(alarmVo != null){ | 
|---|
|  |  |  | sb.append(alarmVo.toString()); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(stateVo != null){ | 
|---|
|  |  |  | sb.append(stateVo.toString()); | 
|---|
|  |  |  | sb.append("\n"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return sb.toString() ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|