Просмотр исходного кода

[修改][结算单][优化消息回调]

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
c4047b8d78
2 измененных файлов: 19 добавлений и 0 удалений
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/enums/EnumMsgRecordStatus.java
  2. +18
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java

+ 1
- 0
mallinkService/src/main/java/com/iformall/enums/EnumMsgRecordStatus.java Просмотреть файл

@@ -1,5 +1,6 @@
package com.iformall.enums;


/**
* Created by luozukai
*/


+ 18
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java Просмотреть файл

@@ -360,6 +360,24 @@ public class WxBillSettleServiceImpl implements WxBillSettleService {
}
}
wxBillOtherMapper.updateByPrimaryKeySelective(wxBillRent);

WxBillPropertyDeposit propertyDeposit = new WxBillPropertyDeposit();
propertyDeposit.setId(bill.getBillId());
if(freezeStatus != null) propertyDeposit.setFreeze(freezeStatus);
if(status != null){
propertyDeposit.setStatus(status);
propertyDeposit.setPayDate(new Date());
}
if(EnumBillRentStatus.PAID.getCode().equals(status)){
WxBillPropertyDeposit dbBill = wxBillPropertyDepositMapper.selectByPrimaryKey(wxBillRent.getId());
if(dbBill!=null) {
propertyDeposit.setPay(dbBill.getPay()+dbBill.getReceivePay());
propertyDeposit.setPayDate(new Date());
propertyDeposit.setStatus(EnumBillRentStatus.RETURN.getCode());
addBillAction(bill.getBillId(), dbBill.getOwe());
}
}
wxBillPropertyDepositMapper.updateByPrimaryKeySelective(propertyDeposit);
}
}
}


Загрузка…
Отмена
Сохранить