| @@ -14,6 +14,7 @@ import org.apache.shiro.session.UnknownSessionException; | |||
| 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.scheduling.annotation.Async; | |||
| import org.springframework.stereotype.Component; | |||
| @@ -26,12 +27,15 @@ import java.util.concurrent.TimeUnit; | |||
| public class AsyncTask { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxTagsService wxTagsService; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @@ -18,6 +18,7 @@ import org.apache.shiro.session.UnknownSessionException; | |||
| 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.scheduling.annotation.Async; | |||
| import org.springframework.stereotype.Component; | |||
| @@ -32,12 +33,15 @@ import java.util.concurrent.TimeUnit; | |||
| public class BillDailyAsyncTask { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillDailyService wxBillDailyService; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| WxShopMapper wxShopMapper; | |||
| @@ -22,6 +22,7 @@ import org.apache.shiro.session.UnknownSessionException; | |||
| 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.scheduling.annotation.Async; | |||
| import org.springframework.stereotype.Component; | |||
| @@ -39,18 +40,23 @@ import java.util.stream.Collectors; | |||
| public class ImportTemplateTask { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxTagsService wxTagsService; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillAllService wxBillAllService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantMapper wxMerchantMapper; | |||
| @@ -19,6 +19,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.web.bind.annotation.*; | |||
| import java.util.ArrayList; | |||
| @@ -30,12 +31,15 @@ import java.util.List; | |||
| public class MemCouponController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelService couponChannelService; | |||
| @Lazy | |||
| @Autowired | |||
| private MemCouponFromDspService memCouponFromDspService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService couponService; | |||
| @@ -15,6 +15,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -24,6 +25,7 @@ public class UserBasicInfoAddressController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private UserBasicInfoAddressService userBasicInfoAddressService; | |||
| @@ -29,6 +29,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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -50,45 +51,59 @@ import java.util.stream.Collectors; | |||
| public class WxCUserBasicInfoController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private String fmUploadDir; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicChildService wxCUserBasicChildService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserTagsService wxCUserTagsService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserCarService wxCUserCarService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService wxCouponService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxLevelConfigService wxLevelConfigService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCarPayRecordService wxCarPayRecordService; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| private AsyncTask asyncTask; | |||
| @Lazy | |||
| @Autowired | |||
| private ExcelService excelService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantMapper wxMerchantMapper; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCreditHistoryService wxCreditHistoryService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -20,6 +21,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxCUserCarController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserCarService wxCUserCarService; | |||
| @@ -5,6 +5,7 @@ import com.iformall.controller.base.BaseController; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import com.github.pagehelper.PageInfo; | |||
| @@ -22,6 +23,7 @@ import io.swagger.annotations.ApiOperation; | |||
| public class WxCUserController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserService wxCUserService; | |||
| @@ -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.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @@ -41,14 +42,23 @@ import io.swagger.annotations.ApiOperation; | |||
| public class WxCUserDataController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private CUserServiceFactory cuserFactory; | |||
| @Lazy | |||
| @Autowired | |||
| private WxUserVisitService wxUserVisitService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService wxMallService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -24,6 +25,7 @@ import javax.servlet.http.HttpServletResponse; | |||
| public class WxCUserFromController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserFromService wxCUserFromService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -20,6 +21,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxCUserTagsController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserTagsService wxCUserTagsService; | |||
| @@ -26,6 +26,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.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -38,9 +39,11 @@ import java.util.Objects; | |||
| public class WxCreditHistoryController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxCreditHistoryService wxCreditHistoryService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @@ -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.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| @@ -35,6 +36,7 @@ import java.util.List; | |||
| public class WxLevelConfigController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxLevelConfigService wxLevelConfigService; | |||
| @@ -17,6 +17,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -24,9 +25,11 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxScoreHistoryController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxScoreHistoryService wxScoreHistoryService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @@ -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.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -26,9 +27,11 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxScoreRulesController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxScoreRulesService wxScoreRulesService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService wxMallService; | |||
| @@ -13,12 +13,15 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @RequestMapping("wxUserChannel") | |||
| public class WxUserChannelController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxUserChannelService wxUserChannelService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxMsgCallbackController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgCallbackService wxMsgCallbackService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -20,6 +21,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxMsgConfigController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgConfigService wxMsgConfigService; | |||
| @@ -22,6 +22,7 @@ import org.apache.commons.io.IOUtils; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -37,12 +38,15 @@ import java.util.*; | |||
| public class WxMsgController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private String fmUploadDir; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgService wxMsgService; | |||
| @Lazy | |||
| @Autowired | |||
| WxTemplateMsgService wxTemplateMsgService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxMsgModelController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgModelService wxMsgModelService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.Api; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.List; | |||
| @@ -23,10 +24,15 @@ import java.util.List; | |||
| public class WxMsgRecordController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgRecordService wxMsgRecordService; | |||
| @Lazy | |||
| @Autowired | |||
| private MqBaseProducer mqBaseProducer; | |||
| @Lazy | |||
| @Autowired | |||
| private SendCallBackSmsServiceImpl sendCallBackSmsService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxMsgSignatureController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgSignatureService wxMsgSignatureService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiImplicitParams; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -20,6 +21,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxMsgValidationcodeController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgValidationcodeService wxMsgValidationcodeService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxMsgValidationcodeModelController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgValidationcodeModelService wxMsgValidationcodeModelService; | |||
| @@ -37,6 +37,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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -45,10 +46,15 @@ import org.springframework.web.multipart.MultipartFile; | |||
| public class WxOcrController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxOcrService ocrService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService merchantService; | |||
| @Lazy | |||
| @Autowired | |||
| private String ocrData; | |||
| @@ -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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -40,9 +41,11 @@ import io.swagger.annotations.ApiOperation; | |||
| public class AlipayController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private AliPayUtil aliPayUtil; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService mallService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -27,7 +28,7 @@ import org.springframework.web.bind.annotation.RestController; | |||
| public class WxBillActionController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillActionService wxBillActionService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -29,11 +30,14 @@ import java.util.Map; | |||
| @RestController | |||
| @RequestMapping("wxBillAll") | |||
| public class WxBillAllController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillAllService wxBillAllService; | |||
| private Logger logger = LoggerFactory.getLogger(WxBillAllController.class); | |||
| @Lazy | |||
| @Autowired | |||
| WxPayAccountBillService wxPayAccountBillService; | |||
| @@ -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.data.redis.core.StringRedisTemplate; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -40,15 +41,19 @@ import java.util.concurrent.TimeUnit; | |||
| @RequestMapping("wxBillDaily") | |||
| public class WxBillDailyController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private String fmUploadDir; | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillDailyService wxBillDailyService; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| private BillDailyAsyncTask billDailyAsyncTask; | |||
| @@ -12,6 +12,7 @@ import io.swagger.annotations.ApiImplicitParams; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| /** | |||
| @@ -20,6 +21,8 @@ import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @RequestMapping("wxBillDeposit") | |||
| public class WxBillDepositController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillDepositService wxBillDepositService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiImplicitParams; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -25,6 +26,8 @@ import javax.servlet.http.HttpServletResponse; | |||
| @RestController | |||
| @RequestMapping("wxBillOther") | |||
| public class WxBillOtherController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillOtherService wxBillOtherService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiImplicitParams; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -24,6 +25,8 @@ import javax.servlet.http.HttpServletResponse; | |||
| @RestController | |||
| @RequestMapping("wxBillOtherDeposit") | |||
| public class WxBillOtherDepositController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillOtherDepositService wxBillOtherDepositService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -25,6 +26,8 @@ import javax.servlet.http.HttpServletResponse; | |||
| @RestController | |||
| @RequestMapping("wxBillProperty") | |||
| public class WxBillPropertyController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillPropertyService wxBillPropertyService; | |||
| @@ -12,6 +12,7 @@ import io.swagger.annotations.ApiImplicitParams; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| /** | |||
| @@ -20,6 +21,8 @@ import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @RequestMapping("wxBillPropertyDeposit") | |||
| public class WxBillPropertyDepositController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillPropertyDepositService wxBillPropertyDepositService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -27,6 +28,7 @@ import javax.servlet.http.HttpServletResponse; | |||
| public class WxBillRentController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillRentService wxBillRentService; | |||
| @@ -18,6 +18,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| import javax.servlet.http.HttpServletResponse; | |||
| @@ -30,10 +31,15 @@ import javax.servlet.http.HttpServletResponse; | |||
| public class WxBillSettleController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillSettleService wxBillSettleService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillSettleRecordService wxBillSettleRecordService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxBillAllService wxBillAllService; | |||
| @@ -9,6 +9,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.Map; | |||
| @@ -21,6 +22,7 @@ import java.util.Map; | |||
| public class WxGooagooController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxGooagooService wxGooagooService; | |||
| @@ -33,6 +33,7 @@ import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.beans.factory.annotation.Value; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.imageio.ImageIO; | |||
| import javax.servlet.ServletException; | |||
| @@ -55,24 +56,31 @@ public class HomeController extends BaseController { | |||
| @Value("${version}") | |||
| private String version; | |||
| @Lazy | |||
| @Autowired | |||
| private Producer producer; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserInfoService mallUserInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserRoleService mallUserRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxAppinfoService appinfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgValidationcodeService wxMsgValidationcodeService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserActionService mallUserActionService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService mallService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.util.ArrayList; | |||
| @@ -34,12 +35,15 @@ public class MallRoleController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private MallRoleService sysRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallRolePermissionService sysRolePermissionService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserRoleService mallUserRoleService; | |||
| @@ -12,12 +12,15 @@ 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.web.bind.annotation.*; | |||
| @RestController | |||
| @RequestMapping("mallUserAction") | |||
| public class MallUserActionController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserActionService mallUserActionService; | |||
| @@ -22,6 +22,7 @@ import org.apache.shiro.SecurityUtils; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.util.Assert; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @@ -39,24 +40,31 @@ public class MallUserInfoController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| MallUserInfoService userInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| MallUserRoleService userRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| MallRoleService mallRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| MallUserRoleService mallUserRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| MallPermissionService mallPermissionService; | |||
| @Lazy | |||
| @Autowired | |||
| MallRolePermissionService mallRolePermissionService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMsgValidationcodeService wxMsgValidationcodeService; | |||
| @@ -16,6 +16,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.List; | |||
| @@ -27,6 +28,7 @@ import java.util.List; | |||
| public class SysConfigController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private SysConfigService sysConfigService; | |||
| @@ -25,6 +25,7 @@ import org.apache.shiro.util.Assert; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -45,9 +46,11 @@ import java.util.*; | |||
| public class SysMenuController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private MallPermissionService mallPermissionService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserInfoService mallUserInfoService; | |||
| @@ -8,6 +8,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.List; | |||
| @@ -19,6 +20,7 @@ import java.util.List; | |||
| public class SysNoticeController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private SysNoticeService sysNoticeService; | |||
| @@ -13,6 +13,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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -27,6 +28,7 @@ public class UploadController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private AliyunOSS aliyunOSS; | |||
| @@ -37,6 +37,7 @@ import org.apache.shiro.authc.UnknownAccountException; | |||
| import org.apache.shiro.subject.Subject; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.beans.factory.annotation.Qualifier; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.dao.DataAccessException; | |||
| import org.springframework.data.redis.connection.RedisConnection; | |||
| import org.springframework.data.redis.core.RedisCallback; | |||
| @@ -61,18 +62,23 @@ import java.util.*; | |||
| public class WechatLoginController extends BaseController { | |||
| private String WECHAT_PREV = "LOGIN:OPEN:"; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMpService wxMpService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserInfoService mallUserInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserRoleService mallUserRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserActionService mallUserActionService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService mallService; | |||
| @@ -8,6 +8,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxAdminLogController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxAdminLogService wxAdminLogService; | |||
| @@ -18,6 +18,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletResponse; | |||
| import java.math.BigDecimal; | |||
| @@ -30,10 +31,15 @@ import java.util.*; | |||
| public class WxBusinessController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxBusinessService wxBusinessService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxSubBusinessService wxSubBusinessService; | |||
| @Lazy | |||
| @Autowired | |||
| private ExcelService excelService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -30,6 +31,7 @@ import java.util.List; | |||
| public class WxDataRuleTargetController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxDataRuleTargetService wxDataRuleTargetService; | |||
| @@ -15,6 +15,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| /** | |||
| @@ -26,6 +27,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxUserDataRuleController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxUserDataRuleService wxUserDataRuleService; | |||
| @@ -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.data.redis.core.StringRedisTemplate; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -36,12 +37,15 @@ import java.util.concurrent.TimeUnit; | |||
| public class WxImportTemplateController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private String fmUploadDir; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| private ImportTemplateTask importTemplateTask; | |||
| @@ -47,6 +47,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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -67,6 +68,7 @@ import java.util.Map; | |||
| public class VideoController extends BaseController { | |||
| private Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| VideoFactory videoFactory; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.util.*; | |||
| @@ -26,6 +27,7 @@ import java.util.*; | |||
| public class WxFlowAbleController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxFlowService wxFlowService; | |||
| @@ -8,6 +8,7 @@ import org.apache.commons.lang3.StringUtils; | |||
| import org.flowable.engine.delegate.TaskListener; | |||
| import org.flowable.task.service.delegate.DelegateTask; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.stereotype.Component; | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| @@ -18,8 +19,12 @@ import java.util.Map; | |||
| */ | |||
| @Component(value="contractTaskFinishListener") | |||
| public class ContractTaskFinishHandler implements TaskListener { | |||
| @Lazy | |||
| @Autowired | |||
| private WxFlowService wxFlowService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxPropertyContractService wxPropertyContractService; | |||
| @@ -18,6 +18,7 @@ import org.aspectj.lang.annotation.Pointcut; | |||
| 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.Component; | |||
| import org.springframework.web.context.request.RequestContextHolder; | |||
| import org.springframework.web.context.request.ServletRequestAttributes; | |||
| @@ -33,6 +34,7 @@ import java.util.Date; | |||
| public class SystemLogAspect { | |||
| private static final Logger logger = LoggerFactory.getLogger(SystemLogAspect.class); | |||
| @Lazy | |||
| @Autowired | |||
| private MallUserActionService mallUserActionService; | |||
| @@ -26,6 +26,7 @@ import org.aspectj.lang.annotation.Aspect; | |||
| import org.aspectj.lang.annotation.Pointcut; | |||
| import org.aspectj.lang.reflect.MethodSignature; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.stereotype.Component; | |||
| import java.io.Serializable; | |||
| @@ -41,6 +42,7 @@ import java.util.*; | |||
| @Component | |||
| public class TableOperateAspect { | |||
| @Lazy | |||
| @Autowired | |||
| private InvestOperateRecordService operateRecordService; | |||
| @@ -19,6 +19,7 @@ import org.aspectj.lang.reflect.MethodSignature; | |||
| 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.Component; | |||
| import org.springframework.web.context.request.RequestContextHolder; | |||
| import org.springframework.web.context.request.ServletRequestAttributes; | |||
| @@ -35,9 +36,11 @@ import java.util.HashSet; | |||
| public class UserDataRuleAspect { | |||
| private static final Logger logger = LoggerFactory.getLogger(UserDataRuleAspect.class); | |||
| @Lazy | |||
| @Autowired | |||
| private WxUserDataRuleService wxUserDataRuleService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxRentContractMapper wxRentContractMapper; | |||
| @@ -9,6 +9,7 @@ import org.apache.shiro.web.filter.mgt.PathMatchingFilterChainResolver; | |||
| import org.apache.shiro.web.servlet.AbstractShiroFilter; | |||
| import org.crazycake.shiro.RedisSessionDAO; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import com.iformall.service.MallPermissionService; | |||
| @@ -17,10 +18,16 @@ import com.iformall.service.MallPermissionService; | |||
| */ | |||
| //@Service | |||
| public class ShiroService { | |||
| @Lazy | |||
| @Autowired | |||
| private ShiroFilterFactoryBean shiroFilterFactoryBean; | |||
| @Lazy | |||
| @Autowired | |||
| private MallPermissionService resourcesService; | |||
| @Lazy | |||
| @Autowired | |||
| private RedisSessionDAO redisSessionDAO; | |||
| /** | |||
| @@ -18,6 +18,7 @@ import com.iformall.utils.Constant; | |||
| import com.iformall.utils.IPUtil; | |||
| import com.iformall.utils.MaUtil; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.WebDataBinder; | |||
| import org.springframework.web.bind.annotation.InitBinder; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @@ -35,18 +36,24 @@ import java.util.Date; | |||
| public class BaseController { | |||
| @Autowired | |||
| private boolean isFmOpen; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantBUserService wxMerchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxAppinfoService wxAppinfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private FmOpenService openService; | |||
| @Lazy | |||
| @Autowired | |||
| private CUserTokenService cUserTokenService; | |||
| @Lazy | |||
| @Autowired | |||
| MaUtil maUtil; | |||
| @@ -13,6 +13,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.web.bind.annotation.*; | |||
| import java.util.Map; | |||
| @@ -23,6 +24,7 @@ import java.util.Map; | |||
| public class PosController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private PosBrunService posService; | |||
| @@ -11,6 +11,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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -26,6 +27,7 @@ public class UploadController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private AliyunOSS aliyunOSS; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| @@ -31,10 +32,15 @@ import java.util.Map; | |||
| public class WxBillController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxBillAllService wxBillAllService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| WxBillSettleService wxBillSettleService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.math.BigDecimal; | |||
| @@ -37,27 +38,35 @@ import java.util.List; | |||
| public class WxCUserController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxScoreRulesService wxScoreRulesService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserTagsService wxCUserTagsService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantBUserService wxMerchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserFromBService wxCUserFromBService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserService wxCUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCreditHistoryService wxCreditHistoryService; | |||
| @@ -16,6 +16,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.ArrayList; | |||
| @@ -31,12 +32,15 @@ import java.util.Map; | |||
| public class WxCardPayController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| WxOrderService wxOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCardSpendService wxCardSpendService; | |||
| @@ -26,6 +26,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.web.bind.annotation.*; | |||
| /** | |||
| @@ -39,14 +40,23 @@ import org.springframework.web.bind.annotation.*; | |||
| public class WxCashOutController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCashOutService wxCashOutService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCUserService wxCUserService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMallService wxMallService; | |||
| @Lazy | |||
| @Autowired | |||
| WxPayAccountService wxPayAccountService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.util.ArrayList; | |||
| @@ -36,14 +37,23 @@ import java.util.Map; | |||
| public class WxCouponChannelController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelService wxCouponChannelService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelMapper wxCouponChannelMapper; | |||
| @Lazy | |||
| @Autowired | |||
| private QrCodeService qrCodeService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxFlowService wxFlowService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService wxCouponService; | |||
| @@ -29,6 +29,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.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -41,18 +42,31 @@ import java.util.*; | |||
| public class WxCouponController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService wxCouponService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponPasswordService couponPasswordService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelMapper wxCouponChannelMapper; | |||
| @Lazy | |||
| @Autowired | |||
| private WxFlowService wxFlowService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService wxMallService; | |||
| @Lazy | |||
| @Autowired | |||
| RedisLock redisLock; | |||
| @@ -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.web.bind.annotation.*; | |||
| @@ -41,24 +42,31 @@ import java.util.concurrent.TimeUnit; | |||
| public class WxCouponOrderController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService wxCouponService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantBUserService wxMerchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserService wxCUserService; | |||
| @Lazy | |||
| @Autowired | |||
| @Qualifier("couponDetailRedisTemplate") | |||
| RedisTemplate<String, WxCouponCVo> cdRedisTemplate; | |||
| @@ -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.util.CollectionUtils; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @@ -36,11 +37,16 @@ import java.util.stream.Collectors; | |||
| @Api(description = "商户注券相关接口") | |||
| public class WxCouponSendController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponSendService wxCouponSendService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponActionLogService wxCouponActionLogService; | |||
| @Lazy | |||
| @Resource | |||
| private WxCUserMapper wxCUserMapper; | |||
| @@ -27,6 +27,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import lombok.extern.slf4j.Slf4j; | |||
| import org.apache.commons.lang3.StringUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.List; | |||
| @@ -39,15 +40,19 @@ import java.util.Objects; | |||
| @Slf4j | |||
| public class WxCreditHistoryController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxCreditHistoryService wxCreditHistoryService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserTagsService wxCUserTagsService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @@ -29,6 +30,7 @@ import java.util.List; | |||
| public class WxDateAmountRecordController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxDateAmountRecordService wxDateAmountRecordService; | |||
| @@ -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.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -48,24 +49,31 @@ public class WxInfoController extends BaseController { | |||
| @Autowired | |||
| private boolean isFmOpen; | |||
| @Lazy | |||
| @Autowired | |||
| WxAppinfoService wxAppinfoService; | |||
| @Lazy | |||
| @Autowired | |||
| MallUserInfoService mallUserInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| MallUserRoleService mallUserRoleService; | |||
| @Lazy | |||
| @Autowired | |||
| MallRolePermissionService mallRolePermissionService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantBUserService merchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private CUserServiceFactory cuserFactory; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService mallService; | |||
| @@ -18,6 +18,7 @@ import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.beans.factory.annotation.Value; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.ResponseBody; | |||
| @@ -40,9 +41,11 @@ public class WxMallController extends BaseController { | |||
| @Value("${version}") | |||
| private String version; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMallService wxMallService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxAppinfoService wxAppinfoService; | |||
| @@ -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.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -34,15 +35,19 @@ import java.util.Map; | |||
| public class WxMemController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserService userService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxLevelConfigService wxLevelConfigService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import lombok.extern.slf4j.Slf4j; | |||
| import org.apache.commons.lang3.StringUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -22,12 +23,15 @@ import org.springframework.web.bind.annotation.*; | |||
| @Slf4j | |||
| public class WxMerchantController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxProfitSharingReceiverService wxProfitSharingReceiverService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserService cUserService; | |||
| @@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -24,6 +25,7 @@ import java.util.Map; | |||
| public class WxMerchantSubsidyController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantSubsidyService wxMerchantSubsidyService; | |||
| @@ -17,6 +17,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.web.bind.annotation.*; | |||
| import java.text.SimpleDateFormat; | |||
| @@ -28,10 +29,16 @@ import java.util.List; | |||
| @Api(description = "解单相关接口") | |||
| public class WxMerchantTradeDailyController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantTradeDailyService wxMerchantTradeDailyService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantBUserService wxMerchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -36,30 +37,39 @@ import java.util.Map; | |||
| public class WxMicroPayController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantBUserService wxMerchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| WxOrderService wxOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxPayOrderService wxPayOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxRefundOrderService wxRefundOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxAppinfoService wxAppinfoService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| OrderFactory orderFactory; | |||
| @@ -16,6 +16,7 @@ import io.swagger.annotations.ApiImplicitParams; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @@ -28,12 +29,15 @@ import java.util.List; | |||
| public class WxMsgValidationcodeController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxMsgValidationcodeService wxMsgValidationcodeService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantBUserService wxMerchantBUserService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import javax.servlet.http.HttpServletRequest; | |||
| @@ -30,6 +31,7 @@ import java.util.Map; | |||
| public class WxPayBillController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxPayBillService wxPayBillService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.util.Map; | |||
| @@ -30,12 +31,15 @@ import java.util.Map; | |||
| public class WxRefundOrderController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxAppinfoService wxAppinfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxRefundOrderService wxRefundOrderService; | |||
| @@ -8,6 +8,7 @@ import io.swagger.annotations.Api; | |||
| import io.swagger.annotations.ApiOperation; | |||
| import lombok.extern.slf4j.Slf4j; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @@ -22,6 +23,7 @@ import java.util.Map; | |||
| @Slf4j | |||
| public class WxTagController extends BaseController { | |||
| @Lazy | |||
| @Autowired | |||
| private WxTagsService wxTagsService; | |||
| @@ -19,6 +19,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; | |||
| @@ -41,9 +42,11 @@ public class PosBrunService { | |||
| @Autowired | |||
| private String posUrl; | |||
| @Lazy | |||
| @Autowired | |||
| private PosOrderService posOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private PosPayOrderService posPayOrderService; | |||
| @@ -18,6 +18,7 @@ import org.aspectj.lang.annotation.Aspect; | |||
| import org.aspectj.lang.annotation.Pointcut; | |||
| import org.aspectj.lang.reflect.MethodSignature; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.data.redis.core.StringRedisTemplate; | |||
| import org.springframework.data.redis.core.ValueOperations; | |||
| import org.springframework.stereotype.Component; | |||
| @@ -47,9 +48,11 @@ public class RedisCacheAspect { | |||
| @Autowired | |||
| private StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| RedisLock redisLock; | |||
| @Lazy | |||
| @Autowired | |||
| private CUserTokenService cUserTokenService; | |||
| @@ -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.web.bind.WebDataBinder; | |||
| import org.springframework.web.bind.annotation.InitBinder; | |||
| @@ -42,34 +43,44 @@ public class BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private boolean isFmOpen; | |||
| @Lazy | |||
| @Autowired | |||
| private WxAppinfoService wxAppinfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private FmOpenService openService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicChildService wxCUserBasicChildService; | |||
| @Lazy | |||
| @Autowired | |||
| private CUserTokenService cUserTokenService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxScoreRulesService wxScoreRulesService; | |||
| @Lazy | |||
| @Autowired | |||
| private MemCouponFromDspService memCouponFromDspService; | |||
| @Lazy | |||
| @Autowired | |||
| @Qualifier("objectCommonRedisTemplate") | |||
| RedisTemplate<String, Object> objectCommonRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| MaUtil maUtil; | |||
| @@ -14,6 +14,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.web.bind.annotation.*; | |||
| /** | |||
| @@ -25,6 +26,7 @@ import org.springframework.web.bind.annotation.*; | |||
| public class FengNiaoMapController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private FengNiaoMapService fengNiaoMapService; | |||
| @@ -11,6 +11,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.web.bind.annotation.*; | |||
| import org.springframework.web.multipart.MultipartFile; | |||
| @@ -26,6 +27,7 @@ public class UploadController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private AliyunOSS aliyunOSS; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -22,6 +23,7 @@ public class UserBasicInfoAddressController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private UserBasicInfoAddressService userBasicInfoAddressService; | |||
| @@ -18,6 +18,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -37,6 +38,7 @@ import java.util.Map; | |||
| public class WxActivityController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxActivityService wxActivityService; | |||
| @@ -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.web.bind.annotation.*; | |||
| import java.util.List; | |||
| @@ -34,6 +35,7 @@ import java.util.stream.Collectors; | |||
| public class WxActivityJoinController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxActivityJoinService wxActivityJoinService; | |||
| @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.List; | |||
| @@ -24,6 +25,7 @@ import java.util.stream.Collectors; | |||
| public class WxBusinessController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxBusinessService wxBusinessService; | |||
| @@ -16,6 +16,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import java.util.ArrayList; | |||
| @@ -30,6 +31,7 @@ public class WxCUserBasicSignController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicSignService wxCUserBasicSignService; | |||
| @@ -19,6 +19,7 @@ import io.swagger.annotations.ApiOperation; | |||
| import org.slf4j.Logger; | |||
| import org.slf4j.LoggerFactory; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.context.annotation.Lazy; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| @@ -35,8 +36,11 @@ import java.util.List; | |||
| public class WxCampaignController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCampaignService wxCampaignService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelService wxCouponChannelService; | |||
| @@ -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.web.bind.annotation.*; | |||
| @@ -35,45 +36,59 @@ import java.util.Map; | |||
| public class WxCarController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxParkService wxParkService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCUserCarService wxCUserCarService; | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCouponService couponService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxScoreRulesService wxScoreRulesService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCUserTagsService wxCUserTagsService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCarCmdLogService wxCarCmdLogService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCreditHistoryService wxCreditHistoryService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| ParkFactory parkFactory; | |||
| @Lazy | |||
| @Autowired | |||
| ParkHelper parkHelper; | |||
| @Lazy | |||
| @Autowired | |||
| EtcpHelper etcpHelper; | |||
| @Lazy | |||
| @Autowired | |||
| @Qualifier("objectCommonRedisTemplate") | |||
| RedisTemplate<String, Object> redisTemplate; | |||
| @@ -12,6 +12,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.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.ModelAttribute; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| @@ -59,21 +60,27 @@ import io.swagger.annotations.ApiOperation; | |||
| public class WxCardPayController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| WxMerchantService wxMerchantService; | |||
| @Lazy | |||
| @Autowired | |||
| WxOrderService wxOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCardInfoService wxCardInfoService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCardSpendService wxCardSpendService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| WxCUserBasicInfoService wxCUserBasicInfoService; | |||
| @@ -10,6 +10,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.web.bind.annotation.*; | |||
| import com.github.pagehelper.PageInfo; | |||
| @@ -37,9 +38,11 @@ import io.swagger.annotations.ApiOperation; | |||
| public class WxCouponChannelController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelService wxCouponChannelService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService wxMerchantService; | |||
| @@ -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.data.redis.core.ValueOperations; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| @@ -45,13 +46,19 @@ import io.swagger.annotations.ApiOperation; | |||
| public class WxCouponController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponChannelService wxCouponChannelService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService couponService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxMerchantService merchantService; | |||
| @Lazy | |||
| @Autowired | |||
| @Qualifier("couponDetailRedisTemplate") | |||
| RedisTemplate<String, WxCouponCVo> cdRedisTemplate; | |||
| @@ -28,6 +28,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.StringRedisTemplate; | |||
| import org.springframework.data.redis.core.ValueOperations; | |||
| @@ -42,22 +43,28 @@ import java.util.concurrent.TimeUnit; | |||
| public class WxCouponOrderController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService wxCouponService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponOrderService wxCouponOrderService; | |||
| @Lazy | |||
| @Autowired | |||
| private MemCouponFromDspService memCouponFromDspService; | |||
| @Lazy | |||
| @Autowired | |||
| @Qualifier("couponDetailRedisTemplate") | |||
| RedisTemplate<String, WxCouponCVo> cdRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| StringRedisTemplate stringRedisTemplate; | |||
| @Lazy | |||
| @Autowired | |||
| SysConfigService sysConfigService; | |||
| @@ -15,6 +15,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.web.bind.annotation.*; | |||
| import java.util.Date; | |||
| @@ -26,15 +27,19 @@ import java.util.Map; | |||
| public class WxCouponPasswordController extends BaseController { | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponPasswordService couponPasswordService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCouponService couponService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxOrderService orderService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxCUserBasicInfoService userService; | |||
| @@ -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.web.bind.annotation.*; | |||
| @RestController | |||
| @@ -30,9 +31,11 @@ public class WxCreditHistoryController extends BaseController{ | |||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||
| @Lazy | |||
| @Autowired | |||
| private WxCreditHistoryService wxCreditHistoryService; | |||
| @Lazy | |||
| @Autowired | |||
| private WxScoreRulesService wxScoreRulesService; | |||