winter 1 год назад
Родитель
Сommit
2838a44183
2 измененных файлов: 4 добавлений и 1 удалений
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxFinanceServiceImpl.java
  2. +2
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java

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

@@ -1358,13 +1358,14 @@ public class WxFinanceServiceImpl implements WxFinanceService {
wxFinanceReceiveMapper.updateStatus(record);
}
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
@Override
public void redSetoffReceive(WxFinanceReceive record, MallUserInfo user) {
invalidReceive(record, user , true);
copyRedSetOffReceive(record);
}
private void copyRedSetOffReceive(WxFinanceReceive record) {
public void copyRedSetOffReceive(WxFinanceReceive record) {
Long oldRecordId = record.getId();
//新增一个红冲,金额是负数
final IdWorker idWorker = IdWorker.get();


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

@@ -510,6 +510,8 @@ public class WxFlowServiceImpl implements WxFlowService {
WxFinanceReceive receive = wxFinanceService.getReceiveById(tenantEntity, Long.parseLong(businessId));
// 审批完成
if (EnumRentContractAppStatus.FINISH.getCode().intValue() == applyStatus.intValue()) {
String remark = (String)mapInfo.get("remark");
receive.setRemark(StringUtils.trimToEmpty(receive.getRemark())+";"+remark);
wxFinanceService.redSetoffReceive(receive, starterInfo);
}else if (EnumRentContractAppStatus.SETBACK.getCode().intValue() == applyStatus.intValue()) {
}else if(EnumRentContractAppStatus.REJECT.getCode().intValue() == applyStatus.intValue()){


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