Commit 674bc150 by 吕明尚

订单取消支付修改为定时任务

parent 08209c82
......@@ -416,6 +416,9 @@ public class RedisTask {
String orderNo = jsonObject.getStr("orderNo");
if (expirationTime.getTime() < new Date().getTime()) {
SOrder byOrderNo = orderService.getByOrderNo(orderNo);
if (ObjectUtils.isEmpty(byOrderNo)) {
redisUtil.delete(key);
}
if (ObjectUtils.isEmpty(byOrderNo.getPayTime()) && byOrderNo.getPayPrice().compareTo(BigDecimal.ZERO) > 0) {
orderService.removeById(byOrderNo.getId());
redisUtil.delete(key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment