瀏覽代碼

[账单管理][编辑][金额乘100,已结清状态判断]

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

+ 4
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxBillRentServiceImpl.java 查看文件

@@ -103,9 +103,10 @@ public class WxBillRentServiceImpl implements WxBillRentService {
logger.info("更新租赁账单");
WxBillRent wxBillRent = wxBillRentMapper.selectByPrimaryKey(record.getId());
wxBillRent.setPayDate(record.getPayDate());
wxBillRent.setPay(record.getPay());
wxBillRent.setReceivePay(record.getReceivePay());
wxBillRent.setStatus(record.getStatus());
wxBillRent.setPay(record.getPay()*100);
wxBillRent.setReceivePay(record.getReceivePay()*100);
wxBillRent.setOwe(record.getOwe()*100);
wxBillRent.setStatus(record.getPay().equals(record.getReceivePay())?EnumBillRentStatus.PAID.getCode():wxBillRent.getStatus());
wxBillRent.setUpdatetime(new Date());
try {
wxBillRentMapper.updateByPrimaryKeySelective(wxBillRent);


Loading…
取消
儲存