| @@ -110,7 +110,7 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { | |||||
| } else { | } else { | ||||
| logger.info("更新物业账单"); | logger.info("更新物业账单"); | ||||
| WxBillProperty property = wxBillPropertyMapper.selectByPrimaryKey(record.getId()); | WxBillProperty property = wxBillPropertyMapper.selectByPrimaryKey(record.getId()); | ||||
| if(record==null){ | |||||
| if(property==null){ | |||||
| return new ResultData(ErrorCode.BILL_PROPERTY_IS_NOT_FOUND); | return new ResultData(ErrorCode.BILL_PROPERTY_IS_NOT_FOUND); | ||||
| } | } | ||||
| property.setPayDate(record.getPayDate()); | property.setPayDate(record.getPayDate()); | ||||
| @@ -120,7 +120,7 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { | |||||
| property.setStatus(record.getPay().equals(record.getReceivePay())?EnumBillRentStatus.PAID.getCode():property.getStatus()); | property.setStatus(record.getPay().equals(record.getReceivePay())?EnumBillRentStatus.PAID.getCode():property.getStatus()); | ||||
| property.setUpdatetime(new Date()); | property.setUpdatetime(new Date()); | ||||
| try { | try { | ||||
| wxBillPropertyMapper.updateByPrimaryKeySelective(record); | |||||
| wxBillPropertyMapper.updateByPrimaryKeySelective(property); | |||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("更新物业账单失败,e:" + e.getMessage()); | logger.error("更新物业账单失败,e:" + e.getMessage()); | ||||
| throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage()); | throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage()); | ||||