| | |
| | | |
| | | /** |
| | | * @Author liurunyu |
| | | * @Date 2024/4/10 18:51 |
| | | * @LastEditTime 2024/4/10 18:51 |
| | | * @Description |
| | | * @Date 2024/4/10 18:26 |
| | | * @LastEditTime 2024/4/10 18:26 |
| | | * @Description 设置水价 |
| | | */ |
| | | @AnnotationCodeDown(ifAny={ |
| | | CodeV1_0_1.cd_3D |
| | |
| | | throw new Exception("未提供命令参数数据,不能构造功能码为" + para.commandCode + "的下行命令") ; |
| | | }else{ |
| | | index = 0 ; |
| | | byte[] bs = new byte[12] ; |
| | | String icCardNo = ((String)para.param) ; |
| | | Integer icCardNoInt = Integer.valueOf(icCardNo); |
| | | ByteUtilUnsigned.int2Bytes_LE(bs, icCardNoInt, index); |
| | | index += 4 ; |
| | | byte[] bs = new byte[10] ; |
| | | Double priceDb = ((Double)para.param) * 100 ; |
| | | Integer priceInt = priceDb.intValue() ; |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, priceInt.shortValue(), index); |
| | | index += 2 ; |
| | | GlCreate.createPw(bs, index); |
| | | index += 2 ; |
| | | GlCreate.createTp(bs, index); |
| | |
| | | return bytes ; |
| | | } |
| | | |
| | | } |
| | | } |