| | |
| | | * @throws Exception 异常 |
| | | */ |
| | | protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { |
| | | short index = ProtocolConstantV206V1_0_0.dataIndex ; |
| | | byte opType = bs[ProtocolConstantV206V1_0_0.dataIndex]; |
| | | if(opType == 1 || opType == 3 || opType == 8){ |
| | | this.doParseOpen(opType, bs, bsLen, dataCode, data); |
| | |
| | | cdData.totalAmount += tpInt * 100000000.0 ; |
| | | |
| | | //用水户号数据格式:5字节BCD码低位在前高位在后。 |
| | | cdData.clientNum = ByteUtil.BCD2String_LE(bs, index, index + 4) ; |
| | | cdData.cardNo = ByteUtil.BCD2String_LE(bs, index, index + 4) ; |
| | | index += 5 ; |
| | | |
| | | //IC卡号格式:4字节HEX码低位在前高位在后。 |
| | | cdData.clientNum = ByteUtil.bytesToHex(bs, index, index + 3) ; |
| | | cdData.cardNo = ByteUtil.bytesToHex(bs, index, index + 3) ; |
| | | index += 4 ; |
| | | |
| | | //用水户余额:用户余额4字节BCD码,取值范围0.00~999999.99,单位为元。 |
| | |
| | | cdData.totalAmount += tpInt * 100000000.0 ; |
| | | |
| | | //用水户号数据格式:5字节BCD码低位在前高位在后。 |
| | | cdData.clientNum = ByteUtil.BCD2String_LE(bs, index, index + 4) ; |
| | | cdData.cardNo = ByteUtil.BCD2String_LE(bs, index, index + 4) ; |
| | | index += 5 ; |
| | | |
| | | //IC卡号格式:4字节HEX码低位在前高位在后。 |
| | | cdData.clientNum = ByteUtil.bytesToHex(bs, index, index + 3) ; |
| | | cdData.cardNo = ByteUtil.bytesToHex(bs, index, index + 3) ; |
| | | index += 4 ; |
| | | |
| | | //用水户余额:用户余额4字节BCD码,取值范围0.00~999999.99,单位为元。 |