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

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

@ -118,7 +118,7 @@ public class UdiProductServiceImpl implements UdiProductService {
//医保编码解析 //医保编码解析
String catalogcode = udiProductEntity.getCatalogcode(); String catalogcode = udiProductEntity.getCatalogcode();
if (catalogcode.length() >= 7) { if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));
@ -166,7 +166,7 @@ public class UdiProductServiceImpl implements UdiProductService {
udiProductEntity.setUpdateTime(new Date()); udiProductEntity.setUpdateTime(new Date());
//医保编码解析 //医保编码解析
String catalogcode = udiProductEntity.getCatalogcode(); String catalogcode = udiProductEntity.getCatalogcode();
if (catalogcode.length() >= 7) { if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); 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); wrapper.eq("status", 0).lt("expireDate", new Date()).eq("type", type);
switch (type) { switch (type) {
case 1: //查询供应商ID case 1: //查询供应商ID
wrapper.select("CustomerId", "code", "vailDate", "expireDate", "type"); wrapper.select("id", "CustomerId", "code", "vailDate", "expireDate", "type");
break; break;
case 2: //查询生产企业ID case 2: //查询生产企业ID
wrapper.select("manufacturerIdFk", "code", "vailDate", "expireDate", "type"); wrapper.select("id", "manufacturerIdFk", "code", "vailDate", "expireDate", "type");
break; break;
case 3: //查询产品ID case 3: //查询产品ID
wrapper.select("productIdFk", "code", "vailDate", "expireDate", "type"); wrapper.select("id", "productIdFk", "code", "vailDate", "expireDate", "type");
break; break;
default: default:
break; break;

@ -140,7 +140,7 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys())); thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys()));
//医保编码解析 //医保编码解析
String catalogcode = thrDiProductsRequest.getCatalogcode(); String catalogcode = thrDiProductsRequest.getCatalogcode();
if (catalogcode.length() >= 7){ if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));

@ -467,10 +467,10 @@
basic_products.groupBuy, basic_products.groupBuy,
basic_products.basicPrductRemak8, basic_products.basicPrductRemak8,
basic_products.cphhhbh, basic_products.cphhhbh,
basic_products.catalogname1, basic_products.catalogname1,
basic_products.catalogname2, basic_products.catalogname2,
basic_products.catalogname3, basic_products.catalogname3,
basic_products.matrial basic_products.matrial
FROM basic_products FROM basic_products
inner JOIN basic_udirel inner JOIN basic_udirel
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid
@ -585,6 +585,9 @@
<if test="groupBuy != null"> <if test="groupBuy != null">
and basic_udirel.groupBuy = #{groupBuy} and basic_udirel.groupBuy = #{groupBuy}
</if> </if>
<if test="purType != null">
and basic_udirel.purType = #{purType}
</if>
</where> </where>
ORDER BY modifyTime DESC ORDER BY modifyTime DESC
</select> </select>

Loading…
Cancel
Save