qzyReal 1 anno fa
parent
commit
0ccc26be65
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/main/java/com/gzlh/event/EventThread.java

+ 2 - 1
src/main/java/com/gzlh/event/EventThread.java

@@ -4,6 +4,7 @@ import cn.hutool.core.thread.ThreadUtil;
 import cn.hutool.core.util.NumberUtil;
 import cn.hutool.core.util.RandomUtil;
 import cn.hutool.core.util.StrUtil;
+import cn.hutool.extra.spring.SpringUtil;
 import com.gzlh.config.ModuleEnum;
 import com.gzlh.dto.EventDTO;
 import com.gzlh.infrared.config.RedPropertiesConfig;
@@ -22,7 +23,7 @@ import java.util.List;
 public class EventThread implements Runnable{
     private List<EventDTO> eventDTOList;
     private String eventName;
-    private final LedFactory ledFactory=SpringUtil.getBean(LedFactory.class);
+    private final LedFactory ledFactory= SpringUtil.getBean(LedFactory.class);
     private final RedFactory redFactory=SpringUtil.getBean(RedFactory.class);
     private  final WeighbridgeFactory weighbridgeFactory=SpringUtil.getBean(WeighbridgeFactory.class);
     private final WeighbridgePropertiesConfig weighbridgePropertiesConfig=SpringUtil.getBean(WeighbridgePropertiesConfig.class);