|
|
@@ -97,8 +97,6 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
@Autowired |
|
|
|
@Qualifier("couponChannelRedisTemplate") |
|
|
|
RedisTemplate<String, PageInfo<WxCouponChannelVo>> cdRedisTemplate; |
|
|
|
@Autowired |
|
|
|
private WxCashOutService wxCashOutService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void wxFlowConfigInit(String tenantId) { |
|
|
@@ -463,32 +461,6 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
wxBillSettleMapper.updateById(wxBillSettle); |
|
|
|
}else if (EnumFlowKey.CASH_OUT.getCode().equals(flowType)) { |
|
|
|
String tenantId = (String)getVariableByKey(variables,"cashTenantId"); |
|
|
|
WxCashOut cashout = wxCashOutService.getById(Long.parseLong(businessId), tenantId); |
|
|
|
|
|
|
|
//如果是提交审批 |
|
|
|
if (EnumRentContractAppStatus.APPLYING.getCode().intValue() == applyStatus.intValue()) { |
|
|
|
cashout.setStatus(EnumCashOutStatus.AUDIOING.getCode()); |
|
|
|
cashout.setUpdateDate(new Date()); |
|
|
|
wxCashOutService.updateStatus(cashout); |
|
|
|
// 审批完成 |
|
|
|
}else if (EnumRentContractAppStatus.FINISH.getCode().intValue() == applyStatus.intValue()) { |
|
|
|
cashout.setStatus(EnumCashOutStatus.WAITING.getCode()); |
|
|
|
cashout.setUpdateDate(new Date()); |
|
|
|
wxCashOutService.updateStatus(cashout); |
|
|
|
//发送零钱提现通知 |
|
|
|
String cashPayWay = (String)getVariableByKey(variables,"cashPayWay"); |
|
|
|
wxCashOutService.sendCashOutMsg(cashout, cashout.getId(),EnumPayWay.getEnum(Integer.parseInt(cashPayWay))); |
|
|
|
logger.info("cashout msg:"+cashout.getId()); |
|
|
|
//如果是审批撤回,或者驳回,改回草稿状态 |
|
|
|
}else if (EnumRentContractAppStatus.SETBACK.getCode().intValue() == applyStatus.intValue() |
|
|
|
|| EnumRentContractAppStatus.REJECT.getCode().intValue() == applyStatus.intValue()) { |
|
|
|
cashout.setStatus(EnumCashOutStatus.REJECT.getCode()); |
|
|
|
String remark = (String)mapInfo.get("remark"); |
|
|
|
cashout.setAudioRemark(remark); |
|
|
|
cashout.setAudioDate(new Date()); |
|
|
|
cashout.setUpdateDate(new Date()); |
|
|
|
wxCashOutService.rejectCashOut(cashout); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|