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