Просмотр исходного кода

[租赁合同][修改][判断商铺已出租问题]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
6e4d22bd67
1 измененных файлов: 8 добавлений и 2 удалений
  1. +8
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 8
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Просмотреть файл

@@ -437,12 +437,18 @@ public class WxRentContractServiceImpl implements WxRentContractService {
JSONObject rentInfoObject = rentInfoArray.getJSONObject(i);
WxRentContract wxRentContractQuery = new WxRentContract();
wxRentContractQuery.setTenantId(record.getTenantId());
wxRentContractQuery.setShopId(rentInfoObject.getLong("shopId"));
Long shopId = rentInfoObject.getLong("shopId");
wxRentContractQuery.setShopId(shopId);
int count = wxRentContractMapper.selectRentContractCountByShopId(wxRentContractQuery);
if (count > 0) {
String shopNumber = rentInfoObject.getString("shopNumber");
return new ResultData(ErrorCode.SHOP_IS_RENT.getCode(), "店铺 " + shopNumber + " 已出租");
return new ResultData(ErrorCode.SHOP_IS_RENT, "店铺 " + shopNumber + " 已出租");
}
WxShop wxShop = wxShopMapper.selectByPrimaryKey(shopId);
if (wxShop.getStatus().equals(EnumShopStatus.RENT.getCode())) {
return new ResultData(ErrorCode.SHOP_IS_RENT, "店铺 " + wxShop.getShopNumber() + " 已出租");
}

}
} else {
WxRentContract wxRentContractQuery = new WxRentContract();


Загрузка…
Отмена
Сохранить