This commit is contained in:
terrfly 2024-04-07 09:18:55 +08:00
parent da5733da6e
commit 4d1b35fe86

View File

@ -104,7 +104,16 @@ public class PayOrderDivisionExecController extends ApiController {
ChannelRetMsg channelRetMsg = payOrderDivisionProcessService.processPayOrderDivision(payOrder.getPayOrderId(), bizRQ.getUseSysAutoDivisionReceivers(), receiverList, false);
PayOrderDivisionExecRS bizRS = new PayOrderDivisionExecRS();
bizRS.setState(channelRetMsg.getChannelState() == ChannelRetMsg.ChannelState.CONFIRM_SUCCESS ? PayOrderDivisionRecord.STATE_SUCCESS : PayOrderDivisionRecord.STATE_FAIL);
if(channelRetMsg.getChannelState() == ChannelRetMsg.ChannelState.CONFIRM_SUCCESS){
bizRS.setState(PayOrderDivisionRecord.STATE_SUCCESS);
}else if(channelRetMsg.getChannelState() == ChannelRetMsg.ChannelState.CONFIRM_FAIL){
bizRS.setState(PayOrderDivisionRecord.STATE_FAIL);
}else{
bizRS.setState(PayOrderDivisionRecord.STATE_ACCEPT);
}
bizRS.setChannelBatchOrderId(channelRetMsg.getChannelOrderId());
bizRS.setErrCode(channelRetMsg.getChannelErrCode());
bizRS.setErrMsg(channelRetMsg.getChannelErrMsg());