去除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
@Api(tags = "买家端,分销员接口")
@RequestMapping("/buyer/distribution")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionBuyerController {
/**
* 分销员
*/
private final DistributionService distributionService;
@Autowired
private DistributionService distributionService;
/**
* 分销员订单
*/
private final DistributionOrderService distributionOrderService;
@Autowired
private DistributionOrderService distributionOrderService;
//申请分销员
@ApiOperation(value = "申请分销员")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -36,21 +36,23 @@ import javax.validation.constraints.Pattern;
@RestController
@Api(tags = "买家端,会员余额接口")
@RequestMapping("/buyer/members/wallet")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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
@ApiOperation(value = "查询会员预存款余额")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -32,14 +32,16 @@ import java.io.IOException;
@RestController
@Api(tags = "买家端,web联合登录")
@RequestMapping("/buyer/connect")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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}")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -36,21 +35,23 @@ import java.util.List;
@RestController
@RequestMapping("/buyer/store")
@Api(tags = "买家端,店铺接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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 = "获取店铺列表分页")
@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.AfterSaleSearchParams;
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.AfterSaleService;
import cn.lili.modules.store.entity.dto.StoreAfterSaleAddressDTO;
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 io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*;
@ -36,23 +35,23 @@ import java.util.List;
@RestController
@Api(tags = "买家端,售后管理接口")
@RequestMapping("/buyer/afterSale")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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 = "查看售后服务详情")
@ApiImplicitParam(name = "sn", value = "售后单号", required = true, paramType = "path")

View File

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

View File

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

View File

@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -34,18 +33,19 @@ import javax.validation.Valid;
@RestController
@Api(tags = "买家端,交易投诉接口")
@RequestMapping("/buyer/complain")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderComplaintBuyerController {
/**
* 交易投诉
*/
private final OrderComplaintService orderComplaintService;
@Autowired
private OrderComplaintService orderComplaintService;
/**
* 交易投诉沟通
*/
private final OrderComplaintCommunicationService orderComplaintCommunicationService;
@Autowired
private OrderComplaintCommunicationService orderComplaintCommunicationService;
@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 io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -25,10 +24,10 @@ import javax.validation.Valid;
@RestController
@Api(tags = "买家端,发票接口")
@RequestMapping("/buyer/trade/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ReceiptBuyerController {
private final ReceiptService receiptService;
@Autowired
private ReceiptService receiptService;
@ApiOperation(value = "获取发票详情")
@GetMapping("/{id}")

View File

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

View File

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

View File

@ -13,6 +13,7 @@ import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.Jwts;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
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.utils.SpringContextUtil;
import cn.lili.config.properties.IgnoredUrlsProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@ -27,23 +26,22 @@ import org.springframework.web.cors.CorsConfigurationSource;
@Slf4j
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BuyerSecurityConfig extends WebSecurityConfigurerAdapter {
/**
* 忽略验权配置
*/
private final IgnoredUrlsProperties ignoredUrlsProperties;
@Autowired
private IgnoredUrlsProperties ignoredUrlsProperties;
/**
* spring security - 权限不足处理
*/
private final CustomAccessDeniedHandler accessDeniedHandler;
@Autowired
private CustomAccessDeniedHandler accessDeniedHandler;
private final Cache<String> cache;
@Autowired
private Cache<String> cache;
@Override
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.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -33,12 +32,13 @@ import java.util.List;
@RestController
@Api(tags = "文件管理管理接口")
@RequestMapping("/common/file")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FileController {
private final FileService fileService;
@Autowired
private FileService fileService;
private final Cache cache;
@Autowired
private Cache cache;
@ApiOperation(value = "获取自己的图片资源")
@GetMapping

View File

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

View File

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

View File

@ -8,7 +8,6 @@ import cn.lili.common.verification.service.VerificationService;
import cn.lili.common.vo.ResultMessage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -21,11 +20,10 @@ import org.springframework.web.bind.annotation.*;
@RequestMapping("/common/slider")
@RestController
@Api(tags = "滑块验证码接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SliderImageController {
private final VerificationService verificationService;
@Autowired
private VerificationService verificationService;
//一分钟同一个ip请求10次
@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.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -24,12 +23,12 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "短信验证码接口")
@RequestMapping("/common/sms")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SmsController {
private final SmsUtil smsUtil;
private final VerificationService verificationService;
@Autowired
private SmsUtil smsUtil;
@Autowired
private VerificationService verificationService;
//一分钟同一个ip请求1次
@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 io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@ -41,16 +40,16 @@ import java.io.InputStream;
@RestController
@Api(tags = "文件上传接口")
@RequestMapping("/common/upload")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UploadController {
private final FileService fileService;
private final SettingService settingService;
private final FileManagerPlugin fileManagerPlugin;
private final Cache cache;
@Autowired
private FileService fileService;
@Autowired
private SettingService settingService;
@Autowired
private FileManagerPlugin fileManagerPlugin;
@Autowired
private Cache cache;
@ApiOperation(value = "文件上传")
@PostMapping(value = "/file")

View File

@ -3,7 +3,6 @@ package cn.lili.controller.security;
import cn.lili.common.cache.Cache;
import cn.lili.common.security.CustomAccessDeniedHandler;
import cn.lili.config.properties.IgnoredUrlsProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@ -24,24 +23,23 @@ import org.springframework.web.cors.CorsConfigurationSource;
@Slf4j
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CommonSecurityConfig extends WebSecurityConfigurerAdapter {
/**
* 忽略验权配置
*/
private final IgnoredUrlsProperties ignoredUrlsProperties;
@Autowired
private IgnoredUrlsProperties ignoredUrlsProperties;
/**
* spring security - 权限不足处理
*/
private final CustomAccessDeniedHandler accessDeniedHandler;
private final Cache<String> cache;
private final CorsConfigurationSource corsConfigurationSource;
@Autowired
private CustomAccessDeniedHandler accessDeniedHandler;
@Autowired
private Cache<String> cache;
@Autowired
private CorsConfigurationSource corsConfigurationSource;
@Override
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.timetask.handler.EveryDayExecute;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -23,13 +22,14 @@ import org.springframework.stereotype.Service;
* @date 2020-07-03 11:20
*/
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionOrderExecute implements OrderStatusChangeEvent, EveryDayExecute, AfterSaleStatusChangeEvent {
//分销订单
private final DistributionOrderService distributionOrderService;
@Autowired
private DistributionOrderService distributionOrderService;
//分销订单持久层
private final DistributionOrderMapper distributionOrderMapper;
@Autowired
private DistributionOrderMapper distributionOrderMapper;
@Override

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,13 +22,14 @@ import org.springframework.stereotype.Service;
* @date 2021-03-13 16:58
*/
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PaymentExecute implements OrderStatusChangeEvent {
//支付日志
private final PaymentService paymentService;
@Autowired
private PaymentService paymentService;
//订单
private final OrderService orderService;
@Autowired
private OrderService orderService;
@Override
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.enums.PromotionTypeEnum;
import cn.lili.modules.promotion.service.PromotionGoodsService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.script.DefaultRedisScript;
@ -28,20 +27,25 @@ import java.util.List;
* @date 2020-07-03 11:20
*/
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StockUpdateExecute implements OrderStatusChangeEvent {
//Redis
private final StringRedisTemplate stringRedisTemplate;
private final DefaultRedisScript<Boolean> quantityScript;
@Autowired
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
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.order.entity.dto.OrderMessage;
import cn.lili.modules.order.order.entity.vo.OrderVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -20,7 +19,6 @@ import org.springframework.stereotype.Service;
*/
@Slf4j
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class WechatMessageExecute implements OrderStatusChangeEvent, TradeEvent {
@Autowired

View File

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

View File

@ -36,24 +36,30 @@ import java.util.List;
**/
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.goods-topic}", consumerGroup = "${lili.data.rocketmq.goods-group}")
public class GoodsMessageListener implements RocketMQListener<MessageExt> {
//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
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.MemberWithdrawalMessage;
import cn.lili.modules.member.service.MemberSignService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
@ -28,18 +27,21 @@ import java.util.List;
**/
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.member-topic}", consumerGroup = "${lili.data.rocketmq.member-group}")
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

View File

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

View File

@ -30,18 +30,21 @@ import java.util.List;
* @since 2020/12/9
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.notice-send-topic}", consumerGroup = "${lili.data.rocketmq.notice-send-group}")
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
public void onMessage(MessageExt messageExt) {

View File

@ -7,7 +7,6 @@ import cn.lili.event.OrderStatusChangeEvent;
import cn.lili.event.TradeEvent;
import cn.lili.modules.order.cart.entity.dto.TradeDTO;
import cn.lili.modules.order.order.entity.dto.OrderMessage;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
@ -25,16 +24,18 @@ import java.util.List;
**/
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.order-topic}", consumerGroup = "${lili.data.rocketmq.order-group}")
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
public void onMessage(MessageExt messageExt) {

View File

@ -19,13 +19,14 @@ import java.util.List;
* @date 2021/2/18 3:45 下午
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BillExecute implements EveryDayExecute {
//结算单
private final BillService billService;
@Autowired
private BillService billService;
//店铺详情
private final StoreDetailMapper storeDetailMapper;
@Autowired
private StoreDetailMapper storeDetailMapper;
/**
* 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.timetask.handler.EveryDayExecute;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -21,12 +20,13 @@ import java.util.Map;
* @date 2021/3/18 3:23 下午
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CancelOrderTaskExecute implements EveryMinuteExecute {
//订单
private final OrderService orderService;
@Autowired
private OrderService orderService;
//设置
private final SettingService settingService;
@Autowired
private SettingService settingService;
@Override

View File

@ -19,7 +19,6 @@ import cn.lili.modules.system.service.SettingService;
import cn.lili.timetask.handler.EveryDayExecute;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -34,17 +33,21 @@ import java.util.stream.Collectors;
**/
@Slf4j
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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 下午
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PromotionEverydayExecute implements EveryDayExecute {
//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.service.MemberStatisticsDataService;
import cn.lili.timetask.handler.EveryDayExecute;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -19,11 +18,11 @@ import java.util.Date;
*/
@Slf4j
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberStatisticsExecute implements EveryDayExecute {
//会员统计
private final MemberStatisticsDataService memberStatisticsDataService;
@Autowired
private MemberStatisticsDataService memberStatisticsDataService;
@Override
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.modules.statistics.model.vo.OnlineMemberVO;
import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -23,13 +22,14 @@ import java.util.stream.Collectors;
* @date 2021-02-21 09:47
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OnlineMemberStatistics implements EveryHourExecute {
//缓存
private final Cache cache;
@Autowired
private Cache cache;
//统计小时
private final StatisticsProperties statisticsProperties;
@Autowired
private StatisticsProperties statisticsProperties;
@Override

View File

@ -24,12 +24,13 @@ import java.util.List;
* @date 2021/3/15 5:30 下午
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreRatingExecute implements EveryDayExecute {
//店铺
private final StoreService storeService;
@Autowired
private StoreService storeService;
//会员评价
private final MemberEvaluationMapper memberEvaluationMapper;
@Autowired
private MemberEvaluationMapper memberEvaluationMapper;
@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.timetask.handler.EveryDayExecute;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -28,12 +27,13 @@ import java.util.List;
*/
@Slf4j
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PageViewStatisticsExecute implements EveryDayExecute {
//缓存
private final Cache cache;
@Autowired
private Cache cache;
//平台PV统计
private final PlatformViewDataService platformViewDataService;
@Autowired
private PlatformViewDataService platformViewDataService;
@Override
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.util.TimeTriggerUtil;
import cn.lili.common.utils.SpringContextUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
@ -21,11 +20,10 @@ import org.springframework.stereotype.Component;
*/
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RocketMQMessageListener(topic = "${lili.data.rocketmq.promotion-topic}", consumerGroup = "${lili.data.rocketmq.promotion-group}")
public class TimeTriggerConsumer implements RocketMQListener<TimeTriggerMsg> {
private final Cache<Integer> cache;
@Autowired
private Cache<Integer> cache;
@Override
public void onMessage(TimeTriggerMsg timeTriggerMsg) {

View File

@ -26,16 +26,19 @@ import org.springframework.stereotype.Component;
*/
@Slf4j
@Component(TimeExecuteConstant.PROMOTION_EXECUTOR)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PromotionTimeTriggerExecutor implements TimeTriggerExecutor {
//促销
private final PromotionService promotionService;
@Autowired
private PromotionService promotionService;
//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

View File

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

View File

@ -1,6 +1,5 @@
package cn.lili.common.security.context;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
@ -15,13 +14,13 @@ import org.springframework.stereotype.Component;
* @since 2020/11/14 20:30
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserContextInit implements ApplicationRunner {
/**
* 用户信息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.utils.CommonUtil;
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.member.entity.dos.Member;
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.dto.SmsSetting;
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.google.gson.Gson;
import com.xkcoding.http.util.StringUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -43,14 +42,14 @@ import java.util.Map;
*/
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SmsUtilAliImplService implements SmsUtil, AliSmsUtil {
private final Cache cache;
private final SettingService settingService;
private final MemberService memberService;
@Autowired
private Cache cache;
@Autowired
private SettingService settingService;
@Autowired
private MemberService memberService;
@Override
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 io.jsonwebtoken.*;
import io.jsonwebtoken.security.SignatureException;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -26,12 +25,11 @@ import java.util.concurrent.TimeUnit;
* 2020-11-12 18:44
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TokenUtil {
private final JWTTokenProperties tokenProperties;
private final Cache cache;
@Autowired
private JWTTokenProperties tokenProperties;
@Autowired
private Cache cache;
/**
* 构建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.service.AdminUserService;
import cn.lili.modules.permission.service.RoleMenuService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -30,21 +29,17 @@ import java.util.Map;
* @since 2020/11/16 10:51
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ManagerTokenGenerate extends AbstractTokenGenerate {
private AdminUserService adminUserService;
private final TokenUtil tokenUtil;
private final RoleMenuService roleMenuService;
private final Cache cache;
@Autowired
public void setAdminUserService(AdminUserService adminUserService) {
this.adminUserService = adminUserService;
}
private AdminUserService adminUserService;
@Autowired
private TokenUtil tokenUtil;
@Autowired
private RoleMenuService roleMenuService;
@Autowired
private Cache cache;
@Override
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.member.entity.dos.Member;
import cn.lili.modules.member.service.MemberService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -23,15 +22,13 @@ import java.util.Date;
* @Description:
* @since 2020/11/16 10:50
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberTokenGenerate extends AbstractTokenGenerate {
@Autowired
private MemberService memberService;
private final TokenUtil tokenUtil;
@Autowired
private TokenUtil tokenUtil;
@Override
public Token createToken(String username, Boolean longTerm) {
@ -66,9 +63,4 @@ public class MemberTokenGenerate extends AbstractTokenGenerate {
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
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreTokenGenerate extends AbstractTokenGenerate {
@Autowired
private MemberService memberService;
@Autowired
private StoreService storeService;
private final TokenUtil tokenUtil;
@Autowired
public void setMemberService(MemberService memberService) {
this.memberService = memberService;
}
@Autowired
public void setStoreService(StoreService storeService) {
this.storeService = storeService;
}
private TokenUtil tokenUtil;
@Override
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.utils.DateUtil;
import cn.lili.common.utils.StringUtils;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
@ -23,19 +22,14 @@ import org.springframework.stereotype.Component;
**/
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RocketmqTimerTrigger implements TimeTrigger {
private final RocketMQTemplate rocketMQTemplate;
private final Cache<Integer> cache;
@Autowired
private RocketMQTemplate rocketMQTemplate;
@Autowired
private Cache<Integer> cache;
@Autowired
private PromotionDelayQueue promotionDelayQueue;
@Autowired
public void setPromotionDelayQueue(PromotionDelayQueue promotionDelayQueue) {
this.promotionDelayQueue = promotionDelayQueue;
}
@Override
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.trigger.interfaces.TimeTrigger;
import cn.lili.common.trigger.model.TimeTriggerMsg;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
@ -18,10 +16,9 @@ import org.springframework.stereotype.Component;
* @since 1
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PromotionDelayQueue extends AbstractDelayQueueMachineFactory {
private final TimeTrigger timeTrigger;
private TimeTrigger timeTrigger;
@Override
public void invoke(String jobId) {

View File

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

View File

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

View File

@ -24,11 +24,10 @@ import java.lang.reflect.Method;
@Aspect
@Configuration
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class VerificationInterceptor {
private final VerificationService verificationService;
@Autowired
private VerificationService verificationService;
@Before("@annotation(cn.lili.common.verification.aop.annotation.Verification)")
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.vo.VerificationVO;
import cn.lili.modules.base.service.VerificationSourceService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -32,13 +31,12 @@ import java.util.Random;
*/
@Slf4j
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class VerificationServiceImpl implements VerificationService {
private final VerificationSourceService verificationSourceService;
private final Cache cache;
@Autowired
private VerificationSourceService verificationSourceService;
@Autowired
private Cache cache;
/**
* 创建校验

View File

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

View File

@ -27,13 +27,12 @@ import java.util.*;
*/
@Service
@Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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
public void synchronizationData(String url) {

View File

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

View File

@ -22,10 +22,9 @@ import java.util.List;
*/
@Service
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectConfigServiceImpl extends ServiceImpl<ConnectConfigMapper, ConnectConfig> implements ConnectConfigService {
private final ConnectConfigMapper connectConfigMapper;
@Autowired
private ConnectConfigMapper connectConfigMapper;
@Override
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 com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.beans.factory.annotation.Autowired;
@ -53,26 +52,20 @@ import java.util.concurrent.TimeUnit;
*/
@Slf4j
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectServiceImpl extends ServiceImpl<ConnectMapper, Connect> implements ConnectService {
@Autowired
private SettingService settingService;
@Autowired
private MemberService memberService;
@Autowired
private MemberTokenGenerate memberTokenGenerate;
private final Cache cache;
@Autowired
private Cache cache;
static boolean AUTO_REGION = true;
@Autowired
public void setMemberTokenGenerate(MemberTokenGenerate memberTokenGenerate) {
this.memberTokenGenerate = memberTokenGenerate;
}
@Override
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
*/
@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectUtil {
private final Cache cache;
private final ConnectService connectService;
private final SettingService settingService;
private final ApiProperties apiProperties;
private final DomainProperties domainProperties;
@Autowired
private Cache cache;
@Autowired
private ConnectService connectService;
@Autowired
private SettingService settingService;
@Autowired
private ApiProperties apiProperties;
@Autowired
private DomainProperties domainProperties;
static String prefix = "/buyer/connect/callback/";

View File

@ -43,16 +43,17 @@ import java.util.Date;
*/
@Service
@Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionCashServiceImpl extends ServiceImpl<DistributionCashMapper, DistributionCash> implements DistributionCashService {
//分销员
private final DistributionService distributionService;
@Autowired
private DistributionService distributionService;
//会员余额
private final MemberWalletService memberWalletService;
private final RocketMQTemplate rocketMQTemplate;
private final RocketmqCustomProperties rocketmqCustomProperties;
@Autowired
private MemberWalletService memberWalletService;
@Autowired
private RocketMQTemplate rocketMQTemplate;
@Autowired
private RocketmqCustomProperties rocketmqCustomProperties;
@Override
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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -33,11 +32,11 @@ import org.springframework.transaction.annotation.Transactional;
*/
@Service
@Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionGoodsServiceImpl extends ServiceImpl<DistributionGoodsMapper, DistributionGoods> implements DistributionGoodsService {
//分销商品
private final DistributionGoodsMapper distributionGoodsMapper;
@Autowired
private DistributionGoodsMapper distributionGoodsMapper;
//分销员
@Autowired
private DistributionService distributionService;

View File

@ -40,17 +40,20 @@ import java.util.List;
*/
@Service
@Transactional
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
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
public IPage<DistributionOrder> getDistributionOrderPage(DistributionOrderSearchParams distributionOrderSearchParams) {

View File

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

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