From 074db939f3cb4b82198ef45e7c56429f8d0bbe8e Mon Sep 17 00:00:00 2001 From: daixiaogang <2510234660@qq.com> Date: Sun, 3 Sep 2023 14:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E5=BC=95=E7=94=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/impl/OpOrderServiceImpl.java | 4 ++- .../service/impl/OrderPrintServiceImpl.java | 28 ++++++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/ms-biz/src/main/java/com/ms/api/service/impl/OpOrderServiceImpl.java b/ms-biz/src/main/java/com/ms/api/service/impl/OpOrderServiceImpl.java index 1217f375..cd9166da 100644 --- a/ms-biz/src/main/java/com/ms/api/service/impl/OpOrderServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/api/service/impl/OpOrderServiceImpl.java @@ -136,7 +136,9 @@ public class OpOrderServiceImpl implements OpOrderService { private final RedisTemplate redisTemplate; - private final OrderPrintService orderPrintService; + @Lazy + @Autowired + private OrderPrintService orderPrintService; private final OpOrderEncryptIndexMapper opOrderEncryptIndexMapper; diff --git a/ms-biz/src/main/java/com/ms/api/service/impl/OrderPrintServiceImpl.java b/ms-biz/src/main/java/com/ms/api/service/impl/OrderPrintServiceImpl.java index 67eca22a..6ff9e052 100644 --- a/ms-biz/src/main/java/com/ms/api/service/impl/OrderPrintServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/api/service/impl/OrderPrintServiceImpl.java @@ -31,26 +31,34 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service -@AllArgsConstructor public class OrderPrintServiceImpl implements OrderPrintService { - private final OpOrderChildMapper opOrderChildMapper; + @Autowired + private OpOrderChildMapper opOrderChildMapper; - private final OpOrderChildAfterSaleMapper opOrderChildAfterSaleMapper; + @Autowired + private OpOrderChildAfterSaleMapper opOrderChildAfterSaleMapper; - private final ProductMapper productMapper; + @Autowired + private ProductMapper productMapper; - private final OpOrderExtMapper opOrderExtMapper; + @Autowired + private OpOrderExtMapper opOrderExtMapper; - private final OpOrderSensitiveMapper opOrderSensitiveMapper; + @Autowired + private OpOrderSensitiveMapper opOrderSensitiveMapper; - private final OpOrderDsMapper opOrderDsMapper; + @Autowired + private OpOrderDsMapper opOrderDsMapper; - private final OpLogisticsPlatformMapper opLogisticsPlatformMapper; + @Autowired + private OpLogisticsPlatformMapper opLogisticsPlatformMapper; - private final OpLogisticsMapper opLogisticsMapper; + @Autowired + private OpLogisticsMapper opLogisticsMapper; - private final RedisTemplate redisTemplate; + @Autowired + private RedisTemplate redisTemplate; @Lazy @Autowired