| | |
| | | String yy = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | cdData.dt = "20" + yy + "-" + MM + "-" + dd + " " + HH ; |
| | | |
| | | int meterAmountDay = ByteUtil.BCD2Int_BE(bs, index, index + 3) ; |
| | | Long meterAmountDay = ByteUtil.BCD2Long_LE(bs, index, index + 3) ; |
| | | cdData.meterAmountDay = meterAmountDay/100.0D; |
| | | |
| | | index += 4 ; |
| | | int farmerAmountDay = ByteUtil.BCD2Int_BE(bs, index, index + 3) ; |
| | | Long farmerAmountDay = ByteUtil.BCD2Long_LE(bs, index, index + 3) ; |
| | | cdData.farmerAmountDay = farmerAmountDay/100.0D; |
| | | |
| | | index += 4 ; |
| | | int lossAmountDay = ByteUtil.BCD2Int_BE(bs, index, index + 3) ; |
| | | Long lossAmountDay = ByteUtil.BCD2Long_LE(bs, index, index + 3) ; |
| | | cdData.lossAmountDay = lossAmountDay/100.0D; |
| | | |
| | | return cdData ; |