资质预警相关修改,医保编码判空

dev_test1.0
anthonywj 12 months ago
parent 6dc4bcf6d9
commit bec388063b

@ -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));

@ -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;

@ -140,7 +140,7 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys()));
//医保编码解析
String catalogcode = thrDiProductsRequest.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));

@ -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 @@
<if test="groupBuy != null">
and basic_udirel.groupBuy = #{groupBuy}
</if>
<if test="purType != null">
and basic_udirel.purType = #{purType}
</if>
</where>
ORDER BY modifyTime DESC
</select>

Loading…
Cancel
Save