mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-07 21:17:42 +00:00
feat 对账差异单
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package cn.bootx.platform.daxpay.service.core.order.reconcile.dao;
|
||||
|
||||
import cn.bootx.platform.common.mybatisplus.impl.BaseManager;
|
||||
import cn.bootx.platform.daxpay.service.core.order.reconcile.entity.PayReconcileDiffRecord;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author xxm
|
||||
* @since 2024/2/28
|
||||
*/
|
||||
@Slf4j
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class PayReconcileDiffRecordManager extends BaseManager<PayReconcileDiffRecordMapper, PayReconcileDiffRecord> {
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
package cn.bootx.platform.daxpay.service.core.order.reconcile.dao;
|
||||
|
||||
import cn.bootx.platform.daxpay.service.core.order.reconcile.entity.PayReconcileDiffRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 对账差异单
|
||||
* @author xxm
|
||||
* @since 2024/2/28
|
||||
*/
|
||||
@Mapper
|
||||
public interface PayReconcileDiffRecordMapper extends BaseMapper<PayReconcileDiffRecord> {
|
||||
}
|
@@ -48,7 +48,7 @@ public class PayReconcileDetail extends MpCreateEntity implements EntityBaseFunc
|
||||
private String orderId;
|
||||
|
||||
/** 支付订单ID */
|
||||
@DbColumn(comment = "本地订单ID")
|
||||
@DbColumn(comment = "支付订单ID")
|
||||
private String paymentId;
|
||||
|
||||
/** 本地退款ID */
|
||||
|
@@ -0,0 +1,60 @@
|
||||
package cn.bootx.platform.daxpay.service.core.order.reconcile.entity;
|
||||
|
||||
import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity;
|
||||
import cn.bootx.table.modify.annotation.DbColumn;
|
||||
import cn.bootx.table.modify.annotation.DbTable;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 对账差异单
|
||||
* @author xxm
|
||||
* @since 2024/2/28
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@DbTable(comment = "对账差异单")
|
||||
@TableName("pay_reconcile_diff_record")
|
||||
public class PayReconcileDiffRecord extends MpBaseEntity {
|
||||
|
||||
/** 对账单ID */
|
||||
@DbColumn(comment = "对账单ID")
|
||||
private Long recordId;
|
||||
|
||||
/** 对账单明细ID */
|
||||
@DbColumn(comment = "对账单明细ID")
|
||||
private Long detailId;
|
||||
|
||||
/** 本地订单id */
|
||||
@DbColumn(comment = "本地订单id")
|
||||
private Long orderId;
|
||||
|
||||
/** 订单标题 */
|
||||
@DbColumn(comment = "订单标题")
|
||||
private String title;
|
||||
|
||||
/** 订单类型 */
|
||||
@DbColumn(comment = "订单类型")
|
||||
private String orderType;
|
||||
|
||||
/** 差异类型 */
|
||||
@DbColumn(comment = "差异类型")
|
||||
private String diffType;
|
||||
|
||||
/** 网关订单号 */
|
||||
@DbColumn(comment = "网关订单号")
|
||||
private String gatewayOrderNo;
|
||||
|
||||
/** 交易金额 */
|
||||
@DbColumn(comment = "交易金额")
|
||||
private Integer amount;
|
||||
|
||||
/** 订单时间 */
|
||||
@DbColumn(comment = "订单时间")
|
||||
private LocalDateTime orderTime;
|
||||
}
|
@@ -73,7 +73,7 @@ public class ClientNoticeAssistService {
|
||||
.setUrl(orderExtra.getNotifyUrl())
|
||||
// 时间序列化进行了重写
|
||||
.setContent(JacksonUtil.toJson(payNoticeResult))
|
||||
.setType(ClientNoticeTypeEnum.PAY.getType())
|
||||
.setNoticeType(ClientNoticeTypeEnum.PAY.getType())
|
||||
.setSendCount(0)
|
||||
.setOrderId(order.getId());
|
||||
}
|
||||
@@ -113,7 +113,7 @@ public class ClientNoticeAssistService {
|
||||
.setUrl(orderExtra.getNotifyUrl())
|
||||
// 时间序列化进行了重写
|
||||
.setContent(JacksonUtil.toJson(payNoticeResult))
|
||||
.setType(ClientNoticeTypeEnum.REFUND.getType())
|
||||
.setNoticeType(ClientNoticeTypeEnum.REFUND.getType())
|
||||
.setSendCount(0)
|
||||
.setOrderId(order.getId());
|
||||
}
|
||||
|
@@ -219,7 +219,7 @@ public class ClientNoticeService {
|
||||
// 创建记录
|
||||
ClientNoticeRecord record = new ClientNoticeRecord()
|
||||
.setTaskId(task.getId())
|
||||
.setType(ClientNoticeSendTypeEnum.AUTO.getType())
|
||||
.setSendType(ClientNoticeSendTypeEnum.AUTO.getType())
|
||||
.setReqCount(task.getSendCount()+1);
|
||||
String body = null;
|
||||
try {
|
||||
|
@@ -41,7 +41,7 @@ public class ClientNoticeRecord extends MpCreateEntity implements EntityBaseFunc
|
||||
* @see ClientNoticeSendTypeEnum
|
||||
*/
|
||||
@DbColumn(comment = "发送类型")
|
||||
private String type;
|
||||
private String sendType;
|
||||
|
||||
/** 错误信息 */
|
||||
@DbColumn(comment = "错误信息")
|
||||
|
@@ -2,6 +2,8 @@ package cn.bootx.platform.daxpay.service.core.task.notice.entity;
|
||||
|
||||
import cn.bootx.platform.common.core.function.EntityBaseFunction;
|
||||
import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity;
|
||||
import cn.bootx.platform.daxpay.code.PayStatusEnum;
|
||||
import cn.bootx.platform.daxpay.code.RefundStatusEnum;
|
||||
import cn.bootx.platform.daxpay.service.code.ClientNoticeTypeEnum;
|
||||
import cn.bootx.platform.daxpay.service.core.task.notice.convert.ClientNoticeConvert;
|
||||
import cn.bootx.platform.daxpay.service.dto.record.notice.ClientNoticeTaskDto;
|
||||
@@ -37,7 +39,15 @@ public class ClientNoticeTask extends MpBaseEntity implements EntityBaseFunction
|
||||
* @see ClientNoticeTypeEnum
|
||||
*/
|
||||
@DbColumn(comment = "消息类型")
|
||||
private String type;
|
||||
private String noticeType;
|
||||
|
||||
/**
|
||||
* 订单类型
|
||||
* @see PayStatusEnum
|
||||
* @see RefundStatusEnum
|
||||
*/
|
||||
@DbColumn(comment = "订单类型")
|
||||
private String orderStatus;
|
||||
|
||||
/** 消息内容 */
|
||||
@DbColumn(comment = "消息内容")
|
||||
|
Reference in New Issue
Block a user