fix(服务商模式支付管理): 服务商支付流程打通

This commit is contained in:
2025-07-14 00:38:12 +08:00
parent 74ebf2e947
commit a333a1a663
7 changed files with 297 additions and 400 deletions
@@ -20,7 +20,7 @@ import java.util.Map;
@RequiredArgsConstructor
@Tag(name = "微信配置管理")
@RequestMapping("/wechat/config")
public class SysWechatConfigController {
public class WechatConfigController {
@Resource
private WechatConfigService wechatConfigService;
@@ -1,114 +0,0 @@
package com.central.user.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("sys_wechat_config")
public class SysWechatConfig {
@TableId(type = IdType.AUTO)
private Long id;
/**
* 租户ID
*/
private String tenantId;
/**
* 配置类型:MP-公众号,MINI-小程序,PAY-支付
*/
private String type;
/**
* 商户ID
*/
private String merchantId;
/**
* 应用ID
*/
private String appId;
/**
* 应用密钥
*/
private String appSecret;
/**
* 商户API密钥
*/
private String mchKey;
/**
* 商户证书序列号
*/
private String mchSerialNo;
/**
* 商户私钥文件路径
*/
private String privateKeyPath;
/**
* APIv3密钥
*/
private String apiV3Key;
/**
* 支付回调地址
*/
private String notifyUrl;
/**
* 微信公众号token
*/
private String token;
/**
* 微信公众号aesKey
*/
private String aesKey;
/**
* 支付成功通知模板ID
*/
private String paymentSuccessTemplateId;
/**
* 视频处理完成通知模板ID
*/
private String videoCompleteTemplateId;
/**
* 视频处理失败通知模板ID
*/
private String videoFailTemplateId;
/**
* 是否启用分账
*/
private Boolean profitSharingEnabled;
/**
* 是否启用异步处理
*/
private Boolean asyncEnabled;
/**
* 异步处理线程池大小
*/
private Integer asyncPoolSize;
/**
* 状态:0-禁用,1-启用
*/
private Integer status;
/**
* 备注
*/
private String remark;
}
@@ -48,7 +48,7 @@ public class WechatConfigServiceImpl extends ServiceImpl<WechatConfigMapper, Wec
@Override
public WechatConfig getConfigBySerialNumber(String serialNumber) {
return getOne(new LambdaQueryWrapper<WechatConfig>()
.eq(WechatConfig::getMchSerialNo, serialNumber)
.eq(WechatConfig::getSerialNumber, serialNumber)
.eq(WechatConfig::getStatus, 1));
}