|  |  | 
 |  |  | import com.dy.common.mw.protocol.*; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.*; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.parse.global.GlParse; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd83Vo; | 
 |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd84Vo; | 
 |  |  | import com.dy.common.util.ByteUtil; | 
 |  |  | import org.apache.logging.log4j.LogManager; | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { | 
 |  |  |         DataV202404 dV1 = (DataV202404)data.getSubData() ; | 
 |  |  |         DataCd84Vo cdData = new DataCd84Vo() ; | 
 |  |  |         DataCd84Vo cdData = new DataCd84Vo(CodeV202404.getCodeName(dataCode)) ; | 
 |  |  |         dV1.subData = cdData ; | 
 |  |  |         int index = ProtocolConstantV206V202404.dataIndex ; | 
 |  |  |         cdData.controllerType = ByteUtil.bytes2Hex(bs, false, index, 1) ; | 
 |  |  | 
 |  |  |         index++ ; | 
 |  |  |         cdData.icCardAddr = ByteUtil.bytes2Hex(bs, false, index, 4) ; | 
 |  |  |  | 
 |  |  |         index += 8 ; | 
 |  |  |         index += 4 ; | 
 |  |  |         cdData.icCardNo = GlParse.parseIcCardNo(bs, index, 6, 2) ; | 
 |  |  |  | 
 |  |  |         index += 8 ; | 
 |  |  |         cdData.orderNo = ByteUtil.BCD2String_BE(bs, index, index + 7) ; | 
 |  |  |  | 
 |  |  |         index ++ ; | 
 |  |  |         String mm = ByteUtil.BCD2String_LE(bs, index, index) ; | 
 |  |  |         index ++ ; | 
 |  |  |         String HH = ByteUtil.BCD2String_LE(bs, index, index) ; | 
 |  |  |         index ++ ; | 
 |  |  |         String dd = ByteUtil.BCD2String_LE(bs, index, index) ; | 
 |  |  |         index ++ ; | 
 |  |  |         String MM = ByteUtil.BCD2String_LE(bs, index, index) ; | 
 |  |  |         cdData.opDt = MM + "月" + dd + "日" + HH + "时" + mm + "分" ; | 
 |  |  |         index += 8 ; | 
 |  |  |         cdData.openDt = GlParse.parseRtuDt(bs, index) ; | 
 |  |  |  | 
 |  |  |         index ++ ; | 
 |  |  |         cdData.waterTotalAmount = ByteUtil.BCD2Int_BE(bs, index, index + 4)/100.0D ; | 
 |  |  |         index += 6 ; | 
 |  |  |         cdData.waterTotalAmount = ByteUtil.BCD2Long_LE(bs, index, index + 4)/100.0D ; | 
 |  |  |  | 
 |  |  |         index += 5 ; | 
 |  |  |         cdData.eleTotalAmount = ByteUtil.BCD2Int_BE(bs, index, index + 4)/100.0D ; | 
 |  |  |         cdData.eleTotalAmount = ByteUtil.BCD2Long_LE(bs, index, index + 4)/100.0D ; | 
 |  |  |  | 
 |  |  |         index += 5 ; | 
 |  |  |         cdData.moneyRemainUser = ByteUtil.BCD2Int_BE(bs, index, index + 4)/100.0D ; | 
 |  |  |         cdData.moneyRemainUser = ByteUtil.BCD2Long_LE(bs, index, index + 4)/100.0D ; | 
 |  |  |  | 
 |  |  |         index += 5 ; | 
 |  |  |         cdData.waterRemainUser = ByteUtil.BCD2Int_BE(bs, index, index + 4)/100.0D ; | 
 |  |  |         cdData.waterRemainUser = ByteUtil.BCD2Long_LE(bs, index, index + 4)/100.0D ; | 
 |  |  |  | 
 |  |  |         index += 5 ; | 
 |  |  |         GlParse.parseAlarmAndState(bs, index, cdData) ; | 
 |  |  |         GlParse.parseAlarmAndState(bs, index, cdData) ;//四个字节 | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  |