fix: 循环依赖
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user