From c70b92da60c0d00625da5fc2369b475e69e0b88e Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 22 八月 2024 11:36:41 +0800 Subject: [PATCH] 1、完善代码和application.yml配置文件,去掉不用的引入文件; 2、init-config.xml配置中增加属性 enable,相应解析类也增加了解析与判断; 3、凡是有Server的应用,加载资源方式改为用springboot的工具类加载; 4、通信协议相关的扫描注解功能实现改为采用reflections-0.10.2,以实现可以在jar包情况下能够扫描类(.class)注解。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3D_Down.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3D_Down.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3D_Down.java index 5387d72..b8c2557 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3D_Down.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3D_Down.java @@ -11,9 +11,9 @@ /** * @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 @@ -77,11 +77,11 @@ 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); @@ -97,4 +97,4 @@ return bytes ; } -} \ No newline at end of file +} -- Gitblit v1.8.0