mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-15 06:10:26 +00:00
fix 退款同步任务查询条件限定错误
This commit is contained in:
@@ -3,6 +3,7 @@ package cn.bootx.platform.daxpay.service.core.channel.union.entity;
|
|||||||
import cn.bootx.platform.common.core.function.EntityBaseFunction;
|
import cn.bootx.platform.common.core.function.EntityBaseFunction;
|
||||||
import cn.bootx.platform.common.mybatisplus.base.MpCreateEntity;
|
import cn.bootx.platform.common.mybatisplus.base.MpCreateEntity;
|
||||||
import cn.bootx.platform.daxpay.service.code.UnionPayRecordTypeEnum;
|
import cn.bootx.platform.daxpay.service.code.UnionPayRecordTypeEnum;
|
||||||
|
import cn.bootx.platform.daxpay.service.core.channel.union.convert.UnionPayConvert;
|
||||||
import cn.bootx.platform.daxpay.service.dto.channel.union.UnionPayRecordDto;
|
import cn.bootx.platform.daxpay.service.dto.channel.union.UnionPayRecordDto;
|
||||||
import cn.bootx.table.modify.annotation.DbColumn;
|
import cn.bootx.table.modify.annotation.DbColumn;
|
||||||
import cn.bootx.table.modify.annotation.DbTable;
|
import cn.bootx.table.modify.annotation.DbTable;
|
||||||
@@ -57,6 +58,6 @@ public class UnionPayRecord extends MpCreateEntity implements EntityBaseFunction
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public UnionPayRecordDto toDto() {
|
public UnionPayRecordDto toDto() {
|
||||||
return null;
|
return UnionPayConvert.CONVERT.convert(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -56,8 +56,8 @@ public class RefundOrderManager extends BaseManager<RefundOrderMapper, RefundOrd
|
|||||||
public List<RefundOrder> findAllByProgress() {
|
public List<RefundOrder> findAllByProgress() {
|
||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
return lambdaQuery()
|
return lambdaQuery()
|
||||||
.le(RefundOrder::getRefundTime,now)
|
.le(RefundOrder::getCreateTime,now)
|
||||||
.eq(RefundOrder::getStatus, RefundStatusEnum.PROGRESS)
|
.eq(RefundOrder::getStatus, RefundStatusEnum.PROGRESS.getCode())
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,7 @@ package cn.bootx.platform.daxpay.service.core.payment.reconcile.strategy;
|
|||||||
import cn.bootx.platform.common.core.util.LocalDateTimeUtil;
|
import cn.bootx.platform.common.core.util.LocalDateTimeUtil;
|
||||||
import cn.bootx.platform.common.sequence.func.Sequence;
|
import cn.bootx.platform.common.sequence.func.Sequence;
|
||||||
import cn.bootx.platform.daxpay.code.PayChannelEnum;
|
import cn.bootx.platform.daxpay.code.PayChannelEnum;
|
||||||
|
import cn.bootx.platform.daxpay.exception.pay.PayFailureException;
|
||||||
import cn.bootx.platform.daxpay.service.core.channel.union.convert.UnionPayConvert;
|
import cn.bootx.platform.daxpay.service.core.channel.union.convert.UnionPayConvert;
|
||||||
import cn.bootx.platform.daxpay.service.core.channel.union.dao.UnionPayRecordManager;
|
import cn.bootx.platform.daxpay.service.core.channel.union.dao.UnionPayRecordManager;
|
||||||
import cn.bootx.platform.daxpay.service.core.channel.union.entity.UnionPayConfig;
|
import cn.bootx.platform.daxpay.service.core.channel.union.entity.UnionPayConfig;
|
||||||
@@ -75,6 +76,10 @@ public class UnionPayReconcileStrategy extends AbsReconcileStrategy {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void downAndSave() {
|
public void downAndSave() {
|
||||||
|
if (true){
|
||||||
|
throw new PayFailureException("功能暂时未实现");
|
||||||
|
}
|
||||||
|
|
||||||
Date date = DateUtil.date(this.getRecordOrder().getDate());
|
Date date = DateUtil.date(this.getRecordOrder().getDate());
|
||||||
reconcileService.downAndSave(date, this.getRecordOrder().getId(), this.unionPayKit);
|
reconcileService.downAndSave(date, this.getRecordOrder().getId(), this.unionPayKit);
|
||||||
}
|
}
|
||||||
|
@@ -103,7 +103,7 @@ public class RefundSyncService {
|
|||||||
refundOrder.setGatewayOrderNo(syncResult.getGatewayOrderNo());
|
refundOrder.setGatewayOrderNo(syncResult.getGatewayOrderNo());
|
||||||
refundOrderManager.updateById(refundOrder);
|
refundOrderManager.updateById(refundOrder);
|
||||||
}
|
}
|
||||||
// 判断网关状态是否和支付单一致, 同时特定情况下更新网关同步状态
|
// 判断网关状态是否和支付单一致
|
||||||
boolean statusSync = this.checkSyncStatus(syncResult, refundOrder);
|
boolean statusSync = this.checkSyncStatus(syncResult, refundOrder);
|
||||||
RefundRepairResult repairResult = new RefundRepairResult();
|
RefundRepairResult repairResult = new RefundRepairResult();
|
||||||
try {
|
try {
|
||||||
|
@@ -35,6 +35,7 @@ public class RefundSyncTaskService {
|
|||||||
refundSyncService.syncRefundOrder(refundOrder);
|
refundSyncService.syncRefundOrder(refundOrder);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("退款执行同步失败, ID: {}",refundOrder.getId());
|
log.warn("退款执行同步失败, ID: {}",refundOrder.getId());
|
||||||
|
log.warn("退款执行同步失败",e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user