mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 暂时开放pre环境执行定时任务
This commit is contained in:
@@ -687,26 +687,8 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
if (CollectionUtils.isEmpty(orderList)) {
|
||||
return;
|
||||
}
|
||||
// long currentTimeMillis = System.currentTimeMillis();
|
||||
for (OrderBasicInfo orderBasicInfo : orderList) {
|
||||
// 判断支付成功时间距当前时间是否大于15分钟
|
||||
// long time;
|
||||
// String startType = orderBasicInfo.getStartType();
|
||||
// // 立即启动的订单使用支付时间判断,预约充电的订单使用预约时间判断
|
||||
// if (StringUtils.equals(StartTypeEnum.NOW.getValue(), startType)) {
|
||||
// Date payTime = orderBasicInfo.getPayTime();
|
||||
// time = payTime == null ? 0L : payTime.getTime();
|
||||
// } else {
|
||||
// Date reservedStartTime = orderBasicInfo.getReservedStartTime();
|
||||
// time = reservedStartTime == null ? 0L : reservedStartTime.getTime();
|
||||
// }
|
||||
//
|
||||
// if (currentTimeMillis - time < 1000 * 60 * 15) {
|
||||
// logger.info("orderCode:{}, currentTimeMillis:{} - time:{} = {}, 支付成功时间距当前时间小于15分钟, 暂不执行退款",
|
||||
// orderBasicInfo.getOrderCode(), currentTimeMillis, time, currentTimeMillis - time);
|
||||
// continue;
|
||||
// }
|
||||
|
||||
for (OrderBasicInfo orderBasicInfo : orderList) {
|
||||
// 判断支付成功时间距当前时间是否大于15分钟
|
||||
String startType = orderBasicInfo.getStartType();
|
||||
// 立即启动的订单使用支付时间判断,预约充电的订单使用预约时间判断
|
||||
|
||||
Reference in New Issue
Block a user