| @@ -174,6 +174,9 @@ public class WxRentContractController extends WxContractBaseController { | |||||
| if (null != wxRentContract.getDecimalSize() && wxRentContract.getDecimalSize() <= 0 ) { | if (null != wxRentContract.getDecimalSize() && wxRentContract.getDecimalSize() <= 0 ) { | ||||
| wxRentContract.setDecimalSize(Constant.default_short_decimal_size); | wxRentContract.setDecimalSize(Constant.default_short_decimal_size); | ||||
| } | } | ||||
| WxRentContract contract = wxRentContractService.selectById(wxRentContract.getId()); | |||||
| wxRentContract.setRentArea(contract.getRentArea()); | |||||
| MallUserInfo user = getUser(); | MallUserInfo user = getUser(); | ||||
| wxRentContract.updateTenantInfo(user); | wxRentContract.updateTenantInfo(user); | ||||
| wxRentContract.setAdjustPeriodHandle(); | wxRentContract.setAdjustPeriodHandle(); | ||||
| @@ -191,8 +194,6 @@ public class WxRentContractController extends WxContractBaseController { | |||||
| return new ResultData(Result.ERROR,"请填写月平均天数"); | return new ResultData(Result.ERROR,"请填写月平均天数"); | ||||
| } | } | ||||
| WxRentContract contract = wxRentContractService.selectById(wxRentContract.getId()); | |||||
| wxRentContract.setRentArea(contract.getRentArea()); | |||||
| return wxRentContractService.update(wxRentContract, user,user.getName(),EnumFromType.OTHER.getCode(),oldDate,false,true); | return wxRentContractService.update(wxRentContract, user,user.getName(),EnumFromType.OTHER.getCode(),oldDate,false,true); | ||||
| } | } | ||||