瀏覽代碼

[物业账单][修改][更新数据错误]

release_toaliyun_real
gongbiao 7 年之前
父節點
當前提交
e7e40444e8
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java

+ 2
- 2
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());


Loading…
取消
儲存