|
|
|
@@ -267,6 +267,7 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ |
|
|
|
|
|
|
|
WxProfitSharingOrder record = payShareAdapterService.createSharingOrder(sharingOrderDto,mchType,share); |
|
|
|
|
|
|
|
//抖音模式涉及到佣金,无法实时分账 |
|
|
|
if(EnumPayWay.PAY_WAY_TT.getCode().equals(payWay)){ |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
@@ -283,6 +284,7 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ |
|
|
|
WxPayAccount payAccount = wxPayAccountMapper.selectById(appInfo.getPayId()); |
|
|
|
PayShareResult shareResult = null; |
|
|
|
JSONArray jsonArray = null; |
|
|
|
|
|
|
|
//总分模式,收款账户分账 |
|
|
|
if (EnumPayMchType.TOTAL.getCode() == mchType) { |
|
|
|
if(StringUtils.isNotBlank(record.getReceivers())){ |
|
|
|
@@ -341,7 +343,7 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ |
|
|
|
wxProfitSharingResultMapper.insert(result); |
|
|
|
}); |
|
|
|
}catch (Exception e) { |
|
|
|
logger.error("分账详细信息为null"); |
|
|
|
logger.error("分账详细信息为null",e); |
|
|
|
// return new ResultData(ErrorCode.PROFIT_SHARING_RECEIVER_INVALID); |
|
|
|
} |
|
|
|
return new ResultData(shareResult.getData()); |
|
|
|
|