【修改】 名称替换

This commit is contained in:
DESKTOP-932OMT8\REN
2025-05-21 17:28:26 +08:00
parent 3bd8a424ec
commit b5f18ba897
1212 changed files with 1262 additions and 1270 deletions

View File

@@ -12,7 +12,7 @@ import jakarta.annotation.Resource;
/**
* 支付单 API 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
public class PayOrderApiImpl implements PayOrderApi {

View File

@@ -12,7 +12,7 @@ import jakarta.annotation.Resource;
/**
* 退款单 API 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
/**
* 钱包 API 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
public class PayWalletApiImpl implements PayWalletApi {

View File

@@ -16,7 +16,7 @@ public class PayOrderDetailsRespVO extends PayOrderBaseVO {
@Schema(description = "支付订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
private Long id;
@Schema(description = "应用名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码")
@Schema(description = "应用名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "朋辰")
private String appName;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@@ -10,7 +10,7 @@ import org.mapstruct.factory.Mappers;
/**
* 示例订单 Convert
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface PayDemoOrderConvert {

View File

@@ -16,7 +16,7 @@ import java.util.Map;
/**
* 支付通知 Convert
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface PayNotifyTaskConvert {

View File

@@ -14,7 +14,7 @@ import lombok.*;
*
* 即 PayMerchantDO : PayAppDO = 1 : n
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("pay_app")
@KeySequence("pay_app_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -17,7 +17,7 @@ import lombok.*;
*
* 即 PayAppDO : PayChannelDO = 1 : n
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "pay_channel", autoResultMap = true)
@KeySequence("pay_channel_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -13,7 +13,7 @@ import java.time.LocalDateTime;
*
* 演示业务系统的订单,如何接入 pay 系统的支付与退款
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("pay_demo_order")
@KeySequence("pay_demo_order_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -10,7 +10,7 @@ import lombok.*;
* 商户支付、退款等的通知 Log
* 每次通知时,都会在该表中,记录一次 Log方便排查问题
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("pay_notify_log")
@KeySequence("pay_notify_log_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -19,7 +19,7 @@ import java.time.LocalDateTime;
* 支付通知
* 在支付系统收到支付渠道的支付、退款的结果后,需要不断的通知到业务系统,直到成功。
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("pay_notify_task")
@KeySequence("pay_notify_task_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -14,7 +14,7 @@ import java.time.LocalDateTime;
/**
* 支付订单 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("pay_order")
@KeySequence("pay_order_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -17,7 +17,7 @@ import java.util.Map;
*
* 每次调用支付渠道,都会生成一条对应记录
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "pay_order_extension",autoResultMap = true)
@KeySequence("pay_order_extension_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -20,7 +20,7 @@ import java.time.LocalDateTime;
*
* 即 PayOrderDO : PayRefundDO = 1 : n
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("pay_refund")
@KeySequence("pay_refund_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -11,7 +11,7 @@ import lombok.Data;
*
* 通过充值套餐时,可以赠送一定金额;
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value ="pay_wallet_recharge_package")
@KeySequence("pay_wallet_recharge_package_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
/**
* 示例订单 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface PayDemoOrderMapper extends BaseMapperX<PayDemoOrderDO> {

View File

@@ -3,7 +3,7 @@ package pc.exam.pp.module.pay.dal.redis;
/**
* 支付 Redis Key 枚举类
*
* @author 芋道源码
* @author 朋辰
*/
public interface RedisKeyConstants {

View File

@@ -12,7 +12,7 @@ import java.time.LocalDateTime;
/**
* 支付序号的 Redis DAO
*
* @author 芋道源码
* @author 朋辰
*/
@Repository
public class PayNoRedisDAO {

View File

@@ -12,7 +12,7 @@ import static pc.exam.pp.module.pay.dal.redis.RedisKeyConstants.PAY_NOTIFY_LOCK;
/**
* 支付通知的锁 Redis DAO
*
* @author 芋道源码
* @author 朋辰
*/
@Repository
public class PayNotifyLockRedisDAO {

View File

@@ -13,7 +13,7 @@ import static pc.exam.pp.module.pay.dal.redis.RedisKeyConstants.PAY_WALLET_LOCK;
/**
* 支付钱包的锁 Redis DAO
*
* @author 芋道源码
* @author 朋辰
*/
@Repository
public class PayWalletLockRedisDAO {

View File

@@ -1,6 +1,6 @@
/**
* 属于 pay 模块的 framework 封装
*
* @author 芋道源码
* @author 朋辰
*/
package pc.exam.pp.module.pay.framework;

View File

@@ -8,7 +8,7 @@ import org.springframework.context.annotation.Configuration;
/**
* pay 模块的 web 组件的 Configuration
*
* @author 芋道源码
* @author 朋辰
*/
@Configuration(proxyBeanMethods = false)
public class PayWebConfiguration {

View File

@@ -12,7 +12,7 @@ import jakarta.annotation.Resource;
* 支付通知 Job
* 通过不断扫描待通知的 PayNotifyTaskDO 记录,回调业务线的回调接口
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -13,7 +13,7 @@ import jakarta.annotation.Resource;
*
* 支付超过过期时间时,支付渠道是不会通知进行过期,所以需要定时进行过期关闭。
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class PayOrderExpireJob implements JobHandler {

View File

@@ -15,7 +15,7 @@ import java.time.LocalDateTime;
*
* 由于支付订单的状态,是由支付渠道异步通知进行同步,考虑到异步通知可能会失败(小概率),所以需要定时进行同步。
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class PayOrderSyncJob implements JobHandler {

View File

@@ -13,7 +13,7 @@ import jakarta.annotation.Resource;
*
* 由于退款订单的状态,是由支付渠道异步通知进行同步,考虑到异步通知可能会失败(小概率),所以需要定时进行同步。
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class PayRefundSyncJob implements JobHandler {

View File

@@ -10,7 +10,7 @@ import jakarta.validation.Valid;
/**
* 示例订单 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface PayDemoOrderService {

View File

@@ -36,7 +36,7 @@ import static pc.exam.pp.module.pay.enums.ErrorCodeConstants.*;
/**
* 示例订单 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -10,7 +10,7 @@ import java.util.List;
/**
* 回调通知 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface PayNotifyService {

View File

@@ -54,7 +54,7 @@ import static pc.exam.pp.module.pay.framework.job.config.PayJobConfiguration.NOT
/**
* 支付通知 Core Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Valid