mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-29 11:38:04 +08:00
支付订单 延迟分账
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package com.jsowell.service;
|
package com.jsowell.service;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.alibaba.fastjson2.JSONArray;
|
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.alibaba.fastjson2.TypeReference;
|
import com.alibaba.fastjson2.TypeReference;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
@@ -41,8 +40,8 @@ import com.jsowell.pile.vo.base.OrderAmountDetailVO;
|
|||||||
import com.jsowell.pile.vo.base.OrderPeriodAmountVO;
|
import com.jsowell.pile.vo.base.OrderPeriodAmountVO;
|
||||||
import com.jsowell.pile.vo.base.PileInfoVO;
|
import com.jsowell.pile.vo.base.PileInfoVO;
|
||||||
import com.jsowell.pile.vo.base.StationInfoVO;
|
import com.jsowell.pile.vo.base.StationInfoVO;
|
||||||
import com.jsowell.pile.vo.uniapp.*;
|
|
||||||
import com.jsowell.pile.vo.uniapp.InvoiceRecordVO;
|
import com.jsowell.pile.vo.uniapp.InvoiceRecordVO;
|
||||||
|
import com.jsowell.pile.vo.uniapp.*;
|
||||||
import com.jsowell.pile.vo.web.*;
|
import com.jsowell.pile.vo.web.*;
|
||||||
import com.jsowell.wxpay.dto.WeChatRefundDTO;
|
import com.jsowell.wxpay.dto.WeChatRefundDTO;
|
||||||
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
|
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
|
||||||
@@ -293,18 +292,21 @@ public class OrderService {
|
|||||||
createAdaPaymentParam.setExpend(JSONObject.toJSONString( ImmutableMap.of("open_id", openId)));
|
createAdaPaymentParam.setExpend(JSONObject.toJSONString( ImmutableMap.of("open_id", openId)));
|
||||||
|
|
||||||
// 分账对象信息
|
// 分账对象信息
|
||||||
String adapayMemberId = adapayMemberAccountService.selectAdapayMemberIdByStationId(orderInfo.getStationId());
|
// String adapayMemberId = adapayMemberAccountService.selectAdapayMemberIdByStationId(orderInfo.getStationId());
|
||||||
if (StringUtils.isNotBlank(adapayMemberId)) {
|
// if (StringUtils.isNotBlank(adapayMemberId)) {
|
||||||
JSONObject jsonObject = new JSONObject();
|
// JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("member_id", adapayMemberId);
|
// jsonObject.put("member_id", adapayMemberId);
|
||||||
jsonObject.put("amount", amount);
|
// jsonObject.put("amount", amount);
|
||||||
jsonObject.put("fee_flag", Constants.Y);
|
// jsonObject.put("fee_flag", Constants.Y);
|
||||||
|
//
|
||||||
|
// // 分账对象信息列表,最多仅支持7个分账方,json 数组形式
|
||||||
|
// JSONArray jsonArray = new JSONArray();
|
||||||
|
// jsonArray.add(jsonObject);
|
||||||
|
// createAdaPaymentParam.setDiv_members(jsonArray.toString());
|
||||||
|
// }
|
||||||
|
|
||||||
// 分账对象信息列表,最多仅支持7个分账方,json 数组形式
|
// 延迟分账
|
||||||
JSONArray jsonArray = new JSONArray();
|
createAdaPaymentParam.setPay_mode("delay");
|
||||||
jsonArray.add(jsonObject);
|
|
||||||
createAdaPaymentParam.setDiv_members(jsonArray.toString());
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
log.info("创建汇付支付参数:{}", JSONObject.toJSONString(createAdaPaymentParam));
|
log.info("创建汇付支付参数:{}", JSONObject.toJSONString(createAdaPaymentParam));
|
||||||
Map<String, Object> response = Payment.create(BeanMap.create(createAdaPaymentParam));
|
Map<String, Object> response = Payment.create(BeanMap.create(createAdaPaymentParam));
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ public class SpringBootTestController {
|
|||||||
// String filePath = JsowellConfig.getUploadPath();
|
// String filePath = JsowellConfig.getUploadPath();
|
||||||
// System.out.println(filePath);
|
// System.out.println(filePath);
|
||||||
|
|
||||||
String s = "ACM88202036";
|
String s = "ACM88033859";
|
||||||
try {
|
try {
|
||||||
AdapayMemberInfoVO adapayMemberInfoVO = adapayMemberService.queryCorpAdapayMemberInfo(s);
|
AdapayMemberInfoVO adapayMemberInfoVO = adapayMemberService.queryCorpAdapayMemberInfo(s);
|
||||||
System.out.println(adapayMemberInfoVO);
|
System.out.println(adapayMemberInfoVO);
|
||||||
|
|||||||
Reference in New Issue
Block a user