mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 17:40:05 +08:00
🐛 修改 pay
模块>支付订单的同步 Job,查询指定创建时间前的待支付订单
This commit is contained in:
parent
475e932aec
commit
0f6f204320
@ -24,10 +24,10 @@ public interface PayOrderExtensionMapper extends BaseMapperX<PayOrderExtensionDO
|
|||||||
return selectList(PayOrderExtensionDO::getOrderId, orderId);
|
return selectList(PayOrderExtensionDO::getOrderId, orderId);
|
||||||
}
|
}
|
||||||
|
|
||||||
default List<PayOrderExtensionDO> selectListByStatusAndCreateTimeGe(Integer status, LocalDateTime minCreateTime) {
|
default List<PayOrderExtensionDO> selectListByStatusAndCreateTimeLe(Integer status, LocalDateTime minCreateTime) {
|
||||||
return selectList(new LambdaQueryWrapper<PayOrderExtensionDO>()
|
return selectList(new LambdaQueryWrapper<PayOrderExtensionDO>()
|
||||||
.eq(PayOrderExtensionDO::getStatus, status)
|
.eq(PayOrderExtensionDO::getStatus, status)
|
||||||
.ge(PayOrderExtensionDO::getCreateTime, minCreateTime));
|
.le(PayOrderExtensionDO::getCreateTime, minCreateTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -438,8 +438,8 @@ public class PayOrderServiceImpl implements PayOrderService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int syncOrder(LocalDateTime minCreateTime) {
|
public int syncOrder(LocalDateTime minCreateTime) {
|
||||||
// 1. 查询指定创建时间内的待支付订单
|
// 1. 查询指定创建时间前的待支付订单
|
||||||
List<PayOrderExtensionDO> orderExtensions = orderExtensionMapper.selectListByStatusAndCreateTimeGe(
|
List<PayOrderExtensionDO> orderExtensions = orderExtensionMapper.selectListByStatusAndCreateTimeLe(
|
||||||
PayOrderStatusEnum.WAITING.getStatus(), minCreateTime);
|
PayOrderStatusEnum.WAITING.getStatus(), minCreateTime);
|
||||||
if (CollUtil.isEmpty(orderExtensions)) {
|
if (CollUtil.isEmpty(orderExtensions)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user