wuzeyu
2024-07-25 a43b3f62fa364c3f8c5e3a62ea37cef6faff4af8
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/global/GlParse.java
@@ -48,12 +48,12 @@
     * @throws Exception 异常
     */
    public static String parseIcCardNo(byte[] bs, int index)throws Exception{
        String rtuAddrStr = "" + ByteUtilUnsigned.bytes2Short_LE(bs, index) ;
        String rtuAddrBCD = "" + ByteUtil.BCD2Long_LE(bs, index + 2, index + 7) ;
        while(rtuAddrStr.length() < 5){
            rtuAddrStr = "0" + rtuAddrStr ;
        String icNoStr = "" + ByteUtilUnsigned.bytes2Short_LE(bs, index) ;
        String icNoBCD = "" + ByteUtil.BCD2Long_LE(bs, index + 2, index + 7) ;
        while(icNoStr.length() < 5){
            icNoStr = "0" + icNoStr ;
        }
        return rtuAddrBCD + rtuAddrStr ;
        return icNoBCD + icNoStr ;
    }