|
@@ -5,6 +5,7 @@ import com.steerinfo.dil.mapper.QmsQueueSpellingListMapper;
|
|
|
import com.steerinfo.dil.mapper.QueuingRulesMapper;
|
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -27,6 +28,7 @@ public class QueueDealWithAsync {
|
|
|
@Autowired
|
|
|
private QmsQueueListMapper qmsQueueListMapper;
|
|
|
|
|
|
+ @Lazy
|
|
|
@Autowired
|
|
|
private QmsQueueSpellingListMapper qmsQueueSpellingListMapper;
|
|
|
|
|
@@ -86,7 +88,6 @@ public class QueueDealWithAsync {
|
|
|
*/
|
|
|
@Async("taskExecutor")
|
|
|
public void dealWithThree(long nowTime){
|
|
|
-
|
|
|
List<Map<String, Object>> listMap = queuingRulesMapper.getAllNotSureEnFactoryList();
|
|
|
for (Map<String, Object> map : listMap) {
|
|
|
if((nowTime - ((Date) map.get("insertTime")).getTime()) > 86400000){
|