去除final使用@Autowired

This commit is contained in:
lifenlong 2021-05-13 15:07:03 +08:00
parent 3785bdb3bb
commit a10c38f3c1
350 changed files with 1325 additions and 1659 deletions

View File

@ -27,17 +27,18 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@Api(tags = "买家端,分销员接口") @Api(tags = "买家端,分销员接口")
@RequestMapping("/buyer/distribution") @RequestMapping("/buyer/distribution")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionBuyerController { public class DistributionBuyerController {
/** /**
* 分销员 * 分销员
*/ */
private final DistributionService distributionService; @Autowired
private DistributionService distributionService;
/** /**
* 分销员订单 * 分销员订单
*/ */
private final DistributionOrderService distributionOrderService; @Autowired
private DistributionOrderService distributionOrderService;
//申请分销员 //申请分销员
@ApiOperation(value = "申请分销员") @ApiOperation(value = "申请分销员")

View File

@ -10,7 +10,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -30,17 +29,18 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,分销商品佣金提现接口") @Api(tags = "买家端,分销商品佣金提现接口")
@RequestMapping("/buyer/distribution/cash") @RequestMapping("/buyer/distribution/cash")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionCashBuyerController { public class DistributionCashBuyerController {
/** /**
* 分销佣金 * 分销佣金
*/ */
private final DistributionCashService distributionCashService; @Autowired
private DistributionCashService distributionCashService;
/** /**
* 分销员提现 * 分销员提现
*/ */
private final DistributionCashService distributorCashService; @Autowired
private DistributionCashService distributorCashService;
@ApiOperation(value = "分销员提现") @ApiOperation(value = "分销员提现")

View File

@ -29,17 +29,18 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,分销商品接口") @Api(tags = "买家端,分销商品接口")
@RequestMapping("/buyer/distributionGoods") @RequestMapping("/buyer/distributionGoods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionGoodsBuyerController { public class DistributionGoodsBuyerController {
/** /**
* 分销商品 * 分销商品
*/ */
private final DistributionGoodsService distributionGoodsService; @Autowired
private DistributionGoodsService distributionGoodsService;
/** /**
* 选择分销商品 * 选择分销商品
*/ */
private final DistributionSelectedGoodsService distributionSelectedGoodsService; @Autowired
private DistributionSelectedGoodsService distributionSelectedGoodsService;
@ApiOperation(value = "获取分销商商品列表") @ApiOperation(value = "获取分销商商品列表")

View File

@ -25,17 +25,18 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "买家端,分销订单接口") @Api(tags = "买家端,分销订单接口")
@RequestMapping("/buyer/distribution/order") @RequestMapping("/buyer/distribution/order")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionOrderBuyerController { public class DistributionOrderBuyerController {
/** /**
* 分销订单 * 分销订单
*/ */
private final DistributionOrderService distributionOrderService; @Autowired
private DistributionOrderService distributionOrderService;
/** /**
* 分销员 * 分销员
*/ */
private final DistributionService distributionService; @Autowired
private DistributionService distributionService;
@ApiOperation(value = "分销员订单") @ApiOperation(value = "分销员订单")

View File

@ -27,12 +27,12 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端,商品分类接口") @Api(tags = "买家端,商品分类接口")
@RequestMapping("/buyer/category") @RequestMapping("/buyer/category")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CategoryBuyerController { public class CategoryBuyerController {
/** /**
* 商品分类 * 商品分类
*/ */
private final CategoryService categoryService; @Autowired
private CategoryService categoryService;
@ApiOperation(value = "获取商品分类列表") @ApiOperation(value = "获取商品分类列表")
@ApiImplicitParam(name = "parentId", value = "上级分类ID全部分类为0", required = true, dataType = "Long", paramType = "path") @ApiImplicitParam(name = "parentId", value = "上级分类ID全部分类为0", required = true, dataType = "Long", paramType = "path")

View File

@ -42,25 +42,28 @@ import java.util.Map;
@Api(tags = "买家端,商品接口") @Api(tags = "买家端,商品接口")
@RestController @RestController
@RequestMapping("/buyer/goods") @RequestMapping("/buyer/goods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsBuyerController { public class GoodsBuyerController {
/** /**
* 商品 * 商品
*/ */
private final GoodsService goodsService; @Autowired
private GoodsService goodsService;
/** /**
* 商品SKU * 商品SKU
*/ */
private final GoodsSkuService goodsSkuService; @Autowired
private GoodsSkuService goodsSkuService;
/** /**
* ES商品搜索 * ES商品搜索
*/ */
private final EsGoodsSearchService goodsSearchService; @Autowired
private EsGoodsSearchService goodsSearchService;
/** /**
* 分销员 * 分销员
*/ */
private final DistributionService distributionService; @Autowired
private DistributionService distributionService;
@ApiOperation(value = "通过id获取商品信息") @ApiOperation(value = "通过id获取商品信息")

View File

@ -33,18 +33,19 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,买家优惠券接口") @Api(tags = "买家端,买家优惠券接口")
@RequestMapping("/buyer/promotion/coupon") @RequestMapping("/buyer/promotion/coupon")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CouponBuyerController { public class CouponBuyerController {
/** /**
* 优惠券 * 优惠券
*/ */
private final CouponService couponService; @Autowired
private CouponService couponService;
/** /**
* 会员优惠券 * 会员优惠券
*/ */
private final MemberCouponService memberCouponService; @Autowired
private MemberCouponService memberCouponService;
@GetMapping @GetMapping
@ApiOperation(value = "获取可领取优惠券列表") @ApiOperation(value = "获取可领取优惠券列表")

View File

@ -26,13 +26,13 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端,浏览历史接口") @Api(tags = "买家端,浏览历史接口")
@RequestMapping("/buyer/footprint") @RequestMapping("/buyer/footprint")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FootprintController { public class FootprintController {
/** /**
* 会员足迹 * 会员足迹
*/ */
private final FootprintService footprintService; @Autowired
private FootprintService footprintService;
@ApiOperation(value = "分页获取") @ApiOperation(value = "分页获取")
@GetMapping @GetMapping

View File

@ -28,15 +28,16 @@ import javax.validation.Valid;
@RestController @RestController
@Api(tags = "买家端,会员地址接口") @Api(tags = "买家端,会员地址接口")
@RequestMapping("/buyer/memberAddress") @RequestMapping("/buyer/memberAddress")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberAddressBuyerController { public class MemberAddressBuyerController {
/** /**
* 会员收件地址 * 会员收件地址
*/ */
private final MemberAddressService memberAddressService; @Autowired
private MemberAddressService memberAddressService;
private final RegionService regionService; @Autowired
private RegionService regionService;
@ApiOperation(value = "获取会员收件地址分页列表") @ApiOperation(value = "获取会员收件地址分页列表")
@GetMapping @GetMapping

View File

@ -24,17 +24,18 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,会员收藏接口") @Api(tags = "买家端,会员收藏接口")
@RequestMapping("/buyer/member/collection") @RequestMapping("/buyer/member/collection")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberCollectionController { public class MemberCollectionController {
/** /**
* 会员商品收藏 * 会员商品收藏
*/ */
private final GoodsCollectionService goodsCollectionService; @Autowired
private GoodsCollectionService goodsCollectionService;
/** /**
* 会员店铺 * 会员店铺
*/ */
private final StoreCollectionService storeCollectionService; @Autowired
private StoreCollectionService storeCollectionService;
@ApiOperation(value = "查询会员收藏列表") @ApiOperation(value = "查询会员收藏列表")
@ApiImplicitParam(name = "type", value = "类型", dataType = "String", paramType = "path", example = "GOODS:商品,STORE:店铺") @ApiImplicitParam(name = "type", value = "类型", dataType = "String", paramType = "path", example = "GOODS:商品,STORE:店铺")

View File

@ -29,13 +29,13 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,会员商品评价接口") @Api(tags = "买家端,会员商品评价接口")
@RequestMapping("/buyer/memberEvaluation") @RequestMapping("/buyer/memberEvaluation")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberEvaluationBuyerController { public class MemberEvaluationBuyerController {
/** /**
* 会员商品评价 * 会员商品评价
*/ */
private final MemberEvaluationService memberEvaluationService; @Autowired
private MemberEvaluationService memberEvaluationService;
@ApiOperation(value = "添加会员评价") @ApiOperation(value = "添加会员评价")
@PostMapping @PostMapping

View File

@ -24,13 +24,13 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@Api(tags = "买家端,会员站内消息接口") @Api(tags = "买家端,会员站内消息接口")
@RequestMapping("/buyer/member/message") @RequestMapping("/buyer/member/message")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberMessageBuyerController { public class MemberMessageBuyerController {
/** /**
* 会员站内消息 * 会员站内消息
*/ */
private final MemberMessageService memberMessageService; @Autowired
private MemberMessageService memberMessageService;
@ApiOperation(value = "分页获取会员站内消息") @ApiOperation(value = "分页获取会员站内消息")
@GetMapping @GetMapping

View File

@ -25,10 +25,10 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@Api(tags = "买家端,会员发票接口") @Api(tags = "买家端,会员发票接口")
@RequestMapping("/buyer/member/receipt") @RequestMapping("/buyer/member/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberReceiptController { public class MemberReceiptController {
private final MemberReceiptService memberReceiptService; @Autowired
private MemberReceiptService memberReceiptService;
@ApiOperation(value = "查询会员发票列表") @ApiOperation(value = "查询会员发票列表")
@GetMapping @GetMapping

View File

@ -24,10 +24,9 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端会员签到API") @Api(tags = "买家端会员签到API")
@RequestMapping("/buyer/members/sign") @RequestMapping("/buyer/members/sign")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberSignBuyerController { public class MemberSignBuyerController {
@Autowired
private final MemberSignService memberSignService; private MemberSignService memberSignService;
@PostMapping @PostMapping
@ApiOperation(value = "会员签到") @ApiOperation(value = "会员签到")

View File

@ -36,21 +36,23 @@ import javax.validation.constraints.Pattern;
@RestController @RestController
@Api(tags = "买家端,会员余额接口") @Api(tags = "买家端,会员余额接口")
@RequestMapping("/buyer/members/wallet") @RequestMapping("/buyer/members/wallet")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberWalletBuyerController { public class MemberWalletBuyerController {
/** /**
* 会员 * 会员
*/ */
private final MemberService memberService; @Autowired
private MemberService memberService;
/** /**
* 会员余额 * 会员余额
*/ */
private final MemberWalletService memberWalletService; @Autowired
private MemberWalletService memberWalletService;
/** /**
* 验证码 * 验证码
*/ */
private final VerificationService verificationService; @Autowired
private VerificationService verificationService;
@GetMapping @GetMapping
@ApiOperation(value = "查询会员预存款余额") @ApiOperation(value = "查询会员预存款余额")

View File

@ -11,10 +11,11 @@ import cn.lili.modules.member.service.MemberWithdrawApplyService;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/** /**
@ -27,10 +28,9 @@ import org.springframework.web.bind.annotation.*;
@Api(tags = "买家端,余额提现记录接口") @Api(tags = "买家端,余额提现记录接口")
@RequestMapping("/buyer/member/withdrawApply") @RequestMapping("/buyer/member/withdrawApply")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberWithdrawApplyBuyerController { public class MemberWithdrawApplyBuyerController {
@Autowired
private final MemberWithdrawApplyService memberWithdrawApplyService; private MemberWithdrawApplyService memberWithdrawApplyService;
@ApiOperation(value = "分页获取提现记录") @ApiOperation(value = "分页获取提现记录")

View File

@ -13,7 +13,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -28,10 +27,9 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "买家端,会员积分历史接口") @Api(tags = "买家端,会员积分历史接口")
@RequestMapping("/buyer/member/memberPointsHistory") @RequestMapping("/buyer/member/memberPointsHistory")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PointsHistoryBuyerController { public class PointsHistoryBuyerController {
@Autowired
private final MemberPointsHistoryService memberPointsHistoryService; private MemberPointsHistoryService memberPointsHistoryService;
@ApiOperation(value = "分页获取") @ApiOperation(value = "分页获取")
@GetMapping(value = "/getByPage") @GetMapping(value = "/getByPage")

View File

@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.RestController;
@Api(tags = "买家端,预存款充值记录接口") @Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/member/recharge") @RequestMapping("/buyer/member/recharge")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RechargeBuyerController { public class RechargeBuyerController {
@Autowired @Autowired

View File

@ -10,7 +10,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
@ -27,13 +26,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping("/service/notice") @RequestMapping("/service/notice")
@Api(tags = "买家端,会员站服务消息接口") @Api(tags = "买家端,会员站服务消息接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ServiceNoticeBuyerController { public class ServiceNoticeBuyerController {
/** /**
* 服务消息 * 服务消息
*/ */
private final ServiceNoticeService serviceNoticeService; @Autowired
private ServiceNoticeService serviceNoticeService;
@ApiOperation(value = "获取消息详情") @ApiOperation(value = "获取消息详情")
@ApiImplicitParam(name = "id", value = "商品ID", required = true, dataType = "Long", paramType = "path") @ApiImplicitParam(name = "id", value = "商品ID", required = true, dataType = "Long", paramType = "path")

View File

@ -31,18 +31,19 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端,文章接口") @Api(tags = "买家端,文章接口")
@RequestMapping("/buyer/article") @RequestMapping("/buyer/article")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ArticleBuyerController { public class ArticleBuyerController {
/** /**
* 文章 * 文章
*/ */
private final ArticleService articleService; @Autowired
private ArticleService articleService;
/** /**
* 文章分类 * 文章分类
*/ */
private final ArticleCategoryService articleCategoryService; @Autowired
private ArticleCategoryService articleCategoryService;
@ApiOperation(value = "获取文章分类列表") @ApiOperation(value = "获取文章分类列表")
@GetMapping(value = "/articleCategory/list") @GetMapping(value = "/articleCategory/list")

View File

@ -23,13 +23,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "买家端,意见反馈接口") @Api(tags = "买家端,意见反馈接口")
@RequestMapping("/buyer/feedback") @RequestMapping("/buyer/feedback")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FeedbackBuyerController { public class FeedbackBuyerController {
/** /**
* 意见反馈 * 意见反馈
*/ */
private final FeedbackService feedbackService; @Autowired
private FeedbackService feedbackService;
@ApiOperation(value = "添加意见反馈") @ApiOperation(value = "添加意见反馈")
@PostMapping() @PostMapping()

View File

@ -23,10 +23,10 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端,物流公司接口") @Api(tags = "买家端,物流公司接口")
@RequestMapping("/buyer/logistics") @RequestMapping("/buyer/logistics")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class LogisticsBuyerController { public class LogisticsBuyerController {
private final LogisticsService logisticsService; @Autowired
private LogisticsService logisticsService;
@ApiOperation(value = "分页获取物流公司") @ApiOperation(value = "分页获取物流公司")

View File

@ -24,13 +24,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "买家端,页面接口") @Api(tags = "买家端,页面接口")
@RequestMapping("/buyer/pageData") @RequestMapping("/buyer/pageData")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PageBuyerController { public class PageBuyerController {
/** /**
* 页面管理 * 页面管理
*/ */
private final PageDataService pageService; @Autowired
private PageDataService pageService;
@ApiOperation(value = "获取首页数据") @ApiOperation(value = "获取首页数据")
@GetMapping("/getIndex") @GetMapping("/getIndex")

View File

@ -28,17 +28,14 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,会员接口") @Api(tags = "买家端,会员接口")
@RequestMapping("/buyer/members") @RequestMapping("/buyer/members")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberBuyerController { public class MemberBuyerController {
/** @Autowired
* 会员 private MemberService memberService;
*/ @Autowired
private final MemberService memberService; private SmsUtil smsUtil;
@Autowired
private final SmsUtil smsUtil; private VerificationService verificationService;
private final VerificationService verificationService;
@ApiOperation(value = "登录接口") @ApiOperation(value = "登录接口")

View File

@ -23,10 +23,10 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端,app/小程序 联合登录") @Api(tags = "买家端,app/小程序 联合登录")
@RequestMapping("/buyer/connect/bind") @RequestMapping("/buyer/connect/bind")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectBuyerBindController { public class ConnectBuyerBindController {
private final ConnectService connectService; @Autowired
private ConnectService connectService;
@ApiOperation(value = "unionID 绑定") @ApiOperation(value = "unionID 绑定")
@ApiImplicitParams({ @ApiImplicitParams({

View File

@ -32,14 +32,16 @@ import java.io.IOException;
@RestController @RestController
@Api(tags = "买家端,web联合登录") @Api(tags = "买家端,web联合登录")
@RequestMapping("/buyer/connect") @RequestMapping("/buyer/connect")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectBuyerWebController { public class ConnectBuyerWebController {
private final ConnectService connectService; @Autowired
private ConnectService connectService;
private final MemberService memberService; @Autowired
private MemberService memberService;
private final ConnectUtil connectUtil; @Autowired
private ConnectUtil connectUtil;
@GetMapping("/login/web/{type}") @GetMapping("/login/web/{type}")

View File

@ -11,7 +11,6 @@ import cn.lili.modules.message.service.WechatMPMessageService;
import cn.lili.modules.message.util.WechatMpCodeUtil; import cn.lili.modules.message.util.WechatMpCodeUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestHeader;
@ -29,14 +28,16 @@ import java.util.List;
@RestController @RestController
@RequestMapping("/buyer/mini-program") @RequestMapping("/buyer/mini-program")
@Api(tags = "买家端,小程序登录接口") @Api(tags = "买家端,小程序登录接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MiniProgramBuyerController { public class MiniProgramBuyerController {
public final ConnectService connectService; @Autowired
public final WechatMpCodeUtil wechatMpCodeUtil; public ConnectService connectService;
@Autowired
public final WechatMPMessageService wechatMPMessageService; public WechatMpCodeUtil wechatMpCodeUtil;
public final ShortLinkService shortLinkService; @Autowired
public WechatMPMessageService wechatMPMessageService;
@Autowired
public ShortLinkService shortLinkService;
@GetMapping("/auto-login") @GetMapping("/auto-login")
@ApiOperation(value = "小程序自动登录") @ApiOperation(value = "小程序自动登录")

View File

@ -13,7 +13,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -30,13 +29,12 @@ import javax.servlet.http.HttpServletResponse;
@RestController @RestController
@Api(tags = "买家端,收银台接口") @Api(tags = "买家端,收银台接口")
@RequestMapping("/buyer/cashier") @RequestMapping("/buyer/cashier")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CashierController { public class CashierController {
@Autowired
private final CashierSupport cashierSupport; private CashierSupport cashierSupport;
@Autowired
private final PaymentService paymentService; private PaymentService paymentService;
@ApiImplicitParams({ @ApiImplicitParams({

View File

@ -22,11 +22,10 @@ import javax.servlet.http.HttpServletRequest;
@Api(tags = "买家端,退款回调") @Api(tags = "买家端,退款回调")
@RestController @RestController
@RequestMapping("/buyer/cashier/refund") @RequestMapping("/buyer/cashier/refund")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CashierRefundController { public class CashierRefundController {
@Autowired
private final RefundSupport refundSupport; private RefundSupport refundSupport;
@ApiOperation(value = "退款通知") @ApiOperation(value = "退款通知")

View File

@ -33,12 +33,11 @@ import java.util.List;
@Api(tags = "买家端,拼团接口") @Api(tags = "买家端,拼团接口")
@RestController @RestController
@RequestMapping("/buyer/promotion/pintuan") @RequestMapping("/buyer/promotion/pintuan")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PintuanBuyerController { public class PintuanBuyerController {
@Autowired
private final PromotionGoodsService promotionGoodsService; private PromotionGoodsService promotionGoodsService;
@Autowired
private final PintuanService pintuanService; private PintuanService pintuanService;
@ApiOperation(value = "获取拼团商品") @ApiOperation(value = "获取拼团商品")
@GetMapping @GetMapping

View File

@ -11,7 +11,6 @@ import cn.lili.modules.promotion.service.PointsGoodsService;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -26,12 +25,11 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "买家端,积分商品接口") @Api(tags = "买家端,积分商品接口")
@RequestMapping("/buyer/promotion/pointsGoods") @RequestMapping("/buyer/promotion/pointsGoods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PointsGoodsBuyerController { public class PointsGoodsBuyerController {
@Autowired
private final PointsGoodsService pointsGoodsService; private PointsGoodsService pointsGoodsService;
@Autowired
private final PointsGoodsCategoryService pointsGoodsCategoryService; private PointsGoodsCategoryService pointsGoodsCategoryService;
@GetMapping @GetMapping
@ApiOperation(value = "分页获取积分商品") @ApiOperation(value = "分页获取积分商品")

View File

@ -7,7 +7,6 @@ import cn.lili.modules.promotion.entity.vos.SeckillTimelineVO;
import cn.lili.modules.promotion.service.SeckillApplyService; import cn.lili.modules.promotion.service.SeckillApplyService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
@ -26,13 +25,13 @@ import java.util.List;
@Api(tags = "买家端,限时抢购接口") @Api(tags = "买家端,限时抢购接口")
@RestController @RestController
@RequestMapping("/buyer/promotion/seckill") @RequestMapping("/buyer/promotion/seckill")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SeckillBuyerController { public class SeckillBuyerController {
/** /**
* 限时抢购 * 限时抢购
*/ */
private final SeckillApplyService seckillApplyService; @Autowired
private SeckillApplyService seckillApplyService;
@ApiOperation(value = "获取当天限时抢购信息") @ApiOperation(value = "获取当天限时抢购信息")
@GetMapping @GetMapping

View File

@ -12,7 +12,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -27,13 +26,13 @@ import javax.validation.constraints.NotNull;
@Api(tags = "买家端,采购接口") @Api(tags = "买家端,采购接口")
@RestController @RestController
@RequestMapping("/buyer/purchase") @RequestMapping("/buyer/purchase")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PurchaseBuyerController { public class PurchaseBuyerController {
/** /**
* 采购单 * 采购单
*/ */
private final PurchaseOrderService purchaseOrderService; @Autowired
private PurchaseOrderService purchaseOrderService;
@ApiOperation(value = "添加采购单") @ApiOperation(value = "添加采购单")
@PostMapping @PostMapping

View File

@ -8,7 +8,6 @@ import cn.lili.modules.purchase.service.PurchaseQuotedService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -24,13 +23,13 @@ import java.util.List;
@Api(tags = "买家端,采购报价接口") @Api(tags = "买家端,采购报价接口")
@RestController @RestController
@RequestMapping("/buyer/purchaseQuoted") @RequestMapping("/buyer/purchaseQuoted")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PurchaseQuotedController { public class PurchaseQuotedController {
/** /**
* 采购单报价 * 采购单报价
*/ */
private final PurchaseQuotedService purchaseQuotedService; @Autowired
private PurchaseQuotedService purchaseQuotedService;
@ApiOperation(value = "添加采购单报价") @ApiOperation(value = "添加采购单报价")
@PostMapping @PostMapping

View File

@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -36,21 +35,23 @@ import java.util.List;
@RestController @RestController
@RequestMapping("/buyer/store") @RequestMapping("/buyer/store")
@Api(tags = "买家端,店铺接口") @Api(tags = "买家端,店铺接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreBuyerController { public class StoreBuyerController {
/** /**
* 店铺 * 店铺
*/ */
private final StoreService storeService; @Autowired
private StoreService storeService;
/** /**
* 店铺商品分类 * 店铺商品分类
*/ */
private final StoreGoodsLabelService storeGoodsLabelService; @Autowired
private StoreGoodsLabelService storeGoodsLabelService;
/** /**
* 店铺详情 * 店铺详情
*/ */
private final StoreDetailService storeDetailService; @Autowired
private StoreDetailService storeDetailService;
@ApiOperation(value = "获取店铺列表分页") @ApiOperation(value = "获取店铺列表分页")
@GetMapping @GetMapping

View File

@ -8,17 +8,16 @@ import cn.lili.modules.order.order.entity.dto.AfterSaleDTO;
import cn.lili.modules.order.order.entity.vo.AfterSaleApplyVO; import cn.lili.modules.order.order.entity.vo.AfterSaleApplyVO;
import cn.lili.modules.order.order.entity.vo.AfterSaleSearchParams; import cn.lili.modules.order.order.entity.vo.AfterSaleSearchParams;
import cn.lili.modules.order.order.entity.vo.AfterSaleVO; import cn.lili.modules.order.order.entity.vo.AfterSaleVO;
import cn.lili.modules.order.order.service.AfterSaleLogService;
import cn.lili.modules.order.order.service.AfterSaleReasonService; import cn.lili.modules.order.order.service.AfterSaleReasonService;
import cn.lili.modules.order.order.service.AfterSaleService; import cn.lili.modules.order.order.service.AfterSaleService;
import cn.lili.modules.store.entity.dto.StoreAfterSaleAddressDTO;
import cn.lili.modules.order.trade.entity.dos.AfterSaleLog; import cn.lili.modules.order.trade.entity.dos.AfterSaleLog;
import cn.lili.modules.order.order.service.AfterSaleLogService; import cn.lili.modules.store.entity.dto.StoreAfterSaleAddressDTO;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -36,23 +35,23 @@ import java.util.List;
@RestController @RestController
@Api(tags = "买家端,售后管理接口") @Api(tags = "买家端,售后管理接口")
@RequestMapping("/buyer/afterSale") @RequestMapping("/buyer/afterSale")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AfterSaleBuyerController { public class AfterSaleBuyerController {
/** /**
* 售后 * 售后
*/ */
private final AfterSaleService afterSaleService; @Autowired
private AfterSaleService afterSaleService;
/** /**
* 售后原因 * 售后原因
*/ */
private final AfterSaleReasonService afterSaleReasonService; @Autowired
private AfterSaleReasonService afterSaleReasonService;
/** /**
* 售后日志 * 售后日志
*/ */
private final AfterSaleLogService afterSaleLogService; @Autowired
private AfterSaleLogService afterSaleLogService;
@ApiOperation(value = "查看售后服务详情") @ApiOperation(value = "查看售后服务详情")
@ApiImplicitParam(name = "sn", value = "售后单号", required = true, paramType = "path") @ApiImplicitParam(name = "sn", value = "售后单号", required = true, paramType = "path")

View File

@ -32,13 +32,13 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,购物车接口") @Api(tags = "买家端,购物车接口")
@RequestMapping("/buyer/trade/carts") @RequestMapping("/buyer/trade/carts")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CartController { public class CartController {
/** /**
* 购物车 * 购物车
*/ */
private final CartService cartService; @Autowired
private CartService cartService;
@ApiOperation(value = "向购物车中添加一个产品") @ApiOperation(value = "向购物车中添加一个产品")

View File

@ -33,13 +33,13 @@ import javax.validation.constraints.NotNull;
@RestController @RestController
@Api(tags = "买家端,订单接口") @Api(tags = "买家端,订单接口")
@RequestMapping("/buyer/orders") @RequestMapping("/buyer/orders")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderBuyerController { public class OrderBuyerController {
/** /**
* 订单 * 订单
*/ */
private final OrderService orderService; @Autowired
private OrderService orderService;
@ApiOperation(value = "查询会员订单列表") @ApiOperation(value = "查询会员订单列表")
@GetMapping @GetMapping

View File

@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -34,18 +33,19 @@ import javax.validation.Valid;
@RestController @RestController
@Api(tags = "买家端,交易投诉接口") @Api(tags = "买家端,交易投诉接口")
@RequestMapping("/buyer/complain") @RequestMapping("/buyer/complain")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderComplaintBuyerController { public class OrderComplaintBuyerController {
/** /**
* 交易投诉 * 交易投诉
*/ */
private final OrderComplaintService orderComplaintService; @Autowired
private OrderComplaintService orderComplaintService;
/** /**
* 交易投诉沟通 * 交易投诉沟通
*/ */
private final OrderComplaintCommunicationService orderComplaintCommunicationService; @Autowired
private OrderComplaintCommunicationService orderComplaintCommunicationService;
@ApiOperation(value = "通过id获取") @ApiOperation(value = "通过id获取")

View File

@ -10,7 +10,6 @@ import cn.lili.modules.order.order.service.ReceiptService;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -25,10 +24,10 @@ import javax.validation.Valid;
@RestController @RestController
@Api(tags = "买家端,发票接口") @Api(tags = "买家端,发票接口")
@RequestMapping("/buyer/trade/receipt") @RequestMapping("/buyer/trade/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ReceiptBuyerController { public class ReceiptBuyerController {
private final ReceiptService receiptService; @Autowired
private ReceiptService receiptService;
@ApiOperation(value = "获取发票详情") @ApiOperation(value = "获取发票详情")
@GetMapping("/{id}") @GetMapping("/{id}")

View File

@ -8,7 +8,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -28,10 +27,10 @@ import javax.validation.constraints.Min;
@Api(tags = "买家端,预存款充值记录接口") @Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/trade/recharge") @RequestMapping("/buyer/trade/recharge")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RechargeTradeBuyerController { public class RechargeTradeBuyerController {
private final RechargeService rechargeService; @Autowired
private RechargeService rechargeService;
@PostMapping @PostMapping
@ApiOperation(value = "创建余额充值订单") @ApiOperation(value = "创建余额充值订单")

View File

@ -12,7 +12,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -27,10 +26,10 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "买家端,预存款变动日志记录接口") @Api(tags = "买家端,预存款变动日志记录接口")
@RequestMapping("/buyer/wallet/log") @RequestMapping("/buyer/wallet/log")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class WalletLogBuyerController { public class WalletLogBuyerController {
private final WalletLogService walletLogService; @Autowired
private WalletLogService walletLogService;
@ApiOperation(value = "分页获取预存款变动日志") @ApiOperation(value = "分页获取预存款变动日志")
@GetMapping @GetMapping

View File

@ -13,6 +13,7 @@ import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException; import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.Jwts; import io.jsonwebtoken.Jwts;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.GrantedAuthority;
@ -45,7 +46,8 @@ public class BuyerAuthenticationFilter extends BasicAuthenticationFilter {
/** /**
* 缓存 * 缓存
*/ */
private final Cache cache; @Autowired
private Cache cache;
/** /**
* 自定义构造器 * 自定义构造器

View File

@ -4,7 +4,6 @@ import cn.lili.common.cache.Cache;
import cn.lili.common.security.CustomAccessDeniedHandler; import cn.lili.common.security.CustomAccessDeniedHandler;
import cn.lili.common.utils.SpringContextUtil; import cn.lili.common.utils.SpringContextUtil;
import cn.lili.config.properties.IgnoredUrlsProperties; import cn.lili.config.properties.IgnoredUrlsProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -27,23 +26,22 @@ import org.springframework.web.cors.CorsConfigurationSource;
@Slf4j @Slf4j
@Configuration @Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true) @EnableGlobalMethodSecurity(prePostEnabled = true)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BuyerSecurityConfig extends WebSecurityConfigurerAdapter { public class BuyerSecurityConfig extends WebSecurityConfigurerAdapter {
/** /**
* 忽略验权配置 * 忽略验权配置
*/ */
private final IgnoredUrlsProperties ignoredUrlsProperties; @Autowired
private IgnoredUrlsProperties ignoredUrlsProperties;
/** /**
* spring security - 权限不足处理 * spring security - 权限不足处理
*/ */
private final CustomAccessDeniedHandler accessDeniedHandler; @Autowired
private CustomAccessDeniedHandler accessDeniedHandler;
@Autowired
private final Cache<String> cache; private Cache<String> cache;
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {

View File

@ -17,7 +17,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -33,12 +32,13 @@ import java.util.List;
@RestController @RestController
@Api(tags = "文件管理管理接口") @Api(tags = "文件管理管理接口")
@RequestMapping("/common/file") @RequestMapping("/common/file")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FileController { public class FileController {
private final FileService fileService; @Autowired
private FileService fileService;
private final Cache cache; @Autowired
private Cache cache;
@ApiOperation(value = "获取自己的图片资源") @ApiOperation(value = "获取自己的图片资源")
@GetMapping @GetMapping

View File

@ -6,7 +6,6 @@ import cn.lili.modules.system.entity.enums.SettingEnum;
import cn.lili.modules.system.service.SettingService; import cn.lili.modules.system.service.SettingService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -22,7 +21,6 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@Api(tags = "文件管理管理接口") @Api(tags = "文件管理管理接口")
@RequestMapping("/common/logo") @RequestMapping("/common/logo")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class LogoController { public class LogoController {
@Autowired @Autowired

View File

@ -9,7 +9,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -25,11 +24,10 @@ import java.util.List;
@RestController @RestController
@Api(tags = "地址信息接口") @Api(tags = "地址信息接口")
@RequestMapping("/common/region") @RequestMapping("/common/region")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RegionController { public class RegionController {
@Autowired
private final RegionService regionService; private RegionService regionService;
@ApiOperation(value = "点地图获取地址信息") @ApiOperation(value = "点地图获取地址信息")
@ApiImplicitParams({ @ApiImplicitParams({

View File

@ -8,7 +8,6 @@ import cn.lili.common.verification.service.VerificationService;
import cn.lili.common.vo.ResultMessage; import cn.lili.common.vo.ResultMessage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -21,11 +20,10 @@ import org.springframework.web.bind.annotation.*;
@RequestMapping("/common/slider") @RequestMapping("/common/slider")
@RestController @RestController
@Api(tags = "滑块验证码接口") @Api(tags = "滑块验证码接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SliderImageController { public class SliderImageController {
@Autowired
private final VerificationService verificationService; private VerificationService verificationService;
//一分钟同一个ip请求10次 //一分钟同一个ip请求10次
@LimitPoint(name = "slider_image", key = "verification") @LimitPoint(name = "slider_image", key = "verification")

View File

@ -11,7 +11,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -24,12 +23,12 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@Api(tags = "短信验证码接口") @Api(tags = "短信验证码接口")
@RequestMapping("/common/sms") @RequestMapping("/common/sms")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SmsController { public class SmsController {
private final SmsUtil smsUtil; @Autowired
private SmsUtil smsUtil;
private final VerificationService verificationService; @Autowired
private VerificationService verificationService;
//一分钟同一个ip请求1次 //一分钟同一个ip请求1次
@LimitPoint(name = "sms_send", key = "sms") @LimitPoint(name = "sms_send", key = "sms")

View File

@ -20,7 +20,6 @@ import cn.lili.modules.system.entity.enums.SettingEnum;
import cn.lili.modules.system.service.SettingService; import cn.lili.modules.system.service.SettingService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -41,16 +40,16 @@ import java.io.InputStream;
@RestController @RestController
@Api(tags = "文件上传接口") @Api(tags = "文件上传接口")
@RequestMapping("/common/upload") @RequestMapping("/common/upload")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UploadController { public class UploadController {
private final FileService fileService; @Autowired
private FileService fileService;
private final SettingService settingService; @Autowired
private SettingService settingService;
private final FileManagerPlugin fileManagerPlugin; @Autowired
private FileManagerPlugin fileManagerPlugin;
private final Cache cache; @Autowired
private Cache cache;
@ApiOperation(value = "文件上传") @ApiOperation(value = "文件上传")
@PostMapping(value = "/file") @PostMapping(value = "/file")

View File

@ -3,7 +3,6 @@ package cn.lili.controller.security;
import cn.lili.common.cache.Cache; import cn.lili.common.cache.Cache;
import cn.lili.common.security.CustomAccessDeniedHandler; import cn.lili.common.security.CustomAccessDeniedHandler;
import cn.lili.config.properties.IgnoredUrlsProperties; import cn.lili.config.properties.IgnoredUrlsProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -24,24 +23,23 @@ import org.springframework.web.cors.CorsConfigurationSource;
@Slf4j @Slf4j
@Configuration @Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true) @EnableGlobalMethodSecurity(prePostEnabled = true)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CommonSecurityConfig extends WebSecurityConfigurerAdapter { public class CommonSecurityConfig extends WebSecurityConfigurerAdapter {
/** /**
* 忽略验权配置 * 忽略验权配置
*/ */
private final IgnoredUrlsProperties ignoredUrlsProperties; @Autowired
private IgnoredUrlsProperties ignoredUrlsProperties;
/** /**
* spring security - 权限不足处理 * spring security - 权限不足处理
*/ */
private final CustomAccessDeniedHandler accessDeniedHandler; @Autowired
private CustomAccessDeniedHandler accessDeniedHandler;
@Autowired
private final Cache<String> cache; private Cache<String> cache;
@Autowired
private final CorsConfigurationSource corsConfigurationSource; private CorsConfigurationSource corsConfigurationSource;
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {

View File

@ -12,7 +12,6 @@ import cn.lili.modules.order.order.entity.dto.OrderMessage;
import cn.lili.modules.order.trade.entity.enums.AfterSaleStatusEnum; import cn.lili.modules.order.trade.entity.enums.AfterSaleStatusEnum;
import cn.lili.timetask.handler.EveryDayExecute; import cn.lili.timetask.handler.EveryDayExecute;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -23,13 +22,14 @@ import org.springframework.stereotype.Service;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
*/ */
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionOrderExecute implements OrderStatusChangeEvent, EveryDayExecute, AfterSaleStatusChangeEvent { public class DistributionOrderExecute implements OrderStatusChangeEvent, EveryDayExecute, AfterSaleStatusChangeEvent {
//分销订单 //分销订单
private final DistributionOrderService distributionOrderService; @Autowired
private DistributionOrderService distributionOrderService;
//分销订单持久层 //分销订单持久层
private final DistributionOrderMapper distributionOrderMapper; @Autowired
private DistributionOrderMapper distributionOrderMapper;
@Override @Override

View File

@ -4,8 +4,6 @@ package cn.lili.event.impl;
import cn.lili.event.GoodsCommentCompleteEvent; import cn.lili.event.GoodsCommentCompleteEvent;
import cn.lili.modules.goods.service.GoodsSkuService; import cn.lili.modules.goods.service.GoodsSkuService;
import cn.lili.modules.member.entity.dos.MemberEvaluation; import cn.lili.modules.member.entity.dos.MemberEvaluation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -16,11 +14,11 @@ import org.springframework.stereotype.Service;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
*/ */
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsSkuExecute implements GoodsCommentCompleteEvent { public class GoodsSkuExecute implements GoodsCommentCompleteEvent {
//商品 //商品
private final GoodsSkuService goodsSkuService; @Autowired
private GoodsSkuService goodsSkuService;
@Override @Override

View File

@ -23,13 +23,15 @@ import org.springframework.stereotype.Service;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
*/ */
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberPointExecute implements MemberRegisterEvent, GoodsCommentCompleteEvent { public class MemberPointExecute implements MemberRegisterEvent, GoodsCommentCompleteEvent {
//配置 //配置
private final SettingService settingService; @Autowired
private SettingService settingService;
//会员 //会员
private final MemberService memberService; @Autowired
private MemberService memberService;
@Override @Override
public void memberRegister(Member member) { public void memberRegister(Member member) {

View File

@ -15,10 +15,10 @@ import org.springframework.stereotype.Service;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
*/ */
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberWalletExecute implements MemberRegisterEvent { public class MemberWalletExecute implements MemberRegisterEvent {
private final MemberWalletService memberWalletService; @Autowired
private MemberWalletService memberWalletService;
@Override @Override
public void memberRegister(Member member) { public void memberRegister(Member member) {

View File

@ -31,12 +31,12 @@ import java.util.Map;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
**/ **/
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class NoticeMessageExecute implements TradeEvent, OrderStatusChangeEvent, AfterSaleStatusChangeEvent, MemberPointChangeEvent, MemberWithdrawalEvent { public class NoticeMessageExecute implements TradeEvent, OrderStatusChangeEvent, AfterSaleStatusChangeEvent, MemberPointChangeEvent, MemberWithdrawalEvent {
private final NoticeMessageService noticeMessageService; @Autowired
private NoticeMessageService noticeMessageService;
private final OrderService orderService; @Autowired
private OrderService orderService;
@Override @Override

View File

@ -22,10 +22,10 @@ import java.util.List;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
**/ **/
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderCreateReceiptExecute implements TradeEvent { public class OrderCreateReceiptExecute implements TradeEvent {
private final ReceiptService receiptService; @Autowired
private ReceiptService receiptService;
@Override @Override
public void orderCreate(TradeDTO tradeDTO) { public void orderCreate(TradeDTO tradeDTO) {

View File

@ -22,13 +22,14 @@ import org.springframework.stereotype.Service;
* @date 2021-03-13 16:58 * @date 2021-03-13 16:58
*/ */
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PaymentExecute implements OrderStatusChangeEvent { public class PaymentExecute implements OrderStatusChangeEvent {
//支付日志 //支付日志
private final PaymentService paymentService; @Autowired
private PaymentService paymentService;
//订单 //订单
private final OrderService orderService; @Autowired
private OrderService orderService;
@Override @Override
public void orderChange(OrderMessage orderMessage) { public void orderChange(OrderMessage orderMessage) {

View File

@ -12,7 +12,6 @@ import cn.lili.modules.order.order.service.OrderService;
import cn.lili.modules.promotion.entity.dos.PromotionGoods; import cn.lili.modules.promotion.entity.dos.PromotionGoods;
import cn.lili.modules.promotion.entity.enums.PromotionTypeEnum; import cn.lili.modules.promotion.entity.enums.PromotionTypeEnum;
import cn.lili.modules.promotion.service.PromotionGoodsService; import cn.lili.modules.promotion.service.PromotionGoodsService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.script.DefaultRedisScript; import org.springframework.data.redis.core.script.DefaultRedisScript;
@ -28,20 +27,25 @@ import java.util.List;
* @date 2020-07-03 11:20 * @date 2020-07-03 11:20
*/ */
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StockUpdateExecute implements OrderStatusChangeEvent { public class StockUpdateExecute implements OrderStatusChangeEvent {
//Redis //Redis
private final StringRedisTemplate stringRedisTemplate; @Autowired
private final DefaultRedisScript<Boolean> quantityScript; private StringRedisTemplate stringRedisTemplate;
@Autowired
private DefaultRedisScript<Boolean> quantityScript;
//订单 //订单
private final OrderService orderService; @Autowired
private OrderService orderService;
//规格商品 //规格商品
private final GoodsSkuService goodsSkuService; @Autowired
private GoodsSkuService goodsSkuService;
//促销商品 //促销商品
private final PromotionGoodsService promotionGoodsService; @Autowired
private PromotionGoodsService promotionGoodsService;
//缓存 //缓存
private final Cache cache; @Autowired
private Cache cache;
@Override @Override
public void orderChange(OrderMessage orderMessage) { public void orderChange(OrderMessage orderMessage) {

View File

@ -6,7 +6,6 @@ import cn.lili.modules.message.util.WechatMessageUtil;
import cn.lili.modules.order.cart.entity.dto.TradeDTO; import cn.lili.modules.order.cart.entity.dto.TradeDTO;
import cn.lili.modules.order.order.entity.dto.OrderMessage; import cn.lili.modules.order.order.entity.dto.OrderMessage;
import cn.lili.modules.order.order.entity.vo.OrderVO; import cn.lili.modules.order.order.entity.vo.OrderVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -20,7 +19,6 @@ import org.springframework.stereotype.Service;
*/ */
@Slf4j @Slf4j
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class WechatMessageExecute implements OrderStatusChangeEvent, TradeEvent { public class WechatMessageExecute implements OrderStatusChangeEvent, TradeEvent {
@Autowired @Autowired

View File

@ -4,7 +4,6 @@ import cn.hutool.json.JSONUtil;
import cn.lili.common.rocketmq.tags.AfterSaleTagsEnum; import cn.lili.common.rocketmq.tags.AfterSaleTagsEnum;
import cn.lili.event.AfterSaleStatusChangeEvent; import cn.lili.event.AfterSaleStatusChangeEvent;
import cn.lili.modules.order.order.entity.dos.AfterSale; import cn.lili.modules.order.order.entity.dos.AfterSale;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt; import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
@ -22,12 +21,12 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.after-sale-topic}", consumerGroup = "${lili.data.rocketmq.after-sale-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.after-sale-topic}", consumerGroup = "${lili.data.rocketmq.after-sale-group}")
public class AfterSaleMessageListener implements RocketMQListener<MessageExt> { public class AfterSaleMessageListener implements RocketMQListener<MessageExt> {
//售后订单状态 //售后订单状态
private final List<AfterSaleStatusChangeEvent> afterSaleStatusChangeEvents; @Autowired
private List<AfterSaleStatusChangeEvent> afterSaleStatusChangeEvents;
@Override @Override
public void onMessage(MessageExt messageExt) { public void onMessage(MessageExt messageExt) {

View File

@ -36,24 +36,30 @@ import java.util.List;
**/ **/
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.goods-topic}", consumerGroup = "${lili.data.rocketmq.goods-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.goods-topic}", consumerGroup = "${lili.data.rocketmq.goods-group}")
public class GoodsMessageListener implements RocketMQListener<MessageExt> { public class GoodsMessageListener implements RocketMQListener<MessageExt> {
//ES商品 //ES商品
private final EsGoodsIndexService goodsIndexService; @Autowired
private EsGoodsIndexService goodsIndexService;
//店铺 //店铺
private final StoreService storeService; @Autowired
private StoreService storeService;
//商品 //商品
private final GoodsService goodsService; @Autowired
private GoodsService goodsService;
//商品 //商品
private final GoodsSkuService goodsSkuService; @Autowired
private GoodsSkuService goodsSkuService;
//用户足迹 //用户足迹
private final FootprintService footprintService; @Autowired
private FootprintService footprintService;
//商品收藏 //商品收藏
private final GoodsCollectionService goodsCollectionService; @Autowired
private GoodsCollectionService goodsCollectionService;
//商品评价 //商品评价
private final List<GoodsCommentCompleteEvent> goodsCommentCompleteEvents; @Autowired
private List<GoodsCommentCompleteEvent> goodsCommentCompleteEvents;
@Override @Override
public void onMessage(MessageExt messageExt) { public void onMessage(MessageExt messageExt) {

View File

@ -10,7 +10,6 @@ import cn.lili.modules.member.entity.dos.MemberSign;
import cn.lili.modules.member.entity.dto.MemberPointMessage; import cn.lili.modules.member.entity.dto.MemberPointMessage;
import cn.lili.modules.member.entity.dto.MemberWithdrawalMessage; import cn.lili.modules.member.entity.dto.MemberWithdrawalMessage;
import cn.lili.modules.member.service.MemberSignService; import cn.lili.modules.member.service.MemberSignService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt; import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
@ -28,18 +27,21 @@ import java.util.List;
**/ **/
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.member-topic}", consumerGroup = "${lili.data.rocketmq.member-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.member-topic}", consumerGroup = "${lili.data.rocketmq.member-group}")
public class MemberMessageListener implements RocketMQListener<MessageExt> { public class MemberMessageListener implements RocketMQListener<MessageExt> {
//会员签到 //会员签到
private final MemberSignService memberSignService; @Autowired
private MemberSignService memberSignService;
//会员积分变化 //会员积分变化
private final List<MemberPointChangeEvent> memberPointChangeEvents; @Autowired
private List<MemberPointChangeEvent> memberPointChangeEvents;
//会员提现 //会员提现
private final List<MemberWithdrawalEvent> memberWithdrawalEvents; @Autowired
private List<MemberWithdrawalEvent> memberWithdrawalEvents;
//会员注册 //会员注册
private final List<MemberRegisterEvent> memberSignEvents; @Autowired
private List<MemberRegisterEvent> memberSignEvents;
@Override @Override

View File

@ -17,12 +17,12 @@ import org.springframework.stereotype.Component;
* @since 2020/12/9 * @since 2020/12/9
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.notice-topic}", consumerGroup = "${lili.data.rocketmq.notice-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.notice-topic}", consumerGroup = "${lili.data.rocketmq.notice-group}")
public class NoticeMessageListener implements RocketMQListener<MessageExt> { public class NoticeMessageListener implements RocketMQListener<MessageExt> {
//站内信 //站内信
private final NoticeMessageService noticeMessageService; @Autowired
private NoticeMessageService noticeMessageService;
@Override @Override
public void onMessage(MessageExt messageExt) { public void onMessage(MessageExt messageExt) {

View File

@ -30,18 +30,21 @@ import java.util.List;
* @since 2020/12/9 * @since 2020/12/9
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.notice-send-topic}", consumerGroup = "${lili.data.rocketmq.notice-send-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.notice-send-topic}", consumerGroup = "${lili.data.rocketmq.notice-send-group}")
public class NoticeSendMessageListener implements RocketMQListener<MessageExt> { public class NoticeSendMessageListener implements RocketMQListener<MessageExt> {
//会员 //会员
private final MemberMapper memberMapper; @Autowired
private MemberMapper memberMapper;
//短信 //短信
private final SmsUtil smsUtil; @Autowired
private SmsUtil smsUtil;
//店铺消息 //店铺消息
private final StoreMessageService storeMessageService; @Autowired
private StoreMessageService storeMessageService;
//店铺 //店铺
private final StoreService storeService; @Autowired
private StoreService storeService;
@Override @Override
public void onMessage(MessageExt messageExt) { public void onMessage(MessageExt messageExt) {

View File

@ -7,7 +7,6 @@ import cn.lili.event.OrderStatusChangeEvent;
import cn.lili.event.TradeEvent; import cn.lili.event.TradeEvent;
import cn.lili.modules.order.cart.entity.dto.TradeDTO; import cn.lili.modules.order.cart.entity.dto.TradeDTO;
import cn.lili.modules.order.order.entity.dto.OrderMessage; import cn.lili.modules.order.order.entity.dto.OrderMessage;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt; import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
@ -25,16 +24,18 @@ import java.util.List;
**/ **/
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.order-topic}", consumerGroup = "${lili.data.rocketmq.order-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.order-topic}", consumerGroup = "${lili.data.rocketmq.order-group}")
public class OrderMessageListener implements RocketMQListener<MessageExt> { public class OrderMessageListener implements RocketMQListener<MessageExt> {
//交易 //交易
private final List<TradeEvent> tradeEvent; @Autowired
private List<TradeEvent> tradeEvent;
//订单状态 //订单状态
private final List<OrderStatusChangeEvent> orderStatusChangeEvents; @Autowired
private List<OrderStatusChangeEvent> orderStatusChangeEvents;
//缓存 //缓存
private final Cache<Object> cache; @Autowired
private Cache<Object> cache;
@Override @Override
public void onMessage(MessageExt messageExt) { public void onMessage(MessageExt messageExt) {

View File

@ -19,13 +19,14 @@ import java.util.List;
* @date 2021/2/18 3:45 下午 * @date 2021/2/18 3:45 下午
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BillExecute implements EveryDayExecute { public class BillExecute implements EveryDayExecute {
//结算单 //结算单
private final BillService billService; @Autowired
private BillService billService;
//店铺详情 //店铺详情
private final StoreDetailMapper storeDetailMapper; @Autowired
private StoreDetailMapper storeDetailMapper;
/** /**
* 1.查询今日待结算的商家 * 1.查询今日待结算的商家

View File

@ -7,7 +7,6 @@ import cn.lili.modules.member.entity.dos.MemberEvaluation;
import cn.lili.modules.member.mapper.MemberEvaluationMapper; import cn.lili.modules.member.mapper.MemberEvaluationMapper;
import cn.lili.timetask.handler.EveryDayExecute; import cn.lili.timetask.handler.EveryDayExecute;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -21,12 +20,13 @@ import java.util.Map;
* @date 2021/3/18 3:23 下午 * @date 2021/3/18 3:23 下午
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsExecute implements EveryDayExecute { public class GoodsExecute implements EveryDayExecute {
//会员评价 //会员评价
private final MemberEvaluationMapper memberEvaluationMapper; @Autowired
private MemberEvaluationMapper memberEvaluationMapper;
//商品 //商品
private final GoodsMapper goodsMapper; @Autowired
private GoodsMapper goodsMapper;
/** /**
* 查询已上架的商品的评价数量并赋值 * 查询已上架的商品的评价数量并赋值

View File

@ -28,12 +28,14 @@ import java.util.stream.Collectors;
**/ **/
@Slf4j @Slf4j
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CancelOrderTaskExecute implements EveryMinuteExecute { public class CancelOrderTaskExecute implements EveryMinuteExecute {
//订单 //订单
private final OrderService orderService; @Autowired
private OrderService orderService;
//设置 //设置
private final SettingService settingService; @Autowired
private SettingService settingService;
@Override @Override

View File

@ -19,7 +19,6 @@ import cn.lili.modules.system.service.SettingService;
import cn.lili.timetask.handler.EveryDayExecute; import cn.lili.timetask.handler.EveryDayExecute;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -34,17 +33,21 @@ import java.util.stream.Collectors;
**/ **/
@Slf4j @Slf4j
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderEveryDayTaskExecute implements EveryDayExecute { public class OrderEveryDayTaskExecute implements EveryDayExecute {
//订单 //订单
private final OrderService orderService; @Autowired
private OrderService orderService;
//订单货物 //订单货物
private final OrderItemService orderItemService; @Autowired
private OrderItemService orderItemService;
//设置 //设置
private final SettingService settingService; @Autowired
private SettingService settingService;
//会员评价 //会员评价
private final MemberEvaluationService memberEvaluationService; @Autowired
private MemberEvaluationService memberEvaluationService;
/** /**
* 执行每日任务 * 执行每日任务

View File

@ -29,21 +29,27 @@ import java.util.List;
* @date 2021/3/18 3:23 下午 * @date 2021/3/18 3:23 下午
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PromotionEverydayExecute implements EveryDayExecute { public class PromotionEverydayExecute implements EveryDayExecute {
//Mongo //Mongo
private final MongoTemplate mongoTemplate; @Autowired
private MongoTemplate mongoTemplate;
//满额活动 //满额活动
private final FullDiscountService fullDiscountService; @Autowired
private FullDiscountService fullDiscountService;
//拼团 //拼团
private final PintuanService pintuanService; @Autowired
private PintuanService pintuanService;
//优惠券 //优惠券
private final CouponService couponService; @Autowired
private CouponService couponService;
//会员优惠券 //会员优惠券
private final MemberCouponService memberCouponService; @Autowired
private MemberCouponService memberCouponService;
//促销商品 //促销商品
private final PromotionGoodsService promotionGoodsService; @Autowired
private PromotionGoodsService promotionGoodsService;
/** /**

View File

@ -3,7 +3,6 @@ package cn.lili.timetask.handler.impl.statistics;
import cn.lili.modules.statistics.model.dos.MemberStatisticsData; import cn.lili.modules.statistics.model.dos.MemberStatisticsData;
import cn.lili.modules.statistics.service.MemberStatisticsDataService; import cn.lili.modules.statistics.service.MemberStatisticsDataService;
import cn.lili.timetask.handler.EveryDayExecute; import cn.lili.timetask.handler.EveryDayExecute;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -19,11 +18,11 @@ import java.util.Date;
*/ */
@Slf4j @Slf4j
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberStatisticsExecute implements EveryDayExecute { public class MemberStatisticsExecute implements EveryDayExecute {
//会员统计 //会员统计
private final MemberStatisticsDataService memberStatisticsDataService; @Autowired
private MemberStatisticsDataService memberStatisticsDataService;
@Override @Override
public void execute() { public void execute() {

View File

@ -6,7 +6,6 @@ import cn.lili.common.security.enums.UserEnums;
import cn.lili.config.properties.StatisticsProperties; import cn.lili.config.properties.StatisticsProperties;
import cn.lili.modules.statistics.model.vo.OnlineMemberVO; import cn.lili.modules.statistics.model.vo.OnlineMemberVO;
import cn.lili.timetask.handler.EveryHourExecute; import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -23,13 +22,14 @@ import java.util.stream.Collectors;
* @date 2021-02-21 09:47 * @date 2021-02-21 09:47
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OnlineMemberStatistics implements EveryHourExecute { public class OnlineMemberStatistics implements EveryHourExecute {
//缓存 //缓存
private final Cache cache; @Autowired
private Cache cache;
//统计小时 //统计小时
private final StatisticsProperties statisticsProperties; @Autowired
private StatisticsProperties statisticsProperties;
@Override @Override

View File

@ -24,12 +24,13 @@ import java.util.List;
* @date 2021/3/15 5:30 下午 * @date 2021/3/15 5:30 下午
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreRatingExecute implements EveryDayExecute { public class StoreRatingExecute implements EveryDayExecute {
//店铺 //店铺
private final StoreService storeService; @Autowired
private StoreService storeService;
//会员评价 //会员评价
private final MemberEvaluationMapper memberEvaluationMapper; @Autowired
private MemberEvaluationMapper memberEvaluationMapper;
@Override @Override

View File

@ -8,7 +8,6 @@ import cn.lili.modules.statistics.model.dos.PlatformViewData;
import cn.lili.modules.statistics.service.PlatformViewDataService; import cn.lili.modules.statistics.service.PlatformViewDataService;
import cn.lili.timetask.handler.EveryDayExecute; import cn.lili.timetask.handler.EveryDayExecute;
import lombok.Data; import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -28,12 +27,13 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PageViewStatisticsExecute implements EveryDayExecute { public class PageViewStatisticsExecute implements EveryDayExecute {
//缓存 //缓存
private final Cache cache; @Autowired
private Cache cache;
//平台PV统计 //平台PV统计
private final PlatformViewDataService platformViewDataService; @Autowired
private PlatformViewDataService platformViewDataService;
@Override @Override
public void execute() { public void execute() {

View File

@ -6,7 +6,6 @@ import cn.lili.common.trigger.interfaces.TimeTriggerExecutor;
import cn.lili.common.trigger.model.TimeTriggerMsg; import cn.lili.common.trigger.model.TimeTriggerMsg;
import cn.lili.common.trigger.util.TimeTriggerUtil; import cn.lili.common.trigger.util.TimeTriggerUtil;
import cn.lili.common.utils.SpringContextUtil; import cn.lili.common.utils.SpringContextUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener; import org.apache.rocketmq.spring.core.RocketMQListener;
@ -21,11 +20,10 @@ import org.springframework.stereotype.Component;
*/ */
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.promotion-topic}", consumerGroup = "${lili.data.rocketmq.promotion-group}") @RocketMQMessageListener(topic = "${lili.data.rocketmq.promotion-topic}", consumerGroup = "${lili.data.rocketmq.promotion-group}")
public class TimeTriggerConsumer implements RocketMQListener<TimeTriggerMsg> { public class TimeTriggerConsumer implements RocketMQListener<TimeTriggerMsg> {
@Autowired
private final Cache<Integer> cache; private Cache<Integer> cache;
@Override @Override
public void onMessage(TimeTriggerMsg timeTriggerMsg) { public void onMessage(TimeTriggerMsg timeTriggerMsg) {

View File

@ -26,16 +26,19 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component(TimeExecuteConstant.PROMOTION_EXECUTOR) @Component(TimeExecuteConstant.PROMOTION_EXECUTOR)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PromotionTimeTriggerExecutor implements TimeTriggerExecutor { public class PromotionTimeTriggerExecutor implements TimeTriggerExecutor {
//促销 //促销
private final PromotionService promotionService; @Autowired
private PromotionService promotionService;
//Rocketmq //Rocketmq
private final RocketmqCustomProperties rocketmqCustomProperties; @Autowired
private RocketmqCustomProperties rocketmqCustomProperties;
//延时任务 //延时任务
private final TimeTrigger timeTrigger; @Autowired
private TimeTrigger timeTrigger;
//订单 //订单
private final OrderService orderService; @Autowired
private OrderService orderService;
@Override @Override

View File

@ -10,7 +10,6 @@ import cn.lili.common.utils.ThreadPoolUtil;
import cn.lili.modules.base.entity.systemlog.SystemLogVO; import cn.lili.modules.base.entity.systemlog.SystemLogVO;
import cn.lili.modules.connect.util.IpUtils; import cn.lili.modules.connect.util.IpUtils;
import cn.lili.modules.permission.service.SystemLogService; import cn.lili.modules.permission.service.SystemLogService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint; import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.AfterReturning;
@ -35,7 +34,6 @@ import java.util.Map;
@Aspect @Aspect
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SystemLogAspect { public class SystemLogAspect {
/** /**
@ -43,12 +41,12 @@ public class SystemLogAspect {
*/ */
private static final ThreadLocal<Date> beginTimeThreadLocal = new NamedThreadLocal<>("SYSTEM-LOG"); private static final ThreadLocal<Date> beginTimeThreadLocal = new NamedThreadLocal<>("SYSTEM-LOG");
@Autowired
private final SystemLogService systemLogService; private SystemLogService systemLogService;
@Autowired
private final HttpServletRequest request; private HttpServletRequest request;
@Autowired
private final IpHelper ipHelper; private IpHelper ipHelper;
/** /**
* Controller层切点,注解方式 * Controller层切点,注解方式
@ -129,9 +127,10 @@ public class SystemLogAspect {
* 保存日志 * 保存日志
*/ */
private static class SaveSystemLogThread implements Runnable { private static class SaveSystemLogThread implements Runnable {
@Autowired
private final SystemLogVO systemLogVO; private SystemLogVO systemLogVO;
private final SystemLogService systemLogService; @Autowired
private SystemLogService systemLogService;
public SaveSystemLogThread(SystemLogVO systemLogVO, SystemLogService systemLogService) { public SaveSystemLogThread(SystemLogVO systemLogVO, SystemLogService systemLogService) {
this.systemLogVO = systemLogVO; this.systemLogVO = systemLogVO;

View File

@ -1,6 +1,5 @@
package cn.lili.common.security.context; package cn.lili.common.security.context;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner; import org.springframework.boot.ApplicationRunner;
@ -15,13 +14,13 @@ import org.springframework.stereotype.Component;
* @since 2020/11/14 20:30 * @since 2020/11/14 20:30
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserContextInit implements ApplicationRunner { public class UserContextInit implements ApplicationRunner {
/** /**
* 用户信息holder认证信息的获取者 * 用户信息holder认证信息的获取者
*/ */
private final AuthenticationHandler authenticationHandler; @Autowired
private AuthenticationHandler authenticationHandler;
/** /**
* 在项目加载时指定认证信息获取者 * 在项目加载时指定认证信息获取者

View File

@ -10,11 +10,11 @@ import cn.lili.common.sms.AliSmsUtil;
import cn.lili.common.sms.SmsUtil; import cn.lili.common.sms.SmsUtil;
import cn.lili.common.utils.CommonUtil; import cn.lili.common.utils.CommonUtil;
import cn.lili.common.verification.enums.VerificationEnums; import cn.lili.common.verification.enums.VerificationEnums;
import cn.lili.modules.message.entity.dos.SmsSign;
import cn.lili.modules.message.entity.dos.SmsTemplate;
import cn.lili.modules.connect.util.Base64Utils; import cn.lili.modules.connect.util.Base64Utils;
import cn.lili.modules.member.entity.dos.Member; import cn.lili.modules.member.entity.dos.Member;
import cn.lili.modules.member.service.MemberService; import cn.lili.modules.member.service.MemberService;
import cn.lili.modules.message.entity.dos.SmsSign;
import cn.lili.modules.message.entity.dos.SmsTemplate;
import cn.lili.modules.system.entity.dos.Setting; import cn.lili.modules.system.entity.dos.Setting;
import cn.lili.modules.system.entity.dto.SmsSetting; import cn.lili.modules.system.entity.dto.SmsSetting;
import cn.lili.modules.system.entity.enums.SettingEnum; import cn.lili.modules.system.entity.enums.SettingEnum;
@ -23,7 +23,6 @@ import com.aliyun.dysmsapi20170525.models.*;
import com.aliyun.teaopenapi.models.Config; import com.aliyun.teaopenapi.models.Config;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.xkcoding.http.util.StringUtil; import com.xkcoding.http.util.StringUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -43,14 +42,14 @@ import java.util.Map;
*/ */
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SmsUtilAliImplService implements SmsUtil, AliSmsUtil { public class SmsUtilAliImplService implements SmsUtil, AliSmsUtil {
private final Cache cache; @Autowired
private Cache cache;
private final SettingService settingService; @Autowired
private SettingService settingService;
private final MemberService memberService; @Autowired
private MemberService memberService;
@Override @Override
public void sendSmsCode(String mobile, VerificationEnums verificationEnums, String uuid) { public void sendSmsCode(String mobile, VerificationEnums verificationEnums, String uuid) {

View File

@ -11,7 +11,6 @@ import cn.lili.config.properties.JWTTokenProperties;
import com.google.gson.Gson; import com.google.gson.Gson;
import io.jsonwebtoken.*; import io.jsonwebtoken.*;
import io.jsonwebtoken.security.SignatureException; import io.jsonwebtoken.security.SignatureException;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -26,12 +25,11 @@ import java.util.concurrent.TimeUnit;
* 2020-11-12 18:44 * 2020-11-12 18:44
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TokenUtil { public class TokenUtil {
@Autowired
private final JWTTokenProperties tokenProperties; private JWTTokenProperties tokenProperties;
@Autowired
private final Cache cache; private Cache cache;
/** /**
* 构建token * 构建token

View File

@ -12,7 +12,6 @@ import cn.lili.modules.permission.entity.dos.AdminUser;
import cn.lili.modules.permission.entity.vo.UserMenuVO; import cn.lili.modules.permission.entity.vo.UserMenuVO;
import cn.lili.modules.permission.service.AdminUserService; import cn.lili.modules.permission.service.AdminUserService;
import cn.lili.modules.permission.service.RoleMenuService; import cn.lili.modules.permission.service.RoleMenuService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -30,21 +29,17 @@ import java.util.Map;
* @since 2020/11/16 10:51 * @since 2020/11/16 10:51
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ManagerTokenGenerate extends AbstractTokenGenerate { public class ManagerTokenGenerate extends AbstractTokenGenerate {
private AdminUserService adminUserService;
private final TokenUtil tokenUtil;
private final RoleMenuService roleMenuService;
private final Cache cache;
@Autowired @Autowired
public void setAdminUserService(AdminUserService adminUserService) { private AdminUserService adminUserService;
this.adminUserService = adminUserService; @Autowired
} private TokenUtil tokenUtil;
@Autowired
private RoleMenuService roleMenuService;
@Autowired
private Cache cache;
@Override @Override
public Token createToken(String username, Boolean longTerm) { public Token createToken(String username, Boolean longTerm) {

View File

@ -9,7 +9,6 @@ import cn.lili.config.context.ThreadContextHolder;
import cn.lili.modules.base.entity.enums.ClientTypeEnum; import cn.lili.modules.base.entity.enums.ClientTypeEnum;
import cn.lili.modules.member.entity.dos.Member; import cn.lili.modules.member.entity.dos.Member;
import cn.lili.modules.member.service.MemberService; import cn.lili.modules.member.service.MemberService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -23,15 +22,13 @@ import java.util.Date;
* @Description: * @Description:
* @since 2020/11/16 10:50 * @since 2020/11/16 10:50
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberTokenGenerate extends AbstractTokenGenerate { public class MemberTokenGenerate extends AbstractTokenGenerate {
@Autowired
private MemberService memberService; private MemberService memberService;
@Autowired
private final TokenUtil tokenUtil; private TokenUtil tokenUtil;
@Override @Override
public Token createToken(String username, Boolean longTerm) { public Token createToken(String username, Boolean longTerm) {
@ -66,9 +63,4 @@ public class MemberTokenGenerate extends AbstractTokenGenerate {
return tokenUtil.refreshToken(refreshToken, UserEnums.MEMBER); return tokenUtil.refreshToken(refreshToken, UserEnums.MEMBER);
} }
@Autowired
public void setMemberService(MemberService memberService) {
this.memberService = memberService;
}
} }

View File

@ -25,24 +25,13 @@ import org.springframework.stereotype.Component;
* @since 2020/11/16 10:51 * @since 2020/11/16 10:51
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreTokenGenerate extends AbstractTokenGenerate { public class StoreTokenGenerate extends AbstractTokenGenerate {
@Autowired
private MemberService memberService; private MemberService memberService;
@Autowired
private StoreService storeService; private StoreService storeService;
private final TokenUtil tokenUtil;
@Autowired @Autowired
public void setMemberService(MemberService memberService) { private TokenUtil tokenUtil;
this.memberService = memberService;
}
@Autowired
public void setStoreService(StoreService storeService) {
this.storeService = storeService;
}
@Override @Override
public Token createToken(String username, Boolean longTerm) { public Token createToken(String username, Boolean longTerm) {

View File

@ -9,7 +9,6 @@ import cn.lili.common.trigger.model.TimeTriggerMsg;
import cn.lili.common.trigger.util.TimeTriggerUtil; import cn.lili.common.trigger.util.TimeTriggerUtil;
import cn.lili.common.utils.DateUtil; import cn.lili.common.utils.DateUtil;
import cn.lili.common.utils.StringUtils; import cn.lili.common.utils.StringUtils;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.core.RocketMQTemplate; import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -23,19 +22,14 @@ import org.springframework.stereotype.Component;
**/ **/
@Component @Component
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RocketmqTimerTrigger implements TimeTrigger { public class RocketmqTimerTrigger implements TimeTrigger {
@Autowired
private final RocketMQTemplate rocketMQTemplate; private RocketMQTemplate rocketMQTemplate;
@Autowired
private final Cache<Integer> cache; private Cache<Integer> cache;
@Autowired
private PromotionDelayQueue promotionDelayQueue; private PromotionDelayQueue promotionDelayQueue;
@Autowired
public void setPromotionDelayQueue(PromotionDelayQueue promotionDelayQueue) {
this.promotionDelayQueue = promotionDelayQueue;
}
@Override @Override
public void add(String executorName, Object param, Long triggerTime, String uniqueKey, String topic) { public void add(String executorName, Object param, Long triggerTime, String uniqueKey, String topic) {

View File

@ -4,8 +4,6 @@ import cn.hutool.json.JSONUtil;
import cn.lili.common.delayqueue.AbstractDelayQueueMachineFactory; import cn.lili.common.delayqueue.AbstractDelayQueueMachineFactory;
import cn.lili.common.trigger.interfaces.TimeTrigger; import cn.lili.common.trigger.interfaces.TimeTrigger;
import cn.lili.common.trigger.model.TimeTriggerMsg; import cn.lili.common.trigger.model.TimeTriggerMsg;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
@ -18,10 +16,9 @@ import org.springframework.stereotype.Component;
* @since 1 * @since 1
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PromotionDelayQueue extends AbstractDelayQueueMachineFactory { public class PromotionDelayQueue extends AbstractDelayQueueMachineFactory {
private final TimeTrigger timeTrigger; private TimeTrigger timeTrigger;
@Override @Override
public void invoke(String jobId) { public void invoke(String jobId) {

View File

@ -1,6 +1,5 @@
package cn.lili.common.utils; package cn.lili.common.utils;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.DefaultTypedTuple; import org.springframework.data.redis.core.DefaultTypedTuple;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
@ -19,10 +18,9 @@ import java.util.concurrent.TimeUnit;
* @since 2020/11/7 * @since 2020/11/7
**/ **/
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RedisUtil { public class RedisUtil {
@Autowired
private final RedisTemplate redisTemplate; private RedisTemplate redisTemplate;
//=============================common============================ //=============================common============================

View File

@ -2,7 +2,6 @@ package cn.lili.common.verification;
import cn.lili.common.cache.Cache; import cn.lili.common.cache.Cache;
import cn.lili.common.cache.CachePrefix; import cn.lili.common.cache.CachePrefix;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -15,10 +14,10 @@ import org.springframework.stereotype.Component;
* @since 2020/11/17 15:43 * @since 2020/11/17 15:43
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class VerificationSDK { public class VerificationSDK {
private final Cache cache; @Autowired
private Cache cache;
/** /**
* 生成一个token 用于获取校验中心的验证码逻辑 * 生成一个token 用于获取校验中心的验证码逻辑

View File

@ -24,11 +24,10 @@ import java.lang.reflect.Method;
@Aspect @Aspect
@Configuration @Configuration
@Slf4j @Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class VerificationInterceptor { public class VerificationInterceptor {
@Autowired
private final VerificationService verificationService; private VerificationService verificationService;
@Before("@annotation(cn.lili.common.verification.aop.annotation.Verification)") @Before("@annotation(cn.lili.common.verification.aop.annotation.Verification)")
public void interceptor(JoinPoint pjp) { public void interceptor(JoinPoint pjp) {

View File

@ -11,7 +11,6 @@ import cn.lili.common.vo.SerializableStream;
import cn.lili.modules.base.entity.dos.VerificationSource; import cn.lili.modules.base.entity.dos.VerificationSource;
import cn.lili.modules.base.entity.vo.VerificationVO; import cn.lili.modules.base.entity.vo.VerificationVO;
import cn.lili.modules.base.service.VerificationSourceService; import cn.lili.modules.base.service.VerificationSourceService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -32,13 +31,12 @@ import java.util.Random;
*/ */
@Slf4j @Slf4j
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class VerificationServiceImpl implements VerificationService { public class VerificationServiceImpl implements VerificationService {
@Autowired
private final VerificationSourceService verificationSourceService; private VerificationSourceService verificationSourceService;
@Autowired
private final Cache cache; private Cache cache;
/** /**
* 创建校验 * 创建校验

View File

@ -15,12 +15,11 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
* @author Chopper * @author Chopper
*/ */
@Configuration @Configuration
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UrlConfiguration implements WebMvcConfigurer { public class UrlConfiguration implements WebMvcConfigurer {
@Autowired
private final IgnoredUrlsProperties ignoredUrlsProperties; private IgnoredUrlsProperties ignoredUrlsProperties;
@Autowired
private final RequestInterceptorAdapter requestInterceptorAdapter; private RequestInterceptorAdapter requestInterceptorAdapter;
@Override @Override
public void addInterceptors(InterceptorRegistry registry) { public void addInterceptors(InterceptorRegistry registry) {

View File

@ -27,13 +27,12 @@ import java.util.*;
*/ */
@Service @Service
@Transactional @Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService { public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService {
/** /**
* 同步请求地址 * 同步请求地址
*/ */
private final String syncUrl = "https://restapi.amap.com/v3/config/district?subdistrict=4&key=e456d77800e2084a326f7b777278f89d"; private String syncUrl = "https://restapi.amap.com/v3/config/district?subdistrict=4&key=e456d77800e2084a326f7b777278f89d";
@Override @Override
public void synchronizationData(String url) { public void synchronizationData(String url) {

View File

@ -23,10 +23,10 @@ import java.util.List;
*/ */
@Service @Service
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class VerificationSourceServiceImpl extends ServiceImpl<VerificationSourceMapper, VerificationSource> implements VerificationSourceService { public class VerificationSourceServiceImpl extends ServiceImpl<VerificationSourceMapper, VerificationSource> implements VerificationSourceService {
private final Cache<VerificationVO> cache; @Autowired
private Cache<VerificationVO> cache;
@Override @Override
public VerificationVO initCache() { public VerificationVO initCache() {

View File

@ -22,10 +22,9 @@ import java.util.List;
*/ */
@Service @Service
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectConfigServiceImpl extends ServiceImpl<ConnectConfigMapper, ConnectConfig> implements ConnectConfigService { public class ConnectConfigServiceImpl extends ServiceImpl<ConnectConfigMapper, ConnectConfig> implements ConnectConfigService {
@Autowired
private final ConnectConfigMapper connectConfigMapper; private ConnectConfigMapper connectConfigMapper;
@Override @Override
public List<ConnectConfigForm> listForms() { public List<ConnectConfigForm> listForms() {

View File

@ -30,7 +30,6 @@ import cn.lili.modules.system.service.SettingService;
import cn.lili.modules.system.utils.HttpUtils; import cn.lili.modules.system.utils.HttpUtils;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -53,26 +52,20 @@ import java.util.concurrent.TimeUnit;
*/ */
@Slf4j @Slf4j
@Service @Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectServiceImpl extends ServiceImpl<ConnectMapper, Connect> implements ConnectService { public class ConnectServiceImpl extends ServiceImpl<ConnectMapper, Connect> implements ConnectService {
@Autowired @Autowired
private SettingService settingService; private SettingService settingService;
@Autowired @Autowired
private MemberService memberService; private MemberService memberService;
@Autowired
private MemberTokenGenerate memberTokenGenerate; private MemberTokenGenerate memberTokenGenerate;
@Autowired
private final Cache cache; private Cache cache;
static boolean AUTO_REGION = true; static boolean AUTO_REGION = true;
@Autowired
public void setMemberTokenGenerate(MemberTokenGenerate memberTokenGenerate) {
this.memberTokenGenerate = memberTokenGenerate;
}
@Override @Override
public Token unionLoginCallback(String type, String unionid, String uuid, boolean longTerm) throws NoPermissionException { public Token unionLoginCallback(String type, String unionid, String uuid, boolean longTerm) throws NoPermissionException {

View File

@ -42,19 +42,18 @@ import java.io.IOException;
* 2020-11-25 21:16 * 2020-11-25 21:16
*/ */
@Component @Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectUtil { public class ConnectUtil {
@Autowired
private final Cache cache; private Cache cache;
@Autowired
private final ConnectService connectService; private ConnectService connectService;
@Autowired
private final SettingService settingService; private SettingService settingService;
@Autowired
private final ApiProperties apiProperties; private ApiProperties apiProperties;
@Autowired
private final DomainProperties domainProperties; private DomainProperties domainProperties;
static String prefix = "/buyer/connect/callback/"; static String prefix = "/buyer/connect/callback/";

View File

@ -43,16 +43,17 @@ import java.util.Date;
*/ */
@Service @Service
@Transactional @Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionCashServiceImpl extends ServiceImpl<DistributionCashMapper, DistributionCash> implements DistributionCashService { public class DistributionCashServiceImpl extends ServiceImpl<DistributionCashMapper, DistributionCash> implements DistributionCashService {
//分销员 //分销员
private final DistributionService distributionService; @Autowired
private DistributionService distributionService;
//会员余额 //会员余额
private final MemberWalletService memberWalletService; @Autowired
private MemberWalletService memberWalletService;
private final RocketMQTemplate rocketMQTemplate; @Autowired
private RocketMQTemplate rocketMQTemplate;
private final RocketmqCustomProperties rocketmqCustomProperties; @Autowired
private RocketmqCustomProperties rocketmqCustomProperties;
@Override @Override
public Boolean cash(Double applyMoney) { public Boolean cash(Double applyMoney) {

View File

@ -19,7 +19,6 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -33,11 +32,11 @@ import org.springframework.transaction.annotation.Transactional;
*/ */
@Service @Service
@Transactional @Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionGoodsServiceImpl extends ServiceImpl<DistributionGoodsMapper, DistributionGoods> implements DistributionGoodsService { public class DistributionGoodsServiceImpl extends ServiceImpl<DistributionGoodsMapper, DistributionGoods> implements DistributionGoodsService {
//分销商品 //分销商品
private final DistributionGoodsMapper distributionGoodsMapper; @Autowired
private DistributionGoodsMapper distributionGoodsMapper;
//分销员 //分销员
@Autowired @Autowired
private DistributionService distributionService; private DistributionService distributionService;

View File

@ -40,17 +40,20 @@ import java.util.List;
*/ */
@Service @Service
@Transactional @Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionOrderServiceImpl extends ServiceImpl<DistributionOrderMapper, DistributionOrder> implements DistributionOrderService { public class DistributionOrderServiceImpl extends ServiceImpl<DistributionOrderMapper, DistributionOrder> implements DistributionOrderService {
//订单 //订单
private final OrderService orderService; @Autowired
private OrderService orderService;
//店铺流水 //店铺流水
private final StoreFlowService storeFlowService; @Autowired
private StoreFlowService storeFlowService;
//分销员 //分销员
private final DistributionService distributionService; @Autowired
private DistributionService distributionService;
//系统设置 //系统设置
private final SettingService settingService; @Autowired
private SettingService settingService;
@Override @Override
public IPage<DistributionOrder> getDistributionOrderPage(DistributionOrderSearchParams distributionOrderSearchParams) { public IPage<DistributionOrder> getDistributionOrderPage(DistributionOrderSearchParams distributionOrderSearchParams) {

View File

@ -18,11 +18,11 @@ import org.springframework.transaction.annotation.Transactional;
*/ */
@Service @Service
@Transactional @Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionSelectedGoodsServiceImpl extends ServiceImpl<DistributionSelectedGoodsMapper, DistributionSelectedGoods> implements DistributionSelectedGoodsService { public class DistributionSelectedGoodsServiceImpl extends ServiceImpl<DistributionSelectedGoodsMapper, DistributionSelectedGoods> implements DistributionSelectedGoodsService {
//分销员 //分销员
private final DistributionService distributionService; @Autowired
private DistributionService distributionService;
@Override @Override
public boolean add(String distributionGoodsId) { public boolean add(String distributionGoodsId) {
//检查分销功能开关 //检查分销功能开关

Some files were not shown because too many files have changed in this diff Show More