From b2696a900be442a6f99c88481aa672e2b0f7a29a Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 10 Jan 2022 23:21:24 +0800 Subject: [PATCH] fix bug --- .../iformall/service/impl/WxMsgServiceImpl.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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..51c2c08f1 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; @@ -40,42 +41,55 @@ import java.util.stream.Collectors; public class WxMsgServiceImpl implements WxMsgService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired WxMsgMapper wxMsgMapper; + @Lazy @Autowired WxCUserMapper wxCUserMapper; + @Lazy @Autowired WxMsgConfigMapper wxMsgConfigMapper; + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; + @Lazy @Autowired WxCUserBasicInfoMapper wxCUserBasicInfoMapper; + @Lazy @Autowired WxMsgCallbackMapper wxMsgCallbackMapper; + @Lazy @Autowired WxMsgModelMapper wxMsgModelMapper; + @Lazy @Autowired WxTemplateMsgMapper wxTemplateMsgMapper; + @Lazy @Autowired MqBaseProducer mqBaseProducer; + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired PushLimitService pushLimitService; + @Lazy @Autowired WxAppinfoService wxAppinfoService; + @Lazy @Autowired WxCUserService wxCUserService;