From b7fe6fb1d288e123d596470890da583793083a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=99=93=E4=BC=9F?= Date: Thu, 30 Mar 2023 10:56:40 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=98=B2=E6=AD=A2=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=BC=95=E7=94=A8=E9=94=99=E8=AF=AF=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20ApplicationContext=20=E8=8E=B7=E5=8F=96=20?= =?UTF-8?q?Bean=20=E6=9D=A5=E8=BF=9B=E8=A1=8C=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zbkj/service/service/impl/OrderServiceImpl.java | 7 ++++++- .../service/service/impl/StoreCombinationServiceImpl.java | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/OrderServiceImpl.java b/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/OrderServiceImpl.java index 2bc9e386..f5f23f0c 100644 --- a/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/OrderServiceImpl.java +++ b/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/OrderServiceImpl.java @@ -46,6 +46,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.ApplicationContext; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -118,9 +119,13 @@ public class OrderServiceImpl implements OrderService { @Autowired private StoreSeckillService storeSeckillService; - @Autowired private StoreCombinationService storeCombinationService; + @Autowired + public void setStoreCombinationService(ApplicationContext applicationContext) { + this.storeCombinationService = applicationContext.getBean(StoreCombinationService.class); + } + @Autowired private StoreBargainService storeBargainService; diff --git a/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/StoreCombinationServiceImpl.java b/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/StoreCombinationServiceImpl.java index b3cf292f..416fd987 100644 --- a/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/StoreCombinationServiceImpl.java +++ b/crmeb/crmeb-service/src/main/java/com/zbkj/service/service/impl/StoreCombinationServiceImpl.java @@ -35,6 +35,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.ApplicationContext; import org.springframework.stereotype.Service; import org.springframework.transaction.support.TransactionTemplate; @@ -90,9 +91,13 @@ public class StoreCombinationServiceImpl extends ServiceImpl