Commit 38018771 by 吕明尚

自动更新订单状态定时任务更改逻辑

parent 405659b4
...@@ -220,7 +220,7 @@ public class OrderTask { ...@@ -220,7 +220,7 @@ public class OrderTask {
item.setEndDate(item.getPreEndDate()); item.setEndDate(item.getPreEndDate());
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
map.put("orderNo", item.getOrderNo()); map.put("orderNo", item.getOrderNo());
map.put("expirationTime", item.getStartDate().toString()); map.put("expirationTime", item.getEndDate().toString());
JSONObject jsonObject = new JSONObject(map); JSONObject jsonObject = new JSONObject(map);
redisUtils.set(ReceiptRdeisEnum.ORDER_NO_KEY.getValue() + item.getOrderNo(), jsonObject.toString()); redisUtils.set(ReceiptRdeisEnum.ORDER_NO_KEY.getValue() + item.getOrderNo(), jsonObject.toString());
orderService.updateSOrder(item); orderService.updateSOrder(item);
......
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