| | |
| | | package com.dy.common.mw.protocol.p206V202404.upVos; |
| | | |
| | | import com.dy.common.mw.protocol.p206V202404.CodeV202404; |
| | | import com.dy.common.mw.protocol.p206V202404.CommonV202404; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | |
| | | |
| | | public String comName ;//命令名称 |
| | | |
| | | public DataCd80_5BVo(){ |
| | | this.comName = CodeV202404.getCodeName(CodeV202404.cd_5B) ; |
| | | } |
| | | public DataCd80_5BVo(String comName){ |
| | | this.comName = comName ; |
| | | } |
| | |
| | | sb.append(" 信号强度 : ") ; |
| | | sb.append(csq == null?"未知":csq) ; |
| | | sb.append("\n") ; |
| | | return sb.toString() + super.toString() ; |
| | | return sb + super.toString() ; |
| | | } |
| | | |
| | | public String toStr(boolean showBase){ |
| | | StringBuffer sb = new StringBuffer() ; |
| | | if(showBase){ |
| | | sb.append(comName + " : \n") ; |
| | | sb.append("控制器类型 : ") ; |
| | | sb.append(CommonV202404.ctrlDevType(controllerType)) ; |
| | | sb.append("\n") ; |
| | | sb.append("项目编号 : ") ; |
| | | sb.append(projectNo == null?"未知":projectNo) ; |
| | | sb.append("\n") ; |
| | | sb.append("用水方式 : ") ; |
| | | sb.append(useWaterType == null?"未知":(useWaterType.byteValue()==0?"刷卡开泵/阀":(useWaterType.byteValue()==1?"平台远程开泵/阀":(useWaterType.byteValue()==2?"APP远程开泵/阀":(useWaterType.byteValue()==3?"测试卡开泵/阀":(useWaterType.byteValue()==4?"其他":"未知")))))) ; |
| | | sb.append("\n") ; |
| | | } |
| | | sb.append("订单号 : ") ; |
| | | sb.append(orderNo == null?"未知":orderNo) ; |
| | | sb.append("\n") ; |
| | | sb.append("IC卡地址 : ") ; |
| | | sb.append(icCardAddr == null?"未知":icCardAddr) ; |
| | | sb.append("\n") ; |
| | | sb.append("用户卡序列号 : ") ; |
| | | sb.append(icCardNo == null?"未知":icCardNo) ; |
| | | sb.append("\n") ; |
| | | sb.append("观察时间 : ") ; |
| | | sb.append(rtuDt == null?"未知":rtuDt) ; |
| | | sb.append("\n") ; |
| | | sb.append("水位 : ") ; |
| | | sb.append(waterLevel == null?"未知":waterLevel) ; |
| | | sb.append("\n") ; |
| | | sb.append("水压 : ") ; |
| | | sb.append(waterPress == null?"未知":waterPress) ; |
| | | sb.append("\n") ; |
| | | sb.append("瞬时流量 : ") ; |
| | | sb.append(waterInstant == null?"未知":waterInstant) ; |
| | | sb.append("\n") ; |
| | | sb.append("水表累计流量 : ") ; |
| | | sb.append(waterTotal == null?"未知":waterTotal) ; |
| | | sb.append("\n") ; |
| | | sb.append("电表累计电量 : ") ; |
| | | sb.append(eleTotal == null?"未知":eleTotal) ; |
| | | sb.append("\n") ; |
| | | sb.append("用户剩余金额 : ") ; |
| | | sb.append(moneyRemain == null?"未知":moneyRemain) ; |
| | | sb.append("\n") ; |
| | | sb.append("用户剩余水量 : ") ; |
| | | sb.append(waterRemain == null?"未知":waterRemain) ; |
| | | sb.append("\n") ; |
| | | sb.append("本次使用电量 : ") ; |
| | | sb.append(thisEle == null?"未知":thisEle) ; |
| | | sb.append("\n") ; |
| | | sb.append("本次使用水量 : ") ; |
| | | sb.append(thisWater == null?"未知":thisWater) ; |
| | | sb.append("\n") ; |
| | | sb.append("本次使用金额 : ") ; |
| | | sb.append(thisMoney == null?"未知":thisMoney) ; |
| | | sb.append("\n") ; |
| | | sb.append("本次使用时长 : ") ; |
| | | sb.append(thisDuration == null?"未知":thisDuration) ; |
| | | sb.append("\n") ; |
| | | sb.append("当前水量单价 : ") ; |
| | | sb.append(waterPrice == null?"未知":waterPrice) ; |
| | | sb.append("\n") ; |
| | | sb.append("当前电量单价 : ") ; |
| | | sb.append(elePrice == null?"未知":elePrice) ; |
| | | sb.append("\n") ; |
| | | sb.append("交流A相电压 : ") ; |
| | | sb.append(aVolt == null?"未知":aVolt) ; |
| | | sb.append("\n") ; |
| | | sb.append("交流B相电压 : ") ; |
| | | sb.append(bVolt == null?"未知":bVolt) ; |
| | | sb.append("\n") ; |
| | | sb.append("交流C相电压 : ") ; |
| | | sb.append(cVolt == null?"未知":cVolt) ; |
| | | sb.append("\n") ; |
| | | sb.append("交流A相电流 : ") ; |
| | | sb.append(aCurrent == null?"未知":aCurrent) ; |
| | | sb.append("\n") ; |
| | | sb.append("交流B相电流 : ") ; |
| | | sb.append(bCurrent == null?"未知":bCurrent) ; |
| | | sb.append("\n") ; |
| | | sb.append("交流C相电流 : ") ; |
| | | sb.append(cCurrent == null?"未知":cCurrent) ; |
| | | sb.append("\n") ; |
| | | sb.append("后备电池电压 : ") ; |
| | | sb.append(batteryVolt == null?"未知":batteryVolt) ; |
| | | sb.append("\n") ; |
| | | sb.append("水表远传电压 : ") ; |
| | | sb.append(waterMeterTransVolt == null?"未知":waterMeterTransVolt) ; |
| | | sb.append("\n") ; |
| | | sb.append("水表工作电压 : ") ; |
| | | sb.append(waterMeterWorkVolt == null?"未知":waterMeterWorkVolt) ; |
| | | sb.append("\n") ; |
| | | sb.append("信号强度 : ") ; |
| | | sb.append(csq == null?"未知":csq) ; |
| | | sb.append("\n") ; |
| | | return sb + super.toStr() ; |
| | | } |
| | | } |