From c2d6b1df9e1a2163a333b57a63b9593c69746da8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 07 七月 2020 10:27:45 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/WcsDispatcher.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/WcsDispatcher.java b/src/main/java/com/zy/asrs/task/WcsDispatcher.java index 455bd03..0d47315 100644 --- a/src/main/java/com/zy/asrs/task/WcsDispatcher.java +++ b/src/main/java/com/zy/asrs/task/WcsDispatcher.java @@ -1,5 +1,6 @@ package com.zy.asrs.task; +import com.zy.asrs.task.handler.WorkLogHandler; import com.zy.asrs.task.handler.WorkMastHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -16,11 +17,13 @@ @Component public class WcsDispatcher { - private static Logger log = LoggerFactory.getLogger(WcsDispatcher.class); + private static final Logger log = LoggerFactory.getLogger(WcsDispatcher.class); private Thread thread; @Autowired private WorkMastHandler workMastHandler; + @Autowired + private WorkLogHandler workLogHandler; @PostConstruct private void start(){ @@ -29,8 +32,9 @@ try { Thread.sleep(3000); - workMastHandler.start(); +// workMastHandler.start(); + workLogHandler.start(); } catch (Exception e) { log.error("Exception", e); -- Gitblit v1.9.1