|
|
|
@@ -94,7 +94,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData saveOrUpdate(WxPropertyContract record) { |
|
|
|
//保存租赁合同信息 |
|
|
|
//保存物业合同信息 |
|
|
|
if (record.getId() == null) { |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
@@ -113,7 +113,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "保存物业合同信息成功", record); |
|
|
|
} else {//更新租赁合同信息 |
|
|
|
} else {//更新物业合同信息 |
|
|
|
Calendar instance = Calendar.getInstance(); |
|
|
|
instance.setTime(record.getRentalStartDate()); |
|
|
|
instance.add(Calendar.MONTH, record.getLease()); |
|
|
|
@@ -142,10 +142,10 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("更新租赁合同信息失败,e:" + e.getMessage()); |
|
|
|
logger.error("更新物业合同信息失败,e:" + e.getMessage()); |
|
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage()); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "更新租赁合同信息成功"); |
|
|
|
return new ResultData(Result.SUCCESS, "更新物业合同信息成功"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -267,7 +267,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
try { |
|
|
|
wxBillPropertyMapper.insertSelective(wxBillRent); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("添加租赁账单失败,e:" + e.getMessage()); |
|
|
|
logger.error("添加物业账单失败,e:" + e.getMessage()); |
|
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|