From ff3b82ed06ab8a0d9b9b755c32b47dfb2a82bc6f Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期一, 22 七月 2024 15:30:30 +0800 Subject: [PATCH] 2024-07-22 朱宝民 设备查询、设置接口 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/CommonV1_0_1.java | 39 ++++++++++++++++++++------------------- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/CommonV1_0_1.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/CommonV1_0_1.java index c2964d5..3e347ff 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/CommonV1_0_1.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/CommonV1_0_1.java @@ -153,6 +153,7 @@ */ public static String icCardType(byte type){ return switch (type) { + case 0 -> "鏃犲崱"; case 1 -> "鐢ㄦ埛鍗�"; case 2 -> "绠$悊鍛樺崱"; case 3 -> "璋冭瘯鍗�"; @@ -201,25 +202,25 @@ }; } - /** - * 澶勭悊IC鍗$紪鍙凤紝闈虫�诲埗瀹氱殑鍗忚瑕佹眰10浣岻C鍗$紪鍙� - * @param icCardNo - * @return - */ - public static String[] dealIcCardNo(String icCardNo){ - if(icCardNo.length() > 10){ - String tail = icCardNo.substring(icCardNo.length() - 10) ; - String head = icCardNo.substring(0, icCardNo.length() - 10) ; - return new String[]{head , tail} ; - }else if(icCardNo.length() < 10){ - while(icCardNo.length() != 10){ - icCardNo = "0" + icCardNo ; - } - return new String[]{null , icCardNo} ; - }else{ - return new String[]{null , icCardNo} ; - } - } +// /** +// * 澶勭悊IC鍗$紪鍙凤紝闈虫�诲埗瀹氱殑鍗忚瑕佹眰10浣岻C鍗$紪鍙� +// * @param icCardNo +// * @return +// */ +// public static String[] dealIcCardNo(String icCardNo){ +// if(icCardNo.length() > 10){ +// String tail = icCardNo.substring(icCardNo.length() - 10) ; +// String head = icCardNo.substring(0, icCardNo.length() - 10) ; +// return new String[]{head , tail} ; +// }else if(icCardNo.length() < 10){ +// while(icCardNo.length() != 10){ +// icCardNo = "0" + icCardNo ; +// } +// return new String[]{null , icCardNo} ; +// }else{ +// return new String[]{null , icCardNo} ; +// } +// } /* * 鍒嗘瀽鐗堟湰鍙� -- Gitblit v1.8.0