mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、新增组织充值和支付宝回调处理;2、新增余额明细查询;
This commit is contained in:
+23
@@ -7,6 +7,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 渠道支付订单 Response DTO
|
||||
@@ -75,6 +76,11 @@ public class PayOrderRespDTO {
|
||||
*/
|
||||
private String channelErrorMsg;
|
||||
|
||||
/**
|
||||
* 发起支付给支付方后,异步回调原封不动回到调用方
|
||||
*/
|
||||
private Map<String,Object> passbackParams;
|
||||
|
||||
/**
|
||||
* 创建【WAITING】状态的订单返回
|
||||
*/
|
||||
@@ -122,6 +128,23 @@ public class PayOrderRespDTO {
|
||||
return respDTO;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建指定状态的订单返回,适合支付渠道回调时
|
||||
*/
|
||||
public static PayOrderRespDTO of(Integer status, String channelOrderNo, String channelUserId, LocalDateTime successTime,
|
||||
String outTradeNo, Object rawData, Map<String, Object> passbackParams) {
|
||||
PayOrderRespDTO respDTO = new PayOrderRespDTO();
|
||||
respDTO.status = status;
|
||||
respDTO.channelOrderNo = channelOrderNo;
|
||||
respDTO.channelUserId = channelUserId;
|
||||
respDTO.successTime = successTime;
|
||||
// 相对通用的字段
|
||||
respDTO.outTradeNo = outTradeNo;
|
||||
respDTO.rawData = rawData;
|
||||
respDTO.passbackParams = passbackParams;
|
||||
return respDTO;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建【CLOSED】状态的订单返回,适合调用支付渠道失败时
|
||||
*/
|
||||
|
||||
+5
@@ -85,6 +85,11 @@ public class PayOrderUnifiedReqDTO {
|
||||
*/
|
||||
private Map<String, String> channelExtras;
|
||||
|
||||
/**
|
||||
* 发起支付给支付方后,异步回调原封不动回到调用方
|
||||
*/
|
||||
private Map<String, Object> passbackParams;
|
||||
|
||||
/**
|
||||
* 展示模式
|
||||
*
|
||||
|
||||
+6
@@ -16,4 +16,10 @@ public class RedisKeyConstants {
|
||||
* 刷新权限
|
||||
*/
|
||||
public static final String PERMISSION_REFRESH = "PERMISSION_REFRESH";
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public static final String PAY_NOTIFY_ORDER_LOCK_KEY = "pay_recharge_order:%s%s";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user