瀏覽代碼

[租赁合同][修改][判断商铺是否存在]

release_toaliyun_real
gongbiao 7 年之前
父節點
當前提交
3b2e7af78c
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 4
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java 查看文件

@@ -483,9 +483,12 @@ public class WxRentContractServiceImpl implements WxRentContractService {
WxRentContract wxRentContractQuery = new WxRentContract();
wxRentContractQuery.setTenantId(record.getTenantId());
Long shopId = rentInfoObject.getLong("shopId");
String shopNumber = rentInfoObject.getString("shopNumber");
if (shopId == null) {
return new ResultData(ErrorCode.SHOP_IS_NOT_FOUND.getCode(), "店铺 " + shopNumber + " 已删除");
}
wxRentContractQuery.setShopId(shopId);
int count = wxRentContractMapper.selectRentContractCountByShopId(wxRentContractQuery);
String shopNumber = rentInfoObject.getString("shopNumber");
if (count > 0) {
return new ResultData(ErrorCode.SHOP_IS_RENT.getCode(), "店铺 " + shopNumber + " 已出租");
}


Loading…
取消
儲存