From 69c11b6d2c0974b44d571d302b750f75742173c5 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 13 Jan 2022 15:55:06 +0800 Subject: [PATCH] fix bug --- .../service/impl/WxCouponSendServiceImpl.java | 21 +++++++++++++++++++ .../service/impl/WxMsgServiceImpl.java | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java index c378c3094..ef3215b7d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java @@ -27,6 +27,7 @@ import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; @@ -40,18 +41,30 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { @Autowired WxCouponSendMapper wxCouponSendMapper; + + @Lazy @Autowired WxCouponService wxCouponService; + + @Lazy @Autowired WxCouponActionLogService wxCouponActionLogService; + + @Autowired WxCouponSendConfigMapper wxCouponSendConfigMapper; + + @Lazy @Autowired WxOrderService wxOrderService; + + @Autowired WxCouponOrderMapper wxCouponOrderMapper; @Autowired WxMerchantBUserMapper wxMerchantBUserMapper; + + @Lazy @Autowired PushLimitService pushLimitService; @Autowired @@ -60,16 +73,24 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { WxCUserMapper wxCUserMapper; @Autowired WxCUserBasicInfoMapper wxCUserBasicInfoMapper; + + @Lazy @Autowired WxAppinfoService wxAppinfoService; @Autowired WxAuthorizerInfoMapper authorizerInfoMapper; + + @Lazy @Autowired WxMsgLimitService wxMsgLimitService; @Autowired WxCouponMerchantMapper wxCouponMerchantMapper; + + @Lazy @Autowired WxTemplateMsgService wxTemplateMsgService; + + @Lazy @Autowired private WxMsgService wxMsgService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java index 8098da1f7..45c14f407 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java @@ -25,6 +25,7 @@ import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; @@ -49,6 +50,7 @@ public class WxMsgServiceImpl implements WxMsgService { @Autowired WxMsgConfigMapper wxMsgConfigMapper; + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; @@ -67,15 +69,19 @@ public class WxMsgServiceImpl implements WxMsgService { @Autowired MqBaseProducer mqBaseProducer; + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired PushLimitService pushLimitService; + @Lazy @Autowired WxAppinfoService wxAppinfoService; + @Lazy @Autowired WxCUserService wxCUserService;