fix: 循环依赖

This commit is contained in:
2023-12-29 08:54:11 +08:00
parent bf5696c15f
commit 7810ffdf04
5 changed files with 10 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import org.nl.wms.ext.mes.service.dto.MesGdyInfoDto;
import org.nl.wms.sch.task_manage.GeneralDefinition;
import org.nl.wms.sch.task_manage.enums.NoticeTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@@ -25,6 +26,7 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
@Slf4j
@Component
@Lazy
@Order(value = 1)
public class AutoSaveGdyInfo {
@Autowired

View File

@@ -10,6 +10,7 @@ import org.nl.wms.ext.mes.service.dto.MesShelfInfo;
import org.nl.wms.sch.task_manage.GeneralDefinition;
import org.nl.wms.sch.task_manage.enums.NoticeTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@@ -23,6 +24,7 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
@Slf4j
@Component
@Lazy
@Order(value = 1)
public class AutoSaveShelfInformation {
@Autowired

View File

@@ -11,6 +11,7 @@ import org.nl.wms.ext.mes.service.dto.MesGdyInfoWaitDto;
import org.nl.wms.sch.task_manage.GeneralDefinition;
import org.nl.wms.sch.task_manage.enums.NoticeTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@@ -24,6 +25,7 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
@Slf4j
@Lazy
@Component
@Order(value = 1)
public class AutoSaveWaitGdyInfo {

View File

@@ -4,6 +4,7 @@ import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.nl.wms.ext.mes.service.WmsToMesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@@ -13,6 +14,7 @@ import org.springframework.stereotype.Component;
* @Date: 2023/10/20
*/
@Slf4j
@Lazy
@Component
@Order(value = 1)
public class AutoSynMaterialInfo {

View File

@@ -4,6 +4,7 @@ import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.nl.wms.ext.mes.service.WmsToMesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@@ -14,6 +15,7 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component
@Lazy
@Order(value = 1)
public class AutoSynWorkOrderInfo {
@Autowired