|
|
|
@@ -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) { |
|
|
|
//更新商铺状态 |
|
|
|
|