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 c217964a7..3eb7dfd06 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java @@ -299,13 +299,9 @@ public class WxMerchantServiceImpl implements WxMerchantService { for (long shopid : shopidlist) { WxShop shop = wxShopMapper.selectByPrimaryKey(shopid); if (shop.getStatus().equals(EnumShopStatus.RENT.getCode())) { - rentShopList.add(shop); + return new ResultData(ErrorCode.SHOP_IS_RENT.getCode(), "店铺 " + shop.getShopNumber() + " 已出租"); } } - //已出租的商铺 - if (!rentShopList.isEmpty()) { - return new ResultData(ErrorCode.SHOP_IS_RENT, rentShopList); - } //更新商铺 for (long shopid : shopidlist) { //更新商铺状态