diff --git a/mallinkService/src/main/java/com/iformall/service/impl/AliBusinessCircleOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/AliBusinessCircleOrderServiceImpl.java index 16c309209..395e7bdd5 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/AliBusinessCircleOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/AliBusinessCircleOrderServiceImpl.java @@ -16,6 +16,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; @@ -32,27 +33,34 @@ public class AliBusinessCircleOrderServiceImpl implements AliBusinessCircleOrder private static final String ALI_CIRCLE_KEY = "CIRCLE:ALI:"; + @Lazy @Autowired ExcelService excelService; + @Lazy @Autowired RedisLock redisLock; @Autowired AliBusinessCircleOrderMapper aliBusinessCircleOrderMapper; + @Lazy @Autowired WxMerchantService wxMerchantService; + @Lazy @Autowired AliPayCUserService aliPayCUserService; + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired WxCreditHistoryService creditHistoryService; + @Lazy @Autowired WxCouponSendService wxCouponSendService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/AliPayCUserServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/AliPayCUserServiceImpl.java index 26a7de4ef..f5b189a0d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/AliPayCUserServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/AliPayCUserServiceImpl.java @@ -14,6 +14,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/CUserTokenServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/CUserTokenServiceImpl.java index 89abbd1b4..5463cfd4a 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/CUserTokenServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/CUserTokenServiceImpl.java @@ -15,6 +15,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -25,13 +26,15 @@ public class CUserTokenServiceImpl implements CUserTokenService { @Autowired WxCUserMapper wxCUserMapper; + @Lazy + @Autowired + CUserServiceFactory cuserFactory; + + @Lazy @Autowired @Qualifier("objectCommonRedisTemplate") RedisTemplate baseCUserTokenRedisTemplate; - @Autowired - CUserServiceFactory cuserFactory; - private EnumAppPlat getPlat(String token) { if(token.endsWith(Constant.TOKEN_WXC_END)){ return EnumAppPlat.WX; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/DataTowerServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/DataTowerServiceImpl.java index a6de44f36..2130a2331 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/DataTowerServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/DataTowerServiceImpl.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.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; import java.math.BigDecimal; @@ -83,12 +84,15 @@ public class DataTowerServiceImpl implements DataTowerService { @Autowired private WxMallMapper wxMallMapper; + @Lazy @Autowired private WxCouponOrderService wxCouponOrderService; + @Lazy @Autowired private WxCouponChannelService wxCouponChannelService; + @Lazy @Autowired private WxCUserCarService wxCUserCarService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/FengNiaoMapServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/FengNiaoMapServiceImpl.java index 023b1faaa..af9cda85f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/FengNiaoMapServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/FengNiaoMapServiceImpl.java @@ -5,6 +5,7 @@ import com.iformall.mapper.FengNiaoMapConfigMapper; import com.iformall.service.FengNiaoMapService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; @Service diff --git a/mallinkService/src/main/java/com/iformall/service/impl/JmSportOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/JmSportOrderServiceImpl.java index c800200e4..5a1e17c31 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/JmSportOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/JmSportOrderServiceImpl.java @@ -4,12 +4,12 @@ import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.iformall.common.IdWorker; import com.iformall.domain.po.JmSportOrder; -import com.iformall.domain.po.MemCouponFromDsp; import com.iformall.mapper.*; import com.iformall.service.JmSportOrderService; 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 java.util.Date; @@ -20,7 +20,6 @@ public class JmSportOrderServiceImpl implements JmSportOrderService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - @Autowired private JmSportOrderMapper jmSportOrderMapper; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallPermissionServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallPermissionServiceImpl.java index dac7c2105..df0d20ce3 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallPermissionServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallPermissionServiceImpl.java @@ -24,6 +24,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 java.util.*; @@ -31,7 +32,7 @@ import java.util.*; @Service public class MallPermissionServiceImpl implements MallPermissionService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Autowired private MallPermissionMapper mallPermissionMapper; @@ -40,6 +41,7 @@ public class MallPermissionServiceImpl implements MallPermissionService { @Autowired private WxMallMapper wxMallMapper; + @Autowired private WxLogicPermissionMapper logicPermissionDao; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallResourceServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallResourceServiceImpl.java index 85d34d0de..63db0e66f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallResourceServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallResourceServiceImpl.java @@ -6,16 +6,16 @@ import com.iformall.domain.po.MallResource; import com.iformall.mapper.MallResourceMapper; import com.iformall.service.MallResourceService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.common.IdWorker; @Service public class MallResourceServiceImpl implements MallResourceService { - + @Autowired MallResourceMapper mallResourceMapper; - @Override public PageInfo listAsPage(MallResource record, Integer pageIndex, Integer pageSize) { return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> mallResourceMapper.findList(record)); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallRolePermissionServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallRolePermissionServiceImpl.java index 65e8768e3..86ab54b0e 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallRolePermissionServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallRolePermissionServiceImpl.java @@ -12,6 +12,7 @@ import com.iformall.service.MallRolePermissionService; 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 java.util.ArrayList; @@ -25,7 +26,6 @@ public class MallRolePermissionServiceImpl implements MallRolePermissionService @Autowired MallRolePermissionMapper mallUserRolePermissionMapper; - @Override public PageInfo listAsPage(MallRolePermission record, Integer pageIndex, Integer pageSize) { return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> mallUserRolePermissionMapper.findList(record)); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallRoleServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallRoleServiceImpl.java index a6bed2016..2a85f1ed9 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallRoleServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallRoleServiceImpl.java @@ -10,6 +10,7 @@ import com.iformall.service.MallRoleService; 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 java.util.HashMap; @@ -19,11 +20,10 @@ import java.util.Map; @Service public class MallRoleServiceImpl implements MallRoleService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Autowired MallRoleMapper mallRoleMapper; - @Override public PageInfo listAsPage(MallRole record, Integer pageIndex, Integer pageSize) { return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> mallRoleMapper.findList(record)); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallUserActionServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallUserActionServiceImpl.java index 04794a58c..04bda044f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallUserActionServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallUserActionServiceImpl.java @@ -8,6 +8,7 @@ import com.iformall.domain.vo.MallUserActionVo; import com.iformall.mapper.MallUserActionMapper; import com.iformall.service.MallUserActionService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.common.IdWorker; @@ -15,7 +16,7 @@ import java.util.Date; @Service public class MallUserActionServiceImpl implements MallUserActionService { - + @Autowired MallUserActionMapper mallUserActionMapper; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java index e2e41be9f..002dab73f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java @@ -23,6 +23,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.Transactional; @@ -32,6 +33,7 @@ import java.util.stream.Collectors; @Service public class MallUserInfoServiceImpl implements MallUserInfoService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired @@ -51,10 +53,11 @@ public class MallUserInfoServiceImpl implements MallUserInfoService { @Autowired MallRolePermissionMapper mallRolePermissionMapper; - + @Autowired WxMsgValidationcodeMapper wxMsgValidationcodeMapper; + @Lazy @Autowired private WxMallService mallService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallUserRoleServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallUserRoleServiceImpl.java index 481781c5a..158fbcd67 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallUserRoleServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallUserRoleServiceImpl.java @@ -15,21 +15,22 @@ import com.iformall.service.MallUserRoleService; 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 java.util.List; @Service public class MallUserRoleServiceImpl implements MallUserRoleService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Autowired MallUserRoleMapper mallUserRoleMapper; @Autowired MallRolePermissionMapper mallRolePermissionMapper; - @Override public PageInfo listAsPage(MallUserRole record, Integer pageIndex, Integer pageSize) { return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> mallUserRoleMapper.findList(record)); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java index 12a8be7df..97be7749d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MarkingDataReportServiceImpl.java @@ -22,6 +22,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 javax.servlet.http.HttpServletRequest; @@ -36,25 +37,34 @@ import java.util.stream.Collectors; */ @Service public class MarkingDataReportServiceImpl implements MarkingDataReportService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired private WxCouponOrderMapper wxCouponOrderMapper; + @Autowired private WxCouponActionLogMapper wxCouponActionLogMapper; + @Autowired private WxCarCmdLogMapper wxCarCmdLogMapper; + @Autowired private WxUserVisitMapper wxUserVisitMapper; + @Autowired private WxCouponMapper wxCouponMapper; + @Autowired private WxOrderMapper wxOrderMapper; @Autowired private WxMallMapper wxMallMapper; + + @Lazy @Autowired private ExcelService excelService; + @Lazy @Autowired private WxCouponOrderService wxCouponOrderService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MemCouponFromDspServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MemCouponFromDspServiceImpl.java index f8f8c6db3..b04fe9d72 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MemCouponFromDspServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MemCouponFromDspServiceImpl.java @@ -19,6 +19,7 @@ import com.iformall.service.WxOrderService; 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 com.iformall.common.IdWorker; @@ -35,10 +36,13 @@ public class MemCouponFromDspServiceImpl implements MemCouponFromDspService { @Autowired private WxCouponMapper couponMapper; + @Lazy @Autowired private WxOrderService wxOrderService; + @Lazy @Autowired private WxCUserService wxCUserService; + @Lazy @Autowired private WxCUserBasicInfoService wxCUserBasicInfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/NeuPosOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/NeuPosOrderServiceImpl.java index 92b66b42e..5b22c00da 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/NeuPosOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/NeuPosOrderServiceImpl.java @@ -20,6 +20,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; @Service @@ -27,7 +28,8 @@ public class NeuPosOrderServiceImpl implements NeuPosOrderService { @Autowired NeuPosOrderMasterExtMapper neuPosOrderMasterExtMapper; - + + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/QrCodeServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/QrCodeServiceImpl.java index e6c0deb6e..9c3ff39f4 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/QrCodeServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/QrCodeServiceImpl.java @@ -17,6 +17,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 javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -28,15 +29,20 @@ import java.util.*; */ @Service public class QrCodeServiceImpl implements QrCodeService { + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + @Lazy @Autowired private WxAppinfoService wxAppinfoService; - @Autowired - private boolean isFmOpen; + @Autowired private String fmUploadDir; + + @Lazy @Autowired private PayServiceFactory payServiceFactory; + @Autowired private AliyunOSS aliyunOSS; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/TtCUserServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/TtCUserServiceImpl.java index 0792fb6ab..dda90165d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/TtCUserServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/TtCUserServiceImpl.java @@ -22,6 +22,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -36,12 +37,15 @@ public class TtCUserServiceImpl implements TtCUserService { @Autowired private TtCUserMapper ttCUserMapper; + @Lazy @Autowired private WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired private WxScoreRulesService wxScoreRulesService; + @Lazy @Autowired private WxCUserTagsService wxCUserTagsService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxActivityJoinServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxActivityJoinServiceImpl.java index a055c4f7d..f2849508b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxActivityJoinServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxActivityJoinServiceImpl.java @@ -24,6 +24,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; @@ -52,6 +53,7 @@ public class WxActivityJoinServiceImpl implements WxActivityJoinService { @Autowired WxActivityMapper wxActivityMapper; + @Lazy @Autowired ExcelService excelService; @@ -67,6 +69,7 @@ public class WxActivityJoinServiceImpl implements WxActivityJoinService { @Autowired WxCreditHistoryMapper wxCreditHistoryMapper; + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxActivityServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxActivityServiceImpl.java index 0cf499bc8..991913875 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxActivityServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxActivityServiceImpl.java @@ -22,6 +22,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; @@ -42,6 +43,7 @@ public class WxActivityServiceImpl implements WxActivityService { @Autowired WxActivityMapper wxActivityMapper; + @Lazy @Autowired WxCampaignService wxCampaignService; @Autowired diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java index 22e1ae0d5..eef9db325 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java @@ -28,6 +28,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.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; @@ -49,24 +50,31 @@ public class WxBillAllServiceImpl implements WxBillAllService { @Autowired WxBillAllMapper wxBillAllMapper; + @Lazy @Autowired WxBillDailyService wxBillDailyService; + @Lazy @Autowired WxBillDepositService wxBillDepositService; + @Lazy @Autowired WxBillPropertyDepositService wxBillPropertyDepositService; + @Lazy @Autowired WxBillPropertyService wxBillPropertyService; + @Lazy @Autowired WxBillRentService wxBillRentService; + @Lazy @Autowired WxBillOtherService wxBillOtherService; + @Lazy @Autowired WxBillOtherDepositService wxBillOtherDepositService; @@ -91,12 +99,14 @@ public class WxBillAllServiceImpl implements WxBillAllService { @Autowired WxBillOtherDepositMapper wxBillOtherDepositMapper; + @Lazy @Autowired ExcelService excelService; @Autowired MqBaseProducer mqBaseProducer; + @Lazy @Autowired WxBillActionService wxBillActionService; @@ -124,14 +134,18 @@ public class WxBillAllServiceImpl implements WxBillAllService { @Autowired StringRedisTemplate stringRedisTemplate; + @Lazy @Autowired WxBillSettleRecordService wxBillSettleRecordService; + @Lazy @Autowired WxBillSettleService wxBillSettleService; @Autowired WxBillSettleRecordMapper wxBillSettleRecordMapper; + + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillDailyServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillDailyServiceImpl.java index b0a3a09f8..37dfc67b5 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillDailyServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillDailyServiceImpl.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.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -47,8 +48,10 @@ public class WxBillDailyServiceImpl implements WxBillDailyService { @Autowired WxShopMapper wxShopMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; + @Lazy @Autowired ExcelService excelService; @Autowired @@ -57,6 +60,7 @@ public class WxBillDailyServiceImpl implements WxBillDailyService { WxMerchantShopMapper wxMerchantShopMapper; @Autowired WxMerchantMapper wxMerchantMapper; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillDepositServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillDepositServiceImpl.java index 1e378b98c..5ef438901 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillDepositServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillDepositServiceImpl.java @@ -23,6 +23,7 @@ import com.iformall.utils.DateUtils; 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.Transactional; @@ -42,9 +43,11 @@ public class WxBillDepositServiceImpl implements WxBillDepositService { @Autowired WxBillDepositMapper wxBillDepositMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherDepositServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherDepositServiceImpl.java index 014ebb89e..fb8a7dbf0 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherDepositServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherDepositServiceImpl.java @@ -21,6 +21,7 @@ import com.iformall.utils.DateUtils; 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.Transactional; @@ -45,12 +46,15 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService @Autowired WxMerchantMapper wxMerchantMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; + @Lazy @Autowired ExcelService excelService; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherServiceImpl.java index 8fe040f62..0bae20072 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherServiceImpl.java @@ -21,6 +21,7 @@ import com.iformall.utils.DateUtils; 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.Transactional; @@ -45,12 +46,15 @@ public class WxBillOtherServiceImpl implements WxBillOtherService { @Autowired WxMerchantMapper wxMerchantMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; + @Lazy @Autowired ExcelService excelService; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyDepositServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyDepositServiceImpl.java index c58dc6462..2fb3cd2a9 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyDepositServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyDepositServiceImpl.java @@ -23,6 +23,7 @@ import com.iformall.utils.DateUtils; 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.Transactional; @@ -41,8 +42,10 @@ public class WxBillPropertyDepositServiceImpl implements WxBillPropertyDepositSe @Autowired WxBillPropertyDepositMapper wxBillPropertyDepositMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java index 14f822c72..a3da608c9 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java @@ -21,6 +21,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.Transactional; @@ -43,16 +44,20 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { @Autowired WxBillPropertyDepositMapper wxBillPropertyDepositMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; + @Lazy @Autowired ExcelService excelService; @Autowired WxBillActionMapper wxBillActionMapper; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; + @Lazy @Autowired WxBillPropertyDepositService wxBillPropertyDepositService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillRentServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillRentServiceImpl.java index a8c9b8b19..55de3c975 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillRentServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillRentServiceImpl.java @@ -23,6 +23,7 @@ import org.joda.time.format.DateTimeFormatter; 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.Transactional; import javax.servlet.http.HttpServletRequest; @@ -44,6 +45,7 @@ public class WxBillRentServiceImpl implements WxBillRentService { WxBillRentMapper wxBillRentMapper; @Autowired WxBillDepositMapper wxBillDepositMapper; + @Lazy @Autowired WxBillActionService wxBillActionService; @Autowired @@ -54,8 +56,10 @@ public class WxBillRentServiceImpl implements WxBillRentService { WxRentContractMapper wxRentContractMapper; @Autowired WxMerchantTradeDailyMapper wxMerchantTradeDailyMapper; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; + @Lazy @Autowired WxBillDepositService wxBillDepositService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java index 1f97492e2..fc4173777 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java @@ -16,6 +16,7 @@ import com.iformall.service.WxFlowService; import com.iformall.utils.DateUtils; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -58,6 +59,7 @@ public class WxBillSettleServiceImpl implements WxBillSettleService { private WxBillSettleRecordMapper wxBillSettleRecordMapper; @Autowired private WxMerchantSubsidyMapper wxMerchantSubsidyMapper; + @Lazy @Autowired private ExcelService excelService; @Autowired diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessCircleOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessCircleOrderServiceImpl.java index 0a5400960..8414c0a78 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessCircleOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessCircleOrderServiceImpl.java @@ -16,6 +16,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; @@ -33,6 +34,7 @@ public class WxBusinessCircleOrderServiceImpl implements WxBusinessCircleOrderSe private final String WX_CIRCLE_KEY = "CIRCLE:WX:"; + @Lazy @Autowired ExcelService excelService; @@ -42,21 +44,27 @@ public class WxBusinessCircleOrderServiceImpl implements WxBusinessCircleOrderSe @Autowired WxBusinessCircleOrderMapper wxBusinessCircleOrderMapper; + @Lazy @Autowired WxMerchantService wxMerchantService; + @Lazy @Autowired WxCUserService wxCUserService; + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired WxCreditHistoryService creditHistoryService; + @Lazy @Autowired WxCallBackService wxCallBackService; + @Lazy @Autowired WxCouponSendService wxCouponSendService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java index c13bba856..fa96ed7a3 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java @@ -23,6 +23,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.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; @@ -60,13 +61,13 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc @Autowired WxCreditHistoryMapper creditHistoryMapper; - + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; - + @Lazy @Autowired WxCUserBasicChildService wxCUserBasicChildService; - + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; @@ -75,16 +76,16 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc @Autowired WxCarPayRecordMapper wxCarPayRecordMapper; - + @Lazy @Autowired ExcelService excelService; - + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; - + @Lazy @Autowired WxLevelConfigService wxLevelConfigService; - + @Lazy @Autowired WxTagsService wxTagsService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java index 1ff7d1cb6..83bb77b7a 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java @@ -18,6 +18,7 @@ import lombok.extern.slf4j.Slf4j; 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; @@ -36,7 +37,7 @@ public class WxCUserBasicSignServiceImpl implements WxCUserBasicSignService { @Autowired WxCUserBasicSignMapper wxCUserBasicSignMapper; - + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserFromServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserFromServiceImpl.java index d7b2fa755..9c317a916 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserFromServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserFromServiceImpl.java @@ -13,6 +13,7 @@ import lombok.extern.slf4j.Slf4j; 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 javax.servlet.http.HttpServletRequest; @@ -33,7 +34,7 @@ public class WxCUserFromServiceImpl implements WxCUserFromService, IExcelExportS @Autowired WxMerchantMapper wxMerchantMapper; - + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserServiceImpl.java index 4f4567845..4117cd627 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserServiceImpl.java @@ -22,6 +22,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -34,19 +35,19 @@ public class WxCUserServiceImpl implements WxCUserService { @Autowired WxCUserMapper wxCUserMapper; - + @Lazy @Autowired private WxCUserBasicInfoService wxCUserBasicInfoService; - + @Lazy @Autowired private WxScoreRulesService wxScoreRulesService; - + @Lazy @Autowired private WxCUserTagsService wxCUserTagsService; @Autowired private MqBaseProducer mqBaseProducer; - + @Lazy @Autowired private CUserTokenService cUserTokenService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCallBackServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCallBackServiceImpl.java index 9f1f0058f..008f136a8 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCallBackServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCallBackServiceImpl.java @@ -9,6 +9,7 @@ import com.iformall.service.*; 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 java.text.SimpleDateFormat; @@ -22,6 +23,7 @@ public class WxCallBackServiceImpl implements WxCallBackService { private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'+'mm:ss", Locale.CHINA); + @Lazy @Autowired WxPayAccountService wxPayAccountService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java index 6d45d313c..e5969b27b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java @@ -23,6 +23,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; @@ -47,9 +48,11 @@ public class WxCampaignServiceImpl implements WxCampaignService { @Autowired WxCouponChannelMapper wxCouponChannelMapper; + @Lazy @Autowired WxCouponService wxCouponService; + @Lazy @Autowired QrCodeService qrCodeService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCardInfoServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCardInfoServiceImpl.java index 708f82ae7..20cf67c1b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCardInfoServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCardInfoServiceImpl.java @@ -9,6 +9,7 @@ import com.iformall.mapper.WxCardInfoMapper; import com.iformall.service.ExcelService; import com.iformall.service.WxCardInfoService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import javax.servlet.http.HttpServletRequest; @@ -21,6 +22,7 @@ public class WxCardInfoServiceImpl implements WxCardInfoService { @Autowired WxCardInfoMapper wxCardInfoMapper; + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java index b768e855c..52b1cb831 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java @@ -20,6 +20,7 @@ import com.iformall.utils.PayUtils; 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; @@ -62,18 +63,23 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { @Autowired WxCouponOrderMapper wxCouponOrderMapper; + @Lazy @Autowired WxProfitSharingOrderService profitSharingOrderService; + @Lazy @Autowired ExcelService excelService; + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; - + + @Lazy @Autowired WxCashOutService wxCashOutService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCashOutServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCashOutServiceImpl.java index 1607f0209..ac24c2d8b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCashOutServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCashOutServiceImpl.java @@ -36,6 +36,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; @@ -54,12 +55,16 @@ public class WxCashOutServiceImpl implements WxCashOutService { RedisLock redisLock; @Autowired MqBaseProducer mqBaseProducer; + @Lazy @Autowired private WxFlowService wxFlowService; + @Lazy @Autowired PayServiceFactory payServiceFactory; + @Lazy @Autowired WxAppinfoService wxAppinfoService; + @Lazy @Autowired WxPayAccountService wxPayAccountService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java index 6042d0656..842c6a394 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.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 java.math.BigDecimal; @@ -70,6 +71,7 @@ public class WxChartServiceImpl implements WxChartDataService { WxLevelConfigMapper wxLevelConfigMapper; @Autowired WxCUserTagsMapper wxCUserTagsMapper; + @Lazy @Autowired WxCouponService wxCouponService; @Autowired @@ -82,23 +84,31 @@ public class WxChartServiceImpl implements WxChartDataService { WxBillOtherMapper wxBillOtherMapper; @Autowired WxBillAllMapper wxBillAllMapper; + @Lazy @Autowired MarkingDataReportService markingDataReportService; + @Lazy @Autowired WxBusinessService wxBusinessService; - + @Lazy @Autowired WxCouponOrderService wxCouponOrderService; + @Lazy @Autowired KwMeterDataService kwMeterDataService; + @Lazy @Autowired KwMerchantMeterService kwMerchantMeterService; + @Lazy @Autowired KwMeterService kwMeterService; + @Lazy @Autowired private WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired private WxCUserService wxCUserService; + @Lazy @Autowired private WxCUserCarService wxCUserCarService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java index 35230ef13..f75192105 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java @@ -24,6 +24,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; @@ -38,16 +39,20 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { @Autowired WxCouponChannelMapper wxCouponChannelMapper; + @Lazy @Autowired WxCouponService wxCouponService; @Autowired WxMerchantMapper wxMerchantMapper; @Autowired WxCouponMerchantMapper wxCouponMerchantMapper; + @Lazy @Autowired WxScreenAdService wxScreenAdService; + @Lazy @Autowired WxOrderService wxOrderService; + @Lazy @Autowired QrCodeService qrCodeService; @Autowired diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java index 934046a57..3d09dd842 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java @@ -18,6 +18,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 java.util.*; @@ -29,33 +30,43 @@ public class WxCouponInjectServiceImpl implements WxCouponInjectService { @Autowired WxCouponInjectMapper couponInjectMapper; + @Lazy @Autowired WxCouponOrderService wxCouponOrderService; + @Lazy @Autowired WxCouponService wxCouponService; + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired WxCUserService wxCUserService; + @Lazy @Autowired WxCouponActionLogService wxCouponActionLogService; + @Lazy @Autowired WxMsgService wxMsgService; + @Lazy @Autowired WxMsgModelService wxMsgModelService; + @Lazy @Autowired WxMsgConfigService wxMsgConfigService; + @Lazy @Autowired PushLimitService pushLimitService; + @Lazy @Autowired WxOrderService wxOrderService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java index 8cdfb99c9..c93ce2b5d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java @@ -44,6 +44,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; @@ -82,12 +83,15 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { @Autowired WxCUserBasicInfoMapper wxCUserBasicInfoMapper; + @Lazy @Autowired WxOrderService wxOrderService; + @Lazy @Autowired WxCouponSendService wxCouponSendService; + @Lazy @Autowired WxProfitSharingOrderService wxProfitSharingOrderService; @@ -106,6 +110,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { @Autowired WxCouponMapper wxCouponMapper; + @Lazy @Autowired WxAppinfoService wxAppinfoService; @@ -130,16 +135,19 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { @Autowired WxAuthorizerInfoMapper authorizerInfoMapper; + @Lazy @Autowired ExcelService excelService; - + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; + @Lazy @Autowired WxMsgLimitService wxMsgLimitService; @@ -148,10 +156,12 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { @Autowired WxPayOrderMapper payOrderMapper; - + + @Lazy @Autowired PayServiceFactory payServiceFactory; - + + @Lazy @Autowired WxCashOutService cashOutService; @@ -161,14 +171,18 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { @Autowired RedisLock redisLock; - + + @Lazy @Autowired OrderFactory orderFactory; - + + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; + @Lazy @Autowired SysConfigService sysConfigService; + @Lazy @Autowired WxMerchantBUserService wxMerchantBUserService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java index 0a5d6213d..95ec8e948 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java @@ -15,6 +15,7 @@ import com.iformall.service.WxCouponPasswordService; 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 javax.servlet.http.HttpServletRequest; @@ -31,6 +32,7 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService { @Autowired WxCouponPasswordMapper wxCouponPasswordMapper; + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java index 21fe05c9c..e2229a583 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java @@ -20,6 +20,7 @@ import com.iformall.service.msg.impl.SendSmsServiceImpl; 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; @@ -38,9 +39,11 @@ public class WxCouponPresentServiceImpl implements WxCouponPresentService { @Autowired WxCouponPasswordMapper wxCouponPasswordMapper; + @Lazy @Autowired WxAppinfoService wxAppinfoService; + @Lazy @Autowired private MqBaseProducer mqBaseProducer; 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 49f838f70..159397fa2 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; @@ -39,18 +40,22 @@ 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 @@ -59,16 +64,20 @@ 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 WxMsgService wxMsgService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index a4944d2e6..e4fad395c 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -38,6 +38,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Isolation; @@ -64,16 +65,16 @@ public class WxCouponServiceImpl implements WxCouponService { @Autowired WxMerchantMapper wxMerchantMapper; - + @Lazy @Autowired WxCouponChannelService wxCouponChannelService; - + @Lazy @Autowired WxCouponSendService wxCouponSendService; - + @Lazy @Autowired WxOrderService wxOrderService; - + @Lazy @Autowired WxScreenAdService wxScreenAdService; @@ -85,7 +86,7 @@ public class WxCouponServiceImpl implements WxCouponService { @Autowired WxCouponPasswordMapper couponPasswordMapper; - + @Lazy @Autowired WxCouponPasswordService couponPasswordService; @@ -97,16 +98,16 @@ public class WxCouponServiceImpl implements WxCouponService { @Autowired WxCardTransferInfoMapper wxCardTransferInfoMapper; - + @Lazy @Autowired ExcelService excelService; - + @Lazy @Autowired WxCardDataExporter cardDataExporter; - + @Lazy @Autowired WxCouponDataExporter couponDataExporter; - + @Lazy @Autowired WxPressDataExporter pressDataExporter; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java index 876cc7a9c..e4a2867b6 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java @@ -68,7 +68,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { @Autowired MallUserInfoMapper mallUserInfoMapper; - + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; @@ -80,20 +80,20 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { @Autowired RedisLock redisLock; - + @Lazy @Autowired ExcelService excelService; @Autowired WxLevelConfigMapper wxLevelConfigMapper; - + @Lazy @Autowired private WxMallService wxMallService; @Lazy @Autowired private WxMsgService wxMsgService; - + @Lazy @Autowired private WxTemplateMsgService wxTemplateMsgService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCustomizeModuleServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCustomizeModuleServiceImpl.java index 832d8e962..1baf375fa 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCustomizeModuleServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCustomizeModuleServiceImpl.java @@ -13,6 +13,7 @@ import com.iformall.service.WxMiniappThemeService; 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; @@ -27,10 +28,10 @@ public class WxCustomizeModuleServiceImpl implements WxCustomizeModuleService { @Autowired WxCustomizeModuleMapper wxCustomizeModuleMapper; - + @Lazy @Autowired WxMiniappThemeService wxMiniappThemeService; - + @Lazy @Autowired WxAppinfoService wxAppinfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index 63290729a..7b5aabc13 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -41,6 +41,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; @@ -58,24 +59,33 @@ import java.util.*; @Service public class WxFlowServiceImpl implements WxFlowService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired private RuntimeService runtimeService; + @Lazy @Autowired private TaskService taskService; + @Lazy @Autowired private RepositoryService repositoryService; + @Lazy @Autowired private ProcessEngine processEngine; + @Lazy @Autowired private WxRentContractService wxRentContractService; + @Lazy @Autowired private WxFlowRecordService wxFlowRecordService; + @Lazy @Autowired private MallUserInfoService mallUserInfoService; + @Lazy @Autowired private WxPropertyContractMapper wxPropertyContractMapper; @Autowired private WxPropertyContractService wxPropertyContractService; + @Lazy @Autowired private WxFlowRecordMapper wxFlowRecordMapper; @Autowired @@ -84,23 +94,28 @@ public class WxFlowServiceImpl implements WxFlowService { private WxFlowModelMapper wxFlowModelMapper; @Autowired private WxFlowConfigMapper wxFlowConfigMapper; + @Lazy @Autowired private WxBillAllService wxBillAllService; @Autowired private WxCouponMapper wxCouponMapper; + @Lazy @Autowired private WxCouponService wxCouponService; @Autowired private WxRentContractMapper wxRentContractMapper; @Autowired private WxBillSettleMapper wxBillSettleMapper; + @Lazy @Autowired private WxBillSettleService wxBillSettleService; + @Lazy + @Autowired + private WxCashOutService wxCashOutService; @Autowired @Qualifier("couponChannelRedisTemplate") RedisTemplate> cdRedisTemplate; - @Autowired - private WxCashOutService wxCashOutService; + @Override public void wxFlowConfigInit(String tenantId) { diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java index 717a6b250..351f1aa98 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java @@ -29,6 +29,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; @@ -53,25 +54,25 @@ public class WxGameServiceImpl implements WxGameService { @Autowired WxCouponChannelMapper wxCouponChannelMapper; - + @Lazy @Autowired WxCouponService wxCouponService; @Autowired WxCouponOrderMapper wxCouponOrderMapper; - + @Lazy @Autowired WxCouponChannelService wxCouponChannelService; - + @Lazy @Autowired WxGameTemplateService wxGameTemplateService; @Autowired WxGameActionLogMapper wxGameActionLogMapper; - + @Lazy @Autowired private QrCodeService qrCodeService; - + @Lazy @Autowired private WxOrderService wxOrderService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxLevelConfigServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxLevelConfigServiceImpl.java index e35266b6d..34a300a9a 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxLevelConfigServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxLevelConfigServiceImpl.java @@ -26,6 +26,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; @@ -51,7 +52,7 @@ public class WxLevelConfigServiceImpl implements WxLevelConfigService { @Autowired WxCUserBasicInfoMapper wxCUserBasicInfoMapper; - + @Lazy @Autowired private WxCUserBasicInfoService wxCUserBasicInfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMallBuildingServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMallBuildingServiceImpl.java index 40616f8d4..1b9036c04 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMallBuildingServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMallBuildingServiceImpl.java @@ -22,6 +22,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -31,7 +32,7 @@ import java.util.stream.Collectors; @Service public class WxMallBuildingServiceImpl implements WxMallBuildingService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Lazy @Autowired WxMallService wxMallService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMallServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMallServiceImpl.java index fc0a5e5e8..e54420f01 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMallServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMallServiceImpl.java @@ -23,6 +23,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; @@ -46,7 +47,7 @@ public class WxMallServiceImpl implements WxMallService { @Autowired WxMallFloorMapper wxMallFloorMapper; - + @Lazy @Autowired MallUserInfoService userInfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java index 2e5a068a6..9b483f204 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.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.stereotype.Service; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Propagation; @@ -66,10 +67,10 @@ public class WxMerchantServiceImpl implements WxMerchantService { @Autowired WxCouponMapper wxCouponMapper; - + @Lazy @Autowired WxCouponService wxCouponService; - + @Lazy @Autowired WxProfitSharingReceiverService wxProfitSharingReceiverService; @@ -84,13 +85,13 @@ public class WxMerchantServiceImpl implements WxMerchantService { @Autowired WxCouponMerchantMapper wxCouponMerchantMapper; - + @Lazy @Autowired WxRentContractService wxRentContractService; - + @Lazy @Autowired WxLevelConfigService wxLevelConfigService; - + @Lazy @Autowired ExcelService excelService; @@ -99,10 +100,10 @@ public class WxMerchantServiceImpl implements WxMerchantService { @Autowired WxProfitSharingReceiverMapper wxProfitSharingReceiverMapper; - + @Lazy @Autowired WxPropertyContractService wxPropertyContractService; - + @Lazy @Autowired WxMallService wxMallService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantSubsidyServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantSubsidyServiceImpl.java index fbbb32997..3b54188cc 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantSubsidyServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantSubsidyServiceImpl.java @@ -13,6 +13,7 @@ import com.iformall.service.ExcelService; import com.iformall.service.WxMerchantSubsidyService; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import javax.servlet.http.HttpServletRequest; @@ -29,7 +30,7 @@ public class WxMerchantSubsidyServiceImpl implements WxMerchantSubsidyService { @Autowired WxMerchantSubsidyMapper wxMerchantSubsidyMapper; - + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantTradeDailyServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantTradeDailyServiceImpl.java index 1a6ede0cc..b3c15fc51 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantTradeDailyServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantTradeDailyServiceImpl.java @@ -19,6 +19,7 @@ import com.iformall.utils.DateUtils; 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 javax.servlet.http.HttpServletRequest; @@ -33,16 +34,16 @@ public class WxMerchantTradeDailyServiceImpl implements WxMerchantTradeDailyServ @Autowired WxMerchantTradeDailyMapper wxMerchantTradeDailyMapper; - + @Lazy @Autowired WxMerchantBUserService wxMerchantBUserService; - + @Lazy @Autowired WxMerchantService wxMerchantService; - + @Lazy @Autowired WxMallService wxMallService; - + @Lazy @Autowired ExcelService excelService; 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 51c2c08f1..45c14f407 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java @@ -41,15 +41,12 @@ 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; @@ -57,23 +54,18 @@ public class WxMsgServiceImpl implements WxMsgService { @Autowired WxCUserTagsService wxCUserTagsService; - @Lazy @Autowired WxCUserBasicInfoMapper wxCUserBasicInfoMapper; - @Lazy @Autowired WxMsgCallbackMapper wxMsgCallbackMapper; - @Lazy @Autowired WxMsgModelMapper wxMsgModelMapper; - @Lazy @Autowired WxTemplateMsgMapper wxTemplateMsgMapper; - @Lazy @Autowired MqBaseProducer mqBaseProducer; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java index 1846aea47..d04006afb 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java @@ -24,6 +24,7 @@ import com.iformall.utils.RedisLock; 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; @@ -47,7 +48,7 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService { @Autowired WxOrderMapper wxOrderMapper; - + @Lazy @Autowired WxOrderService wxOrderService; @@ -65,7 +66,7 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService { @Autowired WxAppinfoMapper wxAppinfoMapper; - + @Lazy @Autowired WxRefundOrderService wxRefundOrderService; @@ -77,10 +78,10 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService { @Autowired WxPayOrderMapper wxPayOrderMapper; - + @Lazy @Autowired ExcelService excelService; - + @Lazy @Autowired WxOrderGroupDataExporter orderGroupDataExporter; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderPressServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderPressServiceImpl.java index 50d9af0e9..51d8ed5b4 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderPressServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderPressServiceImpl.java @@ -25,6 +25,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -49,7 +50,7 @@ public class WxOrderPressServiceImpl implements WxOrderPressService { @Autowired WxCUserMapper userMapper; - + @Lazy @Autowired WxMsgLimitService wxMsgLimitService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java index 31949ed5f..a4b4f5a87 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java @@ -33,6 +33,7 @@ import org.slf4j.LoggerFactory; import org.springframework.aop.framework.AopContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; @@ -113,13 +114,13 @@ public class WxOrderServiceImpl implements WxOrderService { @Autowired WxCouponOrderMapper wxCouponOrderMapper; - + @Lazy @Autowired WxCouponOrderService wxCouponOrderService; - + @Lazy @Autowired WxCUserService wxCUserService; - + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; @@ -128,22 +129,22 @@ public class WxOrderServiceImpl implements WxOrderService { @Autowired WxMerchantBUserMapper wxMerchantBUserMapper; - + @Lazy @Autowired WxAppinfoService wxAppinfoService; - + @Lazy @Autowired WxPayOrderService wxPayOrderService; - + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; - + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; - + @Lazy @Autowired WxCouponActionLogService wxCouponActionLogService; - + @Lazy @Autowired WxProfitSharingOrderService wxProfitSharingOrderService; @@ -152,7 +153,7 @@ public class WxOrderServiceImpl implements WxOrderService { @Autowired WxCardInfoMapper wxCardInfoMapper; - + @Lazy @Autowired WxCouponSendService wxCouponSendService; @@ -161,7 +162,7 @@ public class WxOrderServiceImpl implements WxOrderService { @Autowired WxOrderGroupMapper wxOrderGroupMapper; - + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; @@ -173,31 +174,32 @@ public class WxOrderServiceImpl implements WxOrderService { @Autowired private WxCUserBasicInfoMapper wxCUserBasicInfoMapper; - + @Lazy @Autowired private WxMsgLimitService wxMsgLimitService; @Autowired private WxCouponPasswordMapper couponPasswordMapper; - + @Lazy @Autowired ExcelService excelService; - + @Lazy @Autowired WxCouponService wxCouponService; - + @Lazy @Autowired WxCouponChannelService wxCouponChannelService; @Autowired WxBatchOrderMapper wxBatchOrderMapper; + @Lazy + @Autowired + OrderFactory orderFactory; @Autowired @Qualifier("couponDetailRedisTemplate") RedisTemplate cdRedisTemplate; - - @Autowired - OrderFactory orderFactory; + @Override public PageInfo listAsPage(WxOrder record, Integer pageIndex, Integer pageSize) { diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxParkServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxParkServiceImpl.java index b10aaefc1..9c9972a15 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxParkServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxParkServiceImpl.java @@ -13,6 +13,7 @@ import com.iformall.service.WxParkService; 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 com.iformall.common.IdWorker; import org.springframework.transaction.annotation.Transactional; @@ -23,7 +24,7 @@ public class WxParkServiceImpl implements WxParkService { @Autowired WxParkMapper wxParkMapper; - + @Lazy @Autowired WxMallService wxMallService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPayAccountServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPayAccountServiceImpl.java index 2fe5696ac..fd6cb2511 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPayAccountServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPayAccountServiceImpl.java @@ -16,6 +16,7 @@ import com.iformall.utils.MaUtil; 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 com.iformall.common.IdWorker; @@ -25,7 +26,7 @@ public class WxPayAccountServiceImpl implements WxPayAccountService { @Autowired WxPayAccountMapper wxPayAccountMapper; - + @Lazy @Autowired WxAppinfoService wxAppinfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPayBillServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPayBillServiceImpl.java index ebbfff2c2..eb353130d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPayBillServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPayBillServiceImpl.java @@ -24,6 +24,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; @@ -49,13 +50,13 @@ public class WxPayBillServiceImpl implements WxPayBillService { @Autowired WxBillAllMapper wxBillAllMapper; - + @Lazy @Autowired WxBillAllService wxBillAllService; @Autowired WxMerchantBUserMapper wxMerchantBUserMapper; - + @Lazy @Autowired private WxBillSettleService wxBillSettleService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java index 8e4cc6f31..9663a722e 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java @@ -39,6 +39,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.aop.framework.AopContext; 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; @@ -49,9 +50,6 @@ import java.util.*; @Service public class WxPayOrderServiceImpl implements WxPayOrderService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - - @Autowired - WxPayOrderServiceImpl wxPayOrderServiceImpl; @Autowired WxAppinfoMapper wxAppinfoMapper; @@ -59,6 +57,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { @Autowired WxCUserBasicInfoMapper wxCUserBasicInfoMapper; + @Lazy @Autowired WxCUserService wxCUserService; @@ -67,7 +66,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { @Autowired WxOrderMapper wxOrderMapper; - + @Lazy @Autowired WxOrderService wxOrderService; @@ -88,13 +87,13 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { @Autowired WxProfitSharingReceiverMapper wxProfitSharingReceiverMapper; - + @Lazy @Autowired WxCouponOrderService wxCouponOrderService; - + @Lazy @Autowired WxAppinfoService wxAppinfoService; - + @Lazy @Autowired WxOrderGroupService wxOrderGroupService; @@ -103,16 +102,16 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { @Autowired PosCouponOrderVerifyMapper posCouponOrderVerifyMapper; - + @Lazy @Autowired PayServiceFactory payServiceFactory; - + @Lazy @Autowired WxCashOutService cashOutService; @Autowired WxBatchOrderMapper wxBatchOrderMapper; - + @Lazy @Autowired OrderFactory orderFactory; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java index 9aa2938f9..6e061e44d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java @@ -36,6 +36,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.Isolation; import org.springframework.transaction.annotation.Propagation; @@ -78,10 +79,10 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ @Autowired WxCardSpendMapper wxCardSpendMapper; - + @Lazy @Autowired PayServiceFactory payServiceFactory; - + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingReceiverServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingReceiverServiceImpl.java index 54e7b06ee..f1db18e60 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingReceiverServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingReceiverServiceImpl.java @@ -35,6 +35,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 java.util.Date; @@ -67,7 +68,7 @@ public class WxProfitSharingReceiverServiceImpl implements WxProfitSharingReceiv WxMerchantMapper wxMerchantMapper; @Autowired private MqBaseProducer mqBaseProducer; - + @Lazy @Autowired PayServiceFactory payServiceFactory; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxProjectConfigServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxProjectConfigServiceImpl.java index e2654b38e..d06b3c49f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxProjectConfigServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxProjectConfigServiceImpl.java @@ -10,6 +10,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; @@ -24,46 +25,67 @@ public class WxProjectConfigServiceImpl implements WxProjectConfigService { @Autowired WxProjectConfigMapper wxProjectConfigMapper; + @Lazy @Autowired WxMallService wxMallService; + @Lazy @Autowired WxCouponSendConfigService wxCouponSendConfigService; + @Lazy @Autowired WxMallBuildingService wxMallBuildingService; + @Lazy @Autowired WxMallFloorService wxMallFloorService; + @Lazy @Autowired WxPayAccountService wxPayAccountService; + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; + @Lazy @Autowired WxAppinfoService wxAppinfoService; + @Lazy @Autowired WxAuthorizerInfoService wxAuthorizerInfoService; + @Lazy @Autowired MallUserInfoService mallUserInfoService; + @Lazy @Autowired MallRoleService mallRoleService; + @Lazy @Autowired MallUserRoleService mallUserRoleService; + @Lazy @Autowired MallPermissionService mallPermissionService; + @Lazy @Autowired MallRolePermissionService mallRolePermissionService; + @Lazy @Autowired WxMsgConfigService wxMsgConfigService; + @Lazy @Autowired WxParkService wxParkService; + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; + @Lazy @Autowired WxTemplateMsgService wxTemplateMsgService; + @Lazy @Autowired WxQuestionService wxQuestionService; + @Lazy @Autowired WxMsgValidationcodeModelService wxMsgValidationcodeModelService; + @Lazy @Autowired WxFlowService wxFlowService; + @Lazy @Autowired MallUserInfoService userInfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java index a3665f58e..af9a91b59 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java @@ -22,6 +22,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.Transactional; import org.springframework.util.CollectionUtils; @@ -63,16 +64,16 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService @Autowired WxRentContractMapper wxRentContractMapper; - + @Lazy @Autowired WxFlowService wxFlowService; - + @Lazy @Autowired WxFlowRecordService wxFlowRecordService; - + @Lazy @Autowired WxRentContractService wxRentContractService; - + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfServiceImpl.java index 4cce1f0b7..2f785228c 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfServiceImpl.java @@ -20,6 +20,7 @@ import com.iformall.service.WxQuestionOneselfService; 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,7 +41,7 @@ public class WxQuestionOneselfServiceImpl implements WxQuestionOneselfService { @Autowired WxCampaignMapper wxCampaignMapper; - + @Lazy @Autowired WxCampaignService wxCampaignService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfUserServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfUserServiceImpl.java index c605e3be2..b4b1d7f5b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfUserServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxQuestionOneselfUserServiceImpl.java @@ -23,6 +23,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; @@ -47,10 +48,10 @@ public class WxQuestionOneselfUserServiceImpl implements WxQuestionOneselfUserSe @Autowired WxQuestionOneselfTopicMapper wxQuestionOneselfTopicMapper; - + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; - + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java index 28d879ed1..e67b0b3d1 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java @@ -33,6 +33,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; @@ -57,7 +58,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { @Autowired WxPayAccountMapper wxPayAccountMapper; - + @Lazy @Autowired WxOrderService wxOrderService; @@ -84,7 +85,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { @Autowired WxCardInfoMapper cardInfoMapper; - + @Lazy @Autowired PayServiceFactory payServiceFactory; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java index b677e93cd..909738a47 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -34,6 +34,7 @@ import org.joda.time.format.DateTimeFormatter; 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.Transactional; import org.springframework.util.CollectionUtils; @@ -62,7 +63,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { @Autowired WxShopMapper wxShopMapper; - + @Lazy @Autowired WxMerchantService wxMerchantService; @@ -86,16 +87,16 @@ public class WxRentContractServiceImpl implements WxRentContractService { @Autowired WxBrandMapper WxBrandMapper; - + @Lazy @Autowired WxFlowRecordService wxFlowRecordService; - + @Lazy @Autowired RuntimeService runtimeService; - + @Lazy @Autowired private TaskService taskService; - + @Lazy @Autowired private WxFlowService wxFlowService; @@ -107,10 +108,10 @@ public class WxRentContractServiceImpl implements WxRentContractService { @Autowired WxBillPropertyMapper wxBillPropertyMapper; - + @Lazy @Autowired WxPropertyContractService wxPropertyContractService; - + @Lazy @Autowired WxPayAccountBillService wxPayAccountBillService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java index 7dbaa22a3..ac952cf08 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java @@ -24,6 +24,7 @@ import com.iformall.service.WxRentPropertyContractService; 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.util.CollectionUtils; @@ -44,13 +45,13 @@ public class WxRentPropertyContractServiceImpl implements WxRentPropertyContract @Autowired WxPropertyContractMapper wxPropertyContractMapper; - + @Lazy @Autowired WxPropertyContractService wxPropertyContractService; - + @Lazy @Autowired WxRentContractService wxRentContractService; - + @Lazy @Autowired WxFlowRecordService wxFlowRecordService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java index eac62a601..83fd5bfb5 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java @@ -20,6 +20,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -39,15 +40,15 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { @Autowired WxCUserMapper wxCUserMapper; @Autowired + WxMerchantMapper wxMerchantMapper; + @Lazy + @Autowired WxCUserService wxCUserService; @Autowired @Qualifier("scoreRuleRedisTemplate") RedisTemplate scoreRulesRedisTemplate; - @Autowired - WxMerchantMapper wxMerchantMapper; - @Override public void wxScoreRulesInit(String tenantId) { WxScoreRules wxScoreRules = new WxScoreRules(); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxScreenAdServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxScreenAdServiceImpl.java index 8479b5a53..d7453626f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxScreenAdServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxScreenAdServiceImpl.java @@ -25,6 +25,7 @@ import me.chanjar.weixin.common.error.WxErrorException; 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 java.util.Date; @@ -36,13 +37,13 @@ public class WxScreenAdServiceImpl implements WxScreenAdService { @Autowired WxScreenAdMapper wxScreenAdMapper; - + @Lazy @Autowired WxAppinfoService wxAppinfoService; @Autowired WxCouponChannelMapper wxCouponChannelMapper; - + @Lazy @Autowired WxMerchantService wxMerchantService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java index e4f21908f..bcd96bd59 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java @@ -24,6 +24,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 javax.servlet.http.HttpServletRequest; @@ -40,7 +41,7 @@ public class WxShopServiceImpl implements WxShopService { @Autowired WxMerchantShopMapper wxMerchantShopMapper; - + @Lazy @Autowired ExcelService excelService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxSubsidyServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxSubsidyServiceImpl.java index 863094885..98e750101 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxSubsidyServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxSubsidyServiceImpl.java @@ -28,6 +28,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 com.iformall.common.IdWorker; @@ -45,7 +46,7 @@ public class WxSubsidyServiceImpl implements WxSubsidyService { @Autowired WxAppinfoMapper wxAppinfoMapper; - + @Lazy @Autowired WxAppinfoService wxAppinfoService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxTagsServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxTagsServiceImpl.java index a55bcb473..42855e608 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxTagsServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxTagsServiceImpl.java @@ -16,6 +16,7 @@ import com.iformall.service.WxTagsTypeService; 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 com.iformall.common.IdWorker; @@ -25,10 +26,10 @@ public class WxTagsServiceImpl implements WxTagsService { @Autowired WxTagsMapper wxTagsMapper; - + @Lazy @Autowired private WxTagsTypeService wxTagsTypeService; - + @Lazy @Autowired private WxTagsGroupService wxTagsGroupService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxTemplateMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxTemplateMsgServiceImpl.java index 95b60e3f0..6b3069225 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxTemplateMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxTemplateMsgServiceImpl.java @@ -23,6 +23,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 java.util.Date; @@ -37,12 +38,13 @@ public class WxTemplateMsgServiceImpl implements WxTemplateMsgService { @Autowired private boolean isFmOpen; + @Lazy @Autowired private WxAppinfoService wxAppinfoService; - + @Lazy @Autowired private FmOpenService openService; - + @Lazy @Autowired MaUtil maUtil; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxThirdPartyOrdersServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxThirdPartyOrdersServiceImpl.java index a647cb566..805c8332c 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxThirdPartyOrdersServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxThirdPartyOrdersServiceImpl.java @@ -17,6 +17,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; @@ -34,7 +35,7 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService private final Logger logger = LoggerFactory.getLogger(this.getClass()); private static final String THIRD_CIRCLE_KEY = "CIRCLE:TH:"; - + @Lazy @Autowired ExcelService excelService; @@ -43,19 +44,19 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService @Autowired WxThirdPartyOrdersMapper wxThirdPartyOrdersMapper; - + @Lazy @Autowired WxMerchantService wxMerchantService; - + @Lazy @Autowired WxCUserService wxCUserService; - + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; - + @Lazy @Autowired WxCreditHistoryService wxCreditHistoryService; - + @Lazy @Autowired WxCouponSendService wxCouponSendService; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxTopicServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxTopicServiceImpl.java index 8a94377ac..f12ac7556 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxTopicServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxTopicServiceImpl.java @@ -24,6 +24,7 @@ import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import com.iformall.common.ResultData; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.Date; @@ -45,10 +46,10 @@ public class WxTopicServiceImpl implements WxTopicService { @Autowired private WxCouponChannelMapper wxCouponChannelMapper; - + @Lazy @Autowired private QrCodeService qrCodeService; - + @Lazy @Autowired private WxCouponChannelService wxCouponChannelService; diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBaseServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBaseServiceImpl.java index 4d87f6b62..1032a99cd 100644 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBaseServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBaseServiceImpl.java @@ -28,6 +28,7 @@ import com.iformall.utils.JsonUtil; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import java.io.Serializable; import java.util.ArrayList; @@ -39,6 +40,7 @@ import java.util.stream.Collectors; public class InvestBaseServiceImpl, T> extends ServiceImpl implements InvestBaseService { + @Lazy @Autowired private InvestMessageService messageService; diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java index 6cac49e00..c0938b157 100644 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java @@ -32,6 +32,7 @@ import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -47,34 +48,49 @@ import java.util.function.Function; @Service public class InvestBizServiceImpl implements InvestBizService { + @Lazy @Autowired private InvestDemandService demandService; + @Lazy @Autowired private InvestTaskService taskService; + @Lazy @Autowired private InvestFollowRecordService followRecordService; + @Lazy @Autowired private InvestOperateRecordService operateRecordService; + @Lazy @Autowired private InvestRemindService remindService; + @Lazy @Autowired private InvestMessageService messageService; + @Lazy @Autowired private WxShopService shopService; + @Lazy @Autowired private InvestCustomerService customerService; + @Lazy @Autowired private WxBrandService brandService; + @Lazy @Autowired private MallUserInfoService userInfoService; + @Lazy @Autowired private WxBusinessService businessService; + @Lazy @Autowired private WxRentContractService rentContractService; + @Lazy @Autowired private ExcelService excelService; + @Autowired StringRedisTemplate stringRedisTemplate; + @Autowired private String fmUploadDir; diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestCustomerServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestCustomerServiceImpl.java index 9f3da6fe6..7870de844 100755 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestCustomerServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestCustomerServiceImpl.java @@ -13,6 +13,7 @@ import com.iformall.service.WxBusinessService; import com.iformall.service.invest.InvestCustomerService; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import java.io.Serializable; @@ -25,8 +26,10 @@ import static com.iformall.service.invest.InvestHelper.isTrue; @Service public class InvestCustomerServiceImpl extends InvestBaseServiceImpl implements InvestCustomerService { + @Lazy @Autowired private WxBrandService brandService; + @Lazy @Autowired private WxBusinessService businessService ; diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestDemandServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestDemandServiceImpl.java index dbc0ba1c1..750ea97b2 100755 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestDemandServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestDemandServiceImpl.java @@ -10,6 +10,7 @@ import com.iformall.service.WxShopService; import com.iformall.service.invest.InvestCustomerService; import com.iformall.service.invest.InvestDemandService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import java.util.*; @@ -18,10 +19,13 @@ import java.util.*; @Service public class InvestDemandServiceImpl extends InvestBaseServiceImpl implements InvestDemandService { + @Lazy @Autowired private WxShopService shopService; + @Lazy @Autowired private MallUserInfoService userInfoService; + @Lazy @Autowired private InvestCustomerService customerService; diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestFollowRecordServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestFollowRecordServiceImpl.java index 2f6c4f4a4..9abb8e8a1 100755 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestFollowRecordServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestFollowRecordServiceImpl.java @@ -14,6 +14,7 @@ import com.iformall.service.invest.InvestFollowRecordService; import com.iformall.service.invest.InvestHelper; import com.iformall.service.invest.InvestTaskService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import java.util.Date; @@ -23,8 +24,10 @@ import java.util.Objects; @Service public class InvestFollowRecordServiceImpl extends InvestBaseServiceImpl implements InvestFollowRecordService { + @Lazy @Autowired private InvestDemandService demandService ; + @Lazy @Autowired private InvestTaskService taskService ; diff --git a/mallinkService/src/main/java/com/iformall/service/kw/impl/KwBoxServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/kw/impl/KwBoxServiceImpl.java index d481e45a9..614fba1af 100644 --- a/mallinkService/src/main/java/com/iformall/service/kw/impl/KwBoxServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/kw/impl/KwBoxServiceImpl.java @@ -19,6 +19,7 @@ import org.apache.rocketmq.common.filter.impl.Op; 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 java.util.*; @@ -32,9 +33,11 @@ public class KwBoxServiceImpl implements KwBoxService { @Autowired KwBoxMapper kwBoxMapper; + @Lazy @Autowired KwMeterDataService kwMeterDataService; + @Lazy @Autowired KwMeterService kwMeterService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCLoginMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCLoginMsgServiceImpl.java index e490c543d..bdea07d67 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCLoginMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCLoginMsgServiceImpl.java @@ -17,6 +17,7 @@ import com.iformall.service.msg.MsgSendService; 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 java.util.Date; @@ -30,11 +31,10 @@ import java.util.Date; public class FmInsideCLoginMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired private CUserServiceFactory cuserFactory; - - private BasicCUserService basicCUserService; - + @Lazy @Autowired private WxCUserFromService wxCUserFromService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCashOutMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCashOutMsgServiceImpl.java index bfc30f9e1..fadcebd2a 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCashOutMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCashOutMsgServiceImpl.java @@ -8,6 +8,7 @@ import com.iformall.service.msg.MsgSendService; 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; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; public class FmInsideCashOutMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired private WxCashOutService wxCashOutService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCouponVerifyMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCouponVerifyMsgServiceImpl.java index 740678eba..2b5a82aab 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCouponVerifyMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideCouponVerifyMsgServiceImpl.java @@ -11,6 +11,7 @@ import com.iformall.service.msg.MsgSendService; 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; /** @@ -22,12 +23,13 @@ import org.springframework.stereotype.Service; public class FmInsideCouponVerifyMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired private WxCouponOrderService couponOrderService; - + @Lazy @Autowired private WxMerchantBUserService merchantBUserService; - + @Lazy @Autowired private WxMerchantService merchantService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideNotifyRefundSuccessMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideNotifyRefundSuccessMsgServiceImpl.java index 16dd02b67..c982cb143 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideNotifyRefundSuccessMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideNotifyRefundSuccessMsgServiceImpl.java @@ -9,6 +9,7 @@ import com.iformall.service.msg.MsgSendService; 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 java.util.Map; @@ -22,6 +23,7 @@ import java.util.Map; public class FmInsideNotifyRefundSuccessMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired private WxRefundOrderService wxRefundOrderService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideOrderSuccessMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideOrderSuccessMsgServiceImpl.java index 328dddda4..4c9bccbc2 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideOrderSuccessMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/FmInsideOrderSuccessMsgServiceImpl.java @@ -16,6 +16,7 @@ import com.iformall.service.msg.MsgSendService; 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; /** @@ -27,15 +28,16 @@ import org.springframework.stereotype.Service; public class FmInsideOrderSuccessMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); + @Lazy @Autowired private WxOrderService orderService; - + @Lazy @Autowired private WxCUserBasicInfoService userService; - + @Lazy @Autowired private WxCouponService couponService; - + @Lazy @Autowired private WxCouponChannelService couponChannelService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendCallBackSmsServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendCallBackSmsServiceImpl.java index 5ec0645c7..e612ab447 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendCallBackSmsServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendCallBackSmsServiceImpl.java @@ -21,6 +21,7 @@ import com.iformall.utils.DateUtils; 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 java.util.List; @@ -37,15 +38,17 @@ public class SendCallBackSmsServiceImpl implements MsgSendService { private WxMsgValidationcodeModelMapper wxMsgValidationcodeModelMapper; @Autowired private WxMsgValidationcodeMapper wxMsgValidationcodeMapper; + @Lazy @Autowired private WxMsgValidationcodeService wxMsgValidationcodeService; @Autowired private WxMsgModelMapper wxMsgModelMapper; @Autowired private WxMsgMapper wxMsgMapper; + @Lazy @Autowired private WxMsgService wxMsgService; - + @Lazy @Autowired private WxMsgLimitService wxMsgLimitService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendMpMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendMpMsgServiceImpl.java index b8dce4782..e63f61dc7 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendMpMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendMpMsgServiceImpl.java @@ -17,6 +17,7 @@ import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage; 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 java.util.ArrayList; @@ -32,7 +33,7 @@ public class SendMpMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired private WxTemplateMsgMapper wxTemplateMsgMapper; - + @Lazy @Autowired private FmOpenService openService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmartAppMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmartAppMsgServiceImpl.java index 725a76f2a..c99ee299b 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmartAppMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmartAppMsgServiceImpl.java @@ -22,6 +22,7 @@ import me.chanjar.weixin.common.error.WxErrorException; 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 java.util.ArrayList; @@ -40,15 +41,16 @@ public class SendSmartAppMsgServiceImpl implements MsgSendService { private boolean isFmOpen; @Autowired private WxTemplateMsgMapper wxTemplateMsgMapper; + @Lazy @Autowired private WxAppinfoService wxAppinfoService; - + @Lazy @Autowired private FmOpenService openService; @Autowired private WxCUserMapper wxCUserMapper; - + @Lazy @Autowired MaUtil maUtil; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java index fa38bc82f..a2e69601a 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java @@ -22,6 +22,7 @@ import org.apache.commons.collections.CollectionUtils; 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 java.util.Date; import java.util.List; @@ -41,6 +42,7 @@ public class SendSmsServiceImpl implements MsgSendService { private WxMsgValidationcodeModelMapper wxMsgValidationcodeModelMapper; @Autowired private WxMsgValidationcodeMapper wxMsgValidationcodeMapper; + @Lazy @Autowired private WxMsgValidationcodeService wxMsgValidationcodeService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendWeappUniformMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendWeappUniformMsgServiceImpl.java index e3ae39ed4..e6bda1834 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/SendWeappUniformMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/SendWeappUniformMsgServiceImpl.java @@ -20,6 +20,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 java.util.ArrayList; @@ -39,7 +40,7 @@ public class SendWeappUniformMsgServiceImpl implements MsgSendService { @Autowired private WxTemplateMsgMapper wxTemplateMsgMapper; - + @Lazy @Autowired private FmOpenService openService; diff --git a/mallinkService/src/main/java/com/iformall/service/msg/impl/UpdateCouponStockMsgServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/msg/impl/UpdateCouponStockMsgServiceImpl.java index 5714748c3..5dd73c457 100644 --- a/mallinkService/src/main/java/com/iformall/service/msg/impl/UpdateCouponStockMsgServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/msg/impl/UpdateCouponStockMsgServiceImpl.java @@ -3,6 +3,7 @@ package com.iformall.service.msg.impl; 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 com.iformall.domain.po.msg.BaseMsg; @@ -18,7 +19,7 @@ import com.iformall.service.msg.MsgSendService; @Service public class UpdateCouponStockMsgServiceImpl implements MsgSendService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Lazy @Autowired private WxCouponService wxCouponService; diff --git a/mallinkService/src/main/java/com/iformall/service/order/OrderFactory.java b/mallinkService/src/main/java/com/iformall/service/order/OrderFactory.java index 65e9326cb..4f416fac2 100644 --- a/mallinkService/src/main/java/com/iformall/service/order/OrderFactory.java +++ b/mallinkService/src/main/java/com/iformall/service/order/OrderFactory.java @@ -1,6 +1,7 @@ package com.iformall.service.order; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.enums.EnumComposeOrder; @@ -12,15 +13,16 @@ import com.iformall.service.order.impl.batch.OneNumberOneOrderBatchOrderAdapterS @Service public class OrderFactory { + @Lazy @Autowired OneNumberOneOrderBatchOrderAdapterService oneNumberOneOrderBatchOrderAdapterService; - + @Lazy @Autowired MulityNumberOneOrderBatchOrderAdapterService mulityNumberOneOrderBatchOrderAdapterService; - + @Lazy @Autowired SingleOrderAdapterService singleOrderAdapterService; - + @Lazy @Autowired CouponPackageOrderAdapterService couponPackageOrderAdapterService; diff --git a/mallinkService/src/main/java/com/iformall/service/order/impl/batch/BaseBatchOrderAdapterService.java b/mallinkService/src/main/java/com/iformall/service/order/impl/batch/BaseBatchOrderAdapterService.java index 95413cd6b..8c3dc65bd 100644 --- a/mallinkService/src/main/java/com/iformall/service/order/impl/batch/BaseBatchOrderAdapterService.java +++ b/mallinkService/src/main/java/com/iformall/service/order/impl/batch/BaseBatchOrderAdapterService.java @@ -7,6 +7,7 @@ import java.util.List; import com.iformall.mapper.WxCouponMapper; import com.iformall.mapper.WxCouponOrderMapper; 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; @@ -44,6 +45,7 @@ public abstract class BaseBatchOrderAdapterService implements OrderAdapterServic WxCouponOrderMapper wxCouponOrderMapper; @Autowired WxCouponMapper wxCouponMapper; + @Lazy @Autowired WxOrderService wxOrderService; diff --git a/mallinkService/src/main/java/com/iformall/service/park/ParkFactory.java b/mallinkService/src/main/java/com/iformall/service/park/ParkFactory.java index 24899d84c..fa25e9f8b 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/ParkFactory.java +++ b/mallinkService/src/main/java/com/iformall/service/park/ParkFactory.java @@ -4,6 +4,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.common.ErrorCode; @@ -22,26 +23,34 @@ import com.iformall.service.park.impl.tjd.TJDParkService; @Service public class ParkFactory { - + @Lazy @Autowired CYFParkService cyfService; + @Lazy @Autowired BoLinkParkService bolinkService; + @Lazy @Autowired DaHuaParkService daHuaService; + @Lazy @Autowired ShangAnParkService shangAnService; + @Lazy @Autowired TJDParkService tjdService; + @Lazy @Autowired JieShunParkService jieshunService; + @Lazy @Autowired HaiKangWeiShiParkService haikangWeishiService; - + @Lazy @Autowired CYFParkCallbackService cyfCallbackService; + @Lazy @Autowired JieShunParkCallbackService jieshunCallBackService; + @Lazy @Autowired HaiKangWeiShiParkCallbackService haikangWeishiCallBackService; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/BaseParkService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/BaseParkService.java index b374729fb..5eb9e707b 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/BaseParkService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/BaseParkService.java @@ -4,6 +4,7 @@ import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.common.ResultData; @@ -13,7 +14,7 @@ import com.iformall.service.park.impl.util.ParkHelper; @Service public class BaseParkService { - + @Lazy @Autowired ParkHelper parkHelper; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/etcp/EtcpHelper.java b/mallinkService/src/main/java/com/iformall/service/park/impl/etcp/EtcpHelper.java index 6c194f7fc..698820786 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/etcp/EtcpHelper.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/etcp/EtcpHelper.java @@ -9,6 +9,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.web.bind.annotation.RequestBody; @@ -42,19 +43,20 @@ public class EtcpHelper { private final Logger logger = LoggerFactory.getLogger(EtcpHelper.class); private ETCPUtil etcp = new ETCPUtil(); - + + @Lazy @Autowired WxCUserBasicInfoService wxCUserBasicInfoService; - + @Lazy @Autowired WxCUserCarService wxCUserCarService; - + @Lazy @Autowired WxMerchantService wxMerchantService; - + @Lazy @Autowired WxCouponOrderService wxCouponOrderService; - + @Lazy @Autowired ParkHelper parkHelper; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkCallbackService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkCallbackService.java index 731f13a76..1cb2129ec 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkCallbackService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkCallbackService.java @@ -8,6 +8,7 @@ import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.alibaba.fastjson.JSON; @@ -38,11 +39,11 @@ import lombok.extern.slf4j.Slf4j; @Slf4j @Service public class HaiKangWeiShiParkCallbackService extends BaseParkService implements ParkBatchCallBackAdapterService { - - + + @Lazy @Autowired HaiKangWeiShiParkService haiKangWeiShiParkService; - + @Lazy @Autowired WxParkService wxParkService; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkService.java index f3353718e..c837fa173 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkService.java @@ -9,6 +9,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -57,16 +58,18 @@ import com.iformall.utils.RedisLock; public class HaiKangWeiShiParkService extends BaseParkService implements ParkAdapterService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Lazy @Autowired ParkHelper parkHelper; + + @Autowired + RedisLock redisLock; @Autowired @Qualifier("objectCommonRedisTemplate") RedisTemplate redisTemplate; - @Autowired - RedisLock redisLock; + HaiKangWeiShiUtil haikang = new HaiKangWeiShiUtil(); diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkCallbackService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkCallbackService.java index ab53e3ca9..8c3f8af85 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkCallbackService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkCallbackService.java @@ -8,6 +8,7 @@ import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.alibaba.fastjson.JSON; @@ -33,10 +34,10 @@ import lombok.extern.slf4j.Slf4j; @Service public class JieShunParkCallbackService extends BaseParkService implements ParkBatchCallBackAdapterService { - + @Lazy @Autowired JieShunParkService jieshunParkService; - + @Lazy @Autowired WxParkService wxParkService; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkService.java index 57702dbbd..90912336a 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/jieshun/JieShunParkService.java @@ -9,6 +9,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -54,7 +55,7 @@ import com.iformall.utils.RedisLock; public class JieShunParkService extends BaseParkService implements ParkAdapterService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Lazy @Autowired ParkHelper parkHelper; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/shangan/ShangAnParkService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/shangan/ShangAnParkService.java index 713aed2be..89302f8a0 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/shangan/ShangAnParkService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/shangan/ShangAnParkService.java @@ -5,6 +5,7 @@ import java.util.Map; 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 com.alibaba.fastjson.JSON; @@ -25,7 +26,7 @@ import com.iformall.service.park.impl.BaseParkService; public class ShangAnParkService extends BaseParkService implements ParkAdapterService{ private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Lazy @Autowired WxCouponOrderService wxCouponOrderService; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/tjd/TJDParkService.java b/mallinkService/src/main/java/com/iformall/service/park/impl/tjd/TJDParkService.java index 71f3459b3..f7ab9796e 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/tjd/TJDParkService.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/tjd/TJDParkService.java @@ -7,6 +7,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.web.bind.annotation.RequestBody; @@ -37,21 +38,21 @@ import com.iformall.service.park.impl.util.ParkHelper; public class TJDParkService extends BaseParkService implements ParkAdapterService { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - + @Lazy @Autowired ParkHelper parkHelper; TJDUtil tjd = new TJDUtil(); - + @Lazy @Autowired WxCUserCarService wxCUserCarService; - + @Lazy @Autowired WxScoreRulesService wxScoreRulesService; - + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; - + @Lazy @Autowired WxCouponService couponService; diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java b/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java index a4d64b724..740a15103 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java @@ -7,6 +7,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 com.iformall.common.ErrorCode; @@ -27,18 +28,18 @@ import com.iformall.service.WxScoreRulesService; @Service public class ParkHelper { private final Logger logger = LoggerFactory.getLogger(ParkHelper.class); - - @Autowired - WxCUserCarService wxCUserCarService; - - @Autowired - WxScoreRulesService wxScoreRulesService; - - @Autowired - WxCUserTagsService wxCUserTagsService; - - @Autowired - WxCreditHistoryService wxCreditHistoryService; + @Lazy + @Autowired + WxCUserCarService wxCUserCarService; + @Lazy + @Autowired + WxScoreRulesService wxScoreRulesService; + @Lazy + @Autowired + WxCUserTagsService wxCUserTagsService; + @Lazy + @Autowired + WxCreditHistoryService wxCreditHistoryService; public WxCUserCar getOne(WxPark park, Long cuUserId,String carNumber,EnumCarVendor carVendor) { WxCUserCar userCar = new WxCUserCar(); diff --git a/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoOrderTagsDeveloper.java b/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoOrderTagsDeveloper.java index 70e6110ff..04e10c027 100644 --- a/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoOrderTagsDeveloper.java +++ b/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoOrderTagsDeveloper.java @@ -5,6 +5,7 @@ import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.domain.po.JmSportOrder; @@ -20,9 +21,11 @@ import com.iformall.service.tags.TagsDeveloper; @Service public class JinMaoOrderTagsDeveloper implements TagsDeveloper { - + + @Lazy @Autowired WxCUserTagsServiceHelper wxCUserTagsServiceHelper; + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; diff --git a/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoUserTagsDeveloper.java b/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoUserTagsDeveloper.java index 43ae986fe..c9002f919 100644 --- a/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoUserTagsDeveloper.java +++ b/mallinkService/src/main/java/com/iformall/service/tags/jinmao/JinMaoUserTagsDeveloper.java @@ -4,6 +4,7 @@ import java.util.List; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import com.iformall.domain.po.WxCUserBasicInfo; @@ -17,9 +18,10 @@ import com.iformall.service.tags.TagsDeveloper; @Service public class JinMaoUserTagsDeveloper implements TagsDeveloper{ - + @Lazy @Autowired WxCUserTagsServiceHelper wxCUserTagsServiceHelper; + @Lazy @Autowired WxCUserTagsService wxCUserTagsService; diff --git a/mallinkService/src/main/java/com/iformall/service/tt/impl/TtOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/tt/impl/TtOrderServiceImpl.java index 885ef3215..332ff2517 100644 --- a/mallinkService/src/main/java/com/iformall/service/tt/impl/TtOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/tt/impl/TtOrderServiceImpl.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.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; @@ -59,13 +60,13 @@ public class TtOrderServiceImpl implements TtOrderService { // @Autowired // private WxCUserBasicInfoService wxCUserBasicInfoService; - + @Lazy @Autowired private TtCUserService ttCUserService; - + @Lazy @Autowired private WxAppinfoService wxAppinfoService; - + @Lazy @Autowired private WxPayAccountService payAccountService;