|  |  |  | 
|---|
|  |  |  | package com.dy.common.mw.protocol.p206V202404.upVos; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V1.CommonV1; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.CodeV202404; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.CommonV202404; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import lombok.EqualsAndHashCode; | 
|---|
|  |  |  | 
|---|
|  |  |  | @EqualsAndHashCode(callSuper=false) | 
|---|
|  |  |  | public class DataCd85Vo extends AlarmVo { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String controllerType;//控制器类型 01(0x01):测控一体阀;02(0x02):表阀一体机;57(0x57):井电控制器 | 
|---|
|  |  |  | public String controllerType;//控制器类型 | 
|---|
|  |  |  | public Integer projectNo ;//项目编号 | 
|---|
|  |  |  | public Byte clType;//关泵/阀方式:  0x00:刷卡闭 0x01:平台关 0x02:APP关  0x03:非法卡关 0x04:水表异常关 0x05:电表异常关 0x06:剩余水量不足关 0x07:剩余金额不足关 0x08:开泵/阀后管道没有流量关 0x09:掉电再上电。 | 
|---|
|  |  |  | public String icCardAddr ;//IC卡地址(远程关闭时为0) | 
|---|
|  |  |  | 
|---|
|  |  |  | public String endDt ;//结束时间(yyyy-mm-dd HH:MM:SS) | 
|---|
|  |  |  | public Double waterTotalAmount ;//水表累计流量 | 
|---|
|  |  |  | public Double eleTotalAmount ;//电表累计电量 | 
|---|
|  |  |  | public Double moneyRemain ;//用户剩余金额,单位0.01元 | 
|---|
|  |  |  | public Double moneyRemain ;//用户剩余金额,单位0.0001元 | 
|---|
|  |  |  | public Double waterRemain ;//用户剩余水量,保留 默认 00 00 00 00 00 | 
|---|
|  |  |  | public Double thisEle ;//本次使用电量, 单位0.01度 | 
|---|
|  |  |  | public Double thisWater ;//本次使用水量, 单位0.01立方米 | 
|---|
|  |  |  | public Double thisMoney ;//本次使用金额, 单位0.01元 | 
|---|
|  |  |  | public Double thisMoney ;//本次使用金额, 单位0.0001元 | 
|---|
|  |  |  | public Integer thisDuration;//本次使用时间长, 单位:分钟 | 
|---|
|  |  |  | public Double price ;//水价 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String comName ;//命令名称 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public DataCd85Vo(){ | 
|---|
|  |  |  | this.comName = CodeV202404.getCodeName(CodeV202404.cd_85) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public DataCd85Vo(String comName){ | 
|---|
|  |  |  | this.comName = comName ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | sb.append(projectNo == null?"未知":projectNo) ; | 
|---|
|  |  |  | sb.append("\n") ; | 
|---|
|  |  |  | sb.append("      关泵/阀类型 : ") ; | 
|---|
|  |  |  | sb.append(clType == null?"未知":(clType.byteValue() == 0x00 ? "刷卡":(clType.byteValue() == 0x01 ? "平台":(clType.byteValue() == 0x02 ? "APP":(clType.byteValue() == 0x03 ? "非法卡":(clType.byteValue() == 0x04 ? "水表异常":(clType.byteValue() == 0x05 ? "电表异常":(clType.byteValue() == 0x06 ? "剩余水量不足":(clType.byteValue() == 0x07 ? "剩余金额不足":(clType.byteValue() == 0x08 ? "无流量":(clType.byteValue() == 0x09 ? "掉电再上电":"未知"))))))))))) ; | 
|---|
|  |  |  | sb.append(CommonV1.openCloseValveType(clType)) ;//在解析的时候,已经做了兼容转换 | 
|---|
|  |  |  | sb.append("\n") ; | 
|---|
|  |  |  | sb.append("      IC卡地址 : ") ; | 
|---|
|  |  |  | sb.append(icCardAddr == null?"未知":icCardAddr) ; | 
|---|
|  |  |  | 
|---|
|  |  |  | sb.append("      本次使用时间长 : ") ; | 
|---|
|  |  |  | sb.append(thisDuration == null?"未知": thisDuration) ; | 
|---|
|  |  |  | sb.append("\n") ; | 
|---|
|  |  |  | sb.append("      水价 : ") ; | 
|---|
|  |  |  | sb.append(price == null?"未知":price) ; | 
|---|
|  |  |  | sb.append("\n") ; | 
|---|
|  |  |  | return sb.toString() + super.toString() ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|