update 分账方法

This commit is contained in:
2023-08-22 17:34:35 +08:00
parent 1797066dd6
commit b37193d4cf
3 changed files with 15 additions and 7 deletions

View File

@@ -58,6 +58,9 @@ public class TempController extends BaseController {
@Autowired
private ISettleOrderReportService settleOrderReportService;
@Autowired
private IPileMerchantInfoService pileMerchantInfoService;
/**
* 临时刷数据接口
* http://localhost:8080/temp/tempUpdateVirtualAmount
@@ -197,7 +200,8 @@ public class TempController extends BaseController {
if (orderBasicInfo == null || adapayMemberAccount == null) {
throw new BusinessException("", "查询信息为空");
}
orderBasicInfoService.doPaymentConfirm(orderBasicInfo, adapayMemberAccount);
String appId = pileMerchantInfoService.queryAppIdByMerchantId(orderBasicInfo.getMerchantId());
orderBasicInfoService.doPaymentConfirm(orderBasicInfo, adapayMemberAccount, appId);
} catch (Exception e) {
logger.error("临时接口交易确认接口 error,", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);