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;