From 497660fe835e6eee3a11558c280133c405a8ec2c Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 07 七月 2020 14:14:13 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/WcsDispatcher.java | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/WcsDispatcher.java b/src/main/java/com/zy/asrs/task/WcsDispatcher.java index c09f242..a42d386 100644 --- a/src/main/java/com/zy/asrs/task/WcsDispatcher.java +++ b/src/main/java/com/zy/asrs/task/WcsDispatcher.java @@ -1,22 +1,33 @@ package com.zy.asrs.task; +import com.zy.asrs.task.handler.WorkLogHandler; +import com.zy.asrs.task.handler.WorkMastHandler; +import com.zy.system.service.ConfigService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.stereotype.Component; +import org.springframework.beans.factory.annotation.Autowired; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; /** + * 鍗曠嚎绋嬫ā寮� 锛� 宸插純鐢� ) * 浠诲姟涓績璋冨害鍣� * Created by vincent on 2020/7/4 */ -@Component +//@Component +@Deprecated 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; + @Autowired + private ConfigService configService; @PostConstruct private void start(){ @@ -25,7 +36,9 @@ try { Thread.sleep(3000); - +// workMastHandler.start(); +// +// workLogHandler.start(); } catch (Exception e) { log.error("Exception", e); -- Gitblit v1.9.1