diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java index 6313e6f9e..14ab3ed7a 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java @@ -110,7 +110,7 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { } else { logger.info("更新物业账单"); WxBillProperty property = wxBillPropertyMapper.selectByPrimaryKey(record.getId()); - if(record==null){ + if(property==null){ return new ResultData(ErrorCode.BILL_PROPERTY_IS_NOT_FOUND); } 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.setUpdatetime(new Date()); try { - wxBillPropertyMapper.updateByPrimaryKeySelective(record); + wxBillPropertyMapper.updateByPrimaryKeySelective(property); } catch (Exception e) { logger.error("更新物业账单失败,e:" + e.getMessage()); throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "DB FAILD " + e.getMessage());