From 7ef883c4f0d072585516a0c40d5f6a7d7c60baea Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 17 Oct 2024 12:21:20 +0800 Subject: [PATCH] fix --- .../com/iformall/service/impl/WxMerchantServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java index df95210f2..2288bab98 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java @@ -1333,7 +1333,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { @Override public List getFloorBuildMerchantIds(TenantEntity tenantEntity,String floorRule,Long building,Long floor,String shopTypeForRule,Integer merchantShopDel,Integer shopDel,String shopNumber ) { - if (null != floorRule || null != building || null != floor) { + if (null != floorRule || null != building || null != floor || StringUtils.isNotBlank(shopNumber)) { List merchantIds = new ArrayList(); WxShop shopQ = new WxShop(); if (null != shopDel) { @@ -1352,7 +1352,10 @@ public class WxMerchantServiceImpl implements WxMerchantService { if (null != shopTypeForRule) { shopQ.setShopTypeForRule(shopTypeForRule); } - shopQ.setShopNumber(shopNumber); + if (StringUtils.isNotBlank(shopNumber)) { + shopQ.setShopNumber(shopNumber); + } + List shopIds = wxShopMapper.findIdList(shopQ); List shopNumberList = wxShopMapper.findShopNumberList(shopQ); if (null == shopIds || shopIds.size() <= 0) {