|
|
|
@@ -495,6 +495,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
return new ResultData(ErrorCode.SHOP_IS_NOT_FOUND.getCode(), "店铺 " + shopNumber + " 已删除"); |
|
|
|
} |
|
|
|
wxRentContractQuery.setShopId(shopId); |
|
|
|
wxRentContractQuery.setId(record.getId()); |
|
|
|
int count = wxRentContractMapper.selectRentContractCountByShopId(wxRentContractQuery); |
|
|
|
if (count > 0) { |
|
|
|
return new ResultData(ErrorCode.SHOP_IS_RENT.getCode(), "店铺 " + shopNumber + " 已出租"); |
|
|
|
|