diff --git a/src/main/java/com/glxp/api/service/basic/impl/UdiProductServiceImpl.java b/src/main/java/com/glxp/api/service/basic/impl/UdiProductServiceImpl.java index 7f9968bf..b04f6b2d 100644 --- a/src/main/java/com/glxp/api/service/basic/impl/UdiProductServiceImpl.java +++ b/src/main/java/com/glxp/api/service/basic/impl/UdiProductServiceImpl.java @@ -118,7 +118,7 @@ public class UdiProductServiceImpl implements UdiProductService { //医保编码解析 String catalogcode = udiProductEntity.getCatalogcode(); - if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7 && !catalogcode.contains("CJ")) { Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); @@ -150,7 +150,7 @@ public class UdiProductServiceImpl implements UdiProductService { udiProductEntity.setUpdateTime(new Date()); //医保编码解析 String catalogcode = udiProductEntity.getCatalogcode(); - if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7 && !catalogcode.contains("CJ")) { Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); @@ -166,7 +166,7 @@ public class UdiProductServiceImpl implements UdiProductService { udiProductEntity.setUpdateTime(new Date()); //医保编码解析 String catalogcode = udiProductEntity.getCatalogcode(); - if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7 && !catalogcode.contains("CJ")) { Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrProductsAddDiService.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrProductsAddDiService.java index 86a4887e..dfd8b907 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrProductsAddDiService.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrProductsAddDiService.java @@ -153,7 +153,7 @@ public class ThrProductsAddDiService extends ServiceImpl= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7 && !catalogcode.contains("CJ")) { Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); @@ -334,7 +334,7 @@ public class ThrProductsAddDiService extends ServiceImpl= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7 && !catalogcode.contains("CJ")) { Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));