提交 1b000ef2 authored 作者: 吴德鹏's avatar 吴德鹏

优化

上级 ca467d49
...@@ -21,7 +21,8 @@ import java.util.*; ...@@ -21,7 +21,8 @@ import java.util.*;
/** /**
* 物流状态定时修改 * 物流状态定时修改
*/ */
@Component("ExpressStatusTask") @Deprecated
//@Component("ExpressStatusTask")
public class ExpressStatusTask { public class ExpressStatusTask {
@Autowired @Autowired
private TbCfItemOrderRService tbCfItemOrderRService; private TbCfItemOrderRService tbCfItemOrderRService;
...@@ -30,7 +31,7 @@ public class ExpressStatusTask { ...@@ -30,7 +31,7 @@ public class ExpressStatusTask {
@Autowired @Autowired
private TbCfOrderService tbCfOrderService; private TbCfOrderService tbCfOrderService;
@Scheduled(cron = "0 0/10 * * * ? ") // @Scheduled(cron = "0 0/10 * * * ? ")
public void expressStatusTaskForStorageC() { public void expressStatusTaskForStorageC() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String startime = sdf.format(getStartTime()); String startime = sdf.format(getStartTime());
...@@ -56,7 +57,7 @@ public class ExpressStatusTask { ...@@ -56,7 +57,7 @@ public class ExpressStatusTask {
} }
@Scheduled(cron = "0 0/10 * * * ? ") // @Scheduled(cron = "0 0/10 * * * ? ")
public void expressStatusTaskForStorageA() { public void expressStatusTaskForStorageA() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String startime = sdf.format(getStartTime()); String startime = sdf.format(getStartTime());
...@@ -82,7 +83,7 @@ public class ExpressStatusTask { ...@@ -82,7 +83,7 @@ public class ExpressStatusTask {
} }
@Scheduled(cron = "0 0/10 * * * ? ") // @Scheduled(cron = "0 0/10 * * * ? ")
public void expressStatusTaskForDelivery() { public void expressStatusTaskForDelivery() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String startime = sdf.format(getStartTime()); String startime = sdf.format(getStartTime());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论