Commit cdbd6dbf authored by codezwjava's avatar codezwjava

订单获取定时任务测试7

parent 98a3f0ec
...@@ -65,7 +65,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem ...@@ -65,7 +65,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem
// startCreatedDate = sdf.parse("2021-01-28 11:04:01"); // startCreatedDate = sdf.parse("2021-01-28 11:04:01");
// endCreatedDate = sdf.parse("2021-03-1 16:39:59"); // endCreatedDate = sdf.parse("2021-03-1 16:39:59");
//当前时间的前1分钟 //当前时间的前1分钟
startCreatedDate = sdf.parse(sdf.format(new Date(date.getTime()-(long) 60*1000))); startCreatedDate = sdf.parse(sdf.format(new Date(date.getTime()-(long) 24*60*60*1000)));
log.info("订单创建开始时间"+sdf.format(startCreatedDate)); log.info("订单创建开始时间"+sdf.format(startCreatedDate));
endCreatedDate = sdf.parse(sdf.format(date)); endCreatedDate = sdf.parse(sdf.format(date));
String format = sdf.format(date); String format = sdf.format(date);
......
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