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 2dbca623..7f9968bf 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 (catalogcode.length() >= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { 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 (catalogcode.length() >= 7) { + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { 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/purchase/impl/SupCertRemindMsgImpl.java b/src/main/java/com/glxp/api/service/purchase/impl/SupCertRemindMsgImpl.java index d54ae07c..c55f6572 100644 --- a/src/main/java/com/glxp/api/service/purchase/impl/SupCertRemindMsgImpl.java +++ b/src/main/java/com/glxp/api/service/purchase/impl/SupCertRemindMsgImpl.java @@ -150,13 +150,13 @@ public class SupCertRemindMsgImpl implements SupCertRemindMsgService { wrapper.eq("status", 0).lt("expireDate", new Date()).eq("type", type); switch (type) { case 1: //查询供应商ID - wrapper.select("CustomerId", "code", "vailDate", "expireDate", "type"); + wrapper.select("id", "CustomerId", "code", "vailDate", "expireDate", "type"); break; case 2: //查询生产企业ID - wrapper.select("manufacturerIdFk", "code", "vailDate", "expireDate", "type"); + wrapper.select("id", "manufacturerIdFk", "code", "vailDate", "expireDate", "type"); break; case 3: //查询产品ID - wrapper.select("productIdFk", "code", "vailDate", "expireDate", "type"); + wrapper.select("id", "productIdFk", "code", "vailDate", "expireDate", "type"); break; default: break; 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 d6e53c1d..56e50dc1 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 @@ -140,7 +140,7 @@ public class ThrProductsAddDiService extends ServiceImpl= 7){ + if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { 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/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index 2648e868..a331d04e 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -467,10 +467,10 @@ basic_products.groupBuy, basic_products.basicPrductRemak8, basic_products.cphhhbh, - basic_products.catalogname1, - basic_products.catalogname2, - basic_products.catalogname3, - basic_products.matrial + basic_products.catalogname1, + basic_products.catalogname2, + basic_products.catalogname3, + basic_products.matrial FROM basic_products inner JOIN basic_udirel ON basic_products.uuid = basic_udirel.uuid @@ -585,6 +585,9 @@ and basic_udirel.groupBuy = #{groupBuy} + + and basic_udirel.purType = #{purType} + ORDER BY modifyTime DESC