去除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

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

View File

@@ -24,13 +24,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "店铺端,分销订单接口")
@RequestMapping("/store/distributionOrder")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionOrderStoreController {
/**
* 分销订单
*/
private final DistributionOrderService distributionOrderService;
@Autowired
private DistributionOrderService distributionOrderService;
@ApiOperation(value = "获取分销订单列表")
@GetMapping

View File

@@ -29,11 +29,11 @@ import java.util.List;
@Api(tags = "店铺端,分类绑定参数组管理接口")
@RequestMapping("/store/goods/category/parameters")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CategoryParameterGroupStoreController {
private final ParametersService parametersService;
private final CategoryParameterGroupService categoryParameterGroupService;
@Autowired
private ParametersService parametersService;
@Autowired
private CategoryParameterGroupService categoryParameterGroupService;
@ApiOperation(value = "查询某分类下绑定的参数信息")
@GetMapping(value = "/{category_id}")

View File

@@ -30,12 +30,11 @@ import java.util.List;
@Api(tags = "店铺端,商品分类规格接口")
@RequestMapping("/store/goods/category/spec")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CategorySpecificationStoreController {
private final CategorySpecificationService categorySpecificationService;
private final SpecificationService specificationService;
@Autowired
private CategorySpecificationService categorySpecificationService;
@Autowired
private SpecificationService specificationService;
@ApiOperation(value = "查询某分类下绑定的规格信息")

View File

@@ -12,7 +12,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.cache.annotation.CacheConfig;
import org.springframework.transaction.annotation.Transactional;
@@ -34,21 +33,23 @@ import java.util.List;
@RequestMapping("/store/goods/category")
@CacheConfig(cacheNames = "category")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CategoryStoreController {
/**
* 分类
*/
private final CategoryService categoryService;
@Autowired
private CategoryService categoryService;
/**
* 分类品牌
*/
private final CategoryBrandService categoryBrandService;
@Autowired
private CategoryBrandService categoryBrandService;
/**
* 店铺详情
*/
private final StoreDetailService storeDetailService;
@Autowired
private StoreDetailService storeDetailService;
@ApiOperation(value = "获取店铺经营的分类")
@GetMapping(value = "/all")

View File

@@ -27,10 +27,9 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "店铺端,草稿商品接口")
@RequestMapping("/store/draft/goods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DraftGoodsStoreController {
private final DraftGoodsService draftGoodsService;
@Autowired
private DraftGoodsService draftGoodsService;
@ApiOperation(value = "分页获取草稿商品列表")

View File

@@ -11,7 +11,6 @@ import cn.lili.modules.goods.service.GoodsGalleryService;
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.*;
@@ -26,10 +25,9 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,商品相册接口")
@RequestMapping("/store/goodsGallery")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsGalleryController {
private final GoodsGalleryService goodsGalleryService;
@Autowired
private GoodsGalleryService goodsGalleryService;
@ApiOperation(value = "通过id获取")
@GetMapping(value = "/get/{id}")

View File

@@ -10,7 +10,6 @@ import cn.lili.modules.store.service.StoreGoodsLabelService;
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.*;
@@ -26,13 +25,13 @@ import java.util.List;
@Api(tags = "店铺端,店铺分类接口")
@RestController
@RequestMapping("/store/goods/label")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsLabelStoreController {
/**
* 店铺分类
*/
private final StoreGoodsLabelService storeGoodsLabelService;
@Autowired
private StoreGoodsLabelService storeGoodsLabelService;
@ApiOperation(value = "获取当前店铺商品分类列表")
@GetMapping

View File

@@ -37,15 +37,17 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,商品接口")
@RequestMapping("/store/goods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsStoreController {
//商品
private final GoodsService goodsService;
@Autowired
private GoodsService goodsService;
//商品sku
private final GoodsSkuService goodsSkuService;
@Autowired
private GoodsSkuService goodsSkuService;
//店铺详情
private final StoreDetailService storeDetailService;
@Autowired
private StoreDetailService storeDetailService;
@ApiOperation(value = "分页获取商品列表")
@GetMapping(value = "/list")

View File

@@ -27,10 +27,9 @@ import org.springframework.web.bind.annotation.RestController;
@Api(tags = "店铺端,商品计量单位接口")
@RequestMapping("/store/goods/unit")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsUnitStoreController {
private final GoodsUnitService goodsUnitService;
@Autowired
private GoodsUnitService goodsUnitService;
@ApiOperation(value = "分页获取商品计量单位")

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.*;
@@ -27,10 +26,9 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,规格项管理接口")
@RequestMapping("/store/goods/spec-values")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SpecValuesStoreController {
private final SpecValuesService specValuesService;
@Autowired
private SpecValuesService specValuesService;
@GetMapping(value = "/values/{id}")
@ApiImplicitParam(name = "id", value = "规格项ID", required = true, dataType = "String", paramType = "path")

View File

@@ -31,10 +31,9 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,规格管理接口")
@RequestMapping("/store/goods/spec")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SpecificationStoreController {
private final SpecificationService specificationService;
@Autowired
private SpecificationService specificationService;
@GetMapping(value = "/page")

View File

@@ -9,7 +9,6 @@ import cn.lili.modules.member.entity.dos.Member;
import cn.lili.modules.member.service.MemberService;
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;
@@ -25,10 +24,9 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "店铺端,管理员接口")
@RequestMapping("/store/user")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreUserController {
private final MemberService memberService;
@Autowired
private MemberService memberService;
@GetMapping(value = "/info")

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.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -27,13 +26,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "店铺端,文章接口")
@RequestMapping("/store/article")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ArticleStoreController {
/**
* 文章
*/
private final ArticleService articleService;
@Autowired
private ArticleService articleService;
@ApiOperation(value = "分页获取")
@ApiImplicitParams({

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,13 +24,13 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "店铺端,商家登录接口 ")
@RequestMapping("/store/login")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StorePassportController {
/**
* 会员
*/
private final MemberService memberService;
@Autowired
private MemberService memberService;
@ApiOperation(value = "登录接口")

View File

@@ -15,7 +15,6 @@ import cn.lili.modules.promotion.service.CouponService;
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.*;
@@ -31,10 +30,10 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,优惠券接口")
@RequestMapping("/store/promotion/coupon")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CouponStoreController {
private final CouponService couponService;
@Autowired
private CouponService couponService;
@GetMapping
@ApiOperation(value = "获取优惠券列表")

View File

@@ -27,10 +27,10 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "店铺端,满额活动接口")
@RequestMapping("/store/promotion/fullDiscount")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FullDiscountStoreController {
private final FullDiscountService fullDiscountService;
@Autowired
private FullDiscountService fullDiscountService;
@ApiOperation(value = "新增满优惠活动")
@PostMapping(consumes = "application/json", produces = "application/json")

View File

@@ -16,7 +16,6 @@ import cn.lili.modules.promotion.service.PromotionGoodsService;
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.*;
@@ -31,11 +30,12 @@ import java.util.Date;
@RestController
@Api(tags = "店铺端,拼团管理接口")
@RequestMapping("/store/promotion/pintuan")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PintuanStoreController {
private final PintuanService pintuanService;
private final PromotionGoodsService promotionGoodsService;
@Autowired
private PintuanService pintuanService;
@Autowired
private PromotionGoodsService promotionGoodsService;
@GetMapping

View File

@@ -31,11 +31,11 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,限时抢购接口")
@RequestMapping("/store/promotion/seckill")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SeckillStoreController {
private final SeckillService seckillService;
private final SeckillApplyService seckillApplyService;
@Autowired
private SeckillService seckillService;
@Autowired
private SeckillApplyService seckillApplyService;
@GetMapping
@ApiOperation(value = "获取限时抢购列表")

View File

@@ -25,10 +25,9 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,运费模板接口")
@RequestMapping("/store/freightTemplate")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FreightTemplateStoreController {
private final FreightTemplateService freightTemplateService;
@Autowired
private FreightTemplateService freightTemplateService;
@ApiOperation(value = "商家运费模板列表")
@GetMapping

View File

@@ -27,10 +27,9 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "店铺端,日志管理接口")
@RequestMapping("/store/log")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class LogStoreController {
private final SystemLogService systemLogService;
@Autowired
private SystemLogService systemLogService;
@GetMapping(value = "/getAllByPage")
@ApiOperation(value = "分页获取全部")

View File

@@ -26,13 +26,13 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,物流公司接口")
@RequestMapping("/store/logistics")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class LogisticsStoreController {
/**
* 物流公司
*/
private final StoreLogisticsService storeLogisticsService;
@Autowired
private StoreLogisticsService storeLogisticsService;
@ApiOperation(value = "获取商家物流公司列表如果已选择则checked有值")
@GetMapping

View File

@@ -28,13 +28,13 @@ import javax.validation.Valid;
@RestController
@Api(tags = "店铺端,商家地址(自提点)接口")
@RequestMapping("/store/storeAddress")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreAddressController {
/**
* 店铺自提点
*/
private final StoreAddressService storeAddressService;
@Autowired
private StoreAddressService storeAddressService;
@ApiOperation(value = "获取商家自提点分页")
@GetMapping

View File

@@ -29,13 +29,13 @@ import java.util.Map;
@RestController
@Api(tags = "店铺端,消息接口")
@RequestMapping("/store/message")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreMessageController {
/**
* 商家消息
*/
private final StoreMessageService storeMessageService;
@Autowired
private StoreMessageService storeMessageService;
@ApiOperation(value = "获取商家消息")
@ApiImplicitParam(name = "status", value = "状态", required = true, paramType = "query")

View File

@@ -29,10 +29,9 @@ import javax.validation.Valid;
@RestController
@Api(tags = "店铺端,页面接口")
@RequestMapping("/store/pageData")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StorePageDataController {
private final PageDataService pageDataService;
@Autowired
private PageDataService pageDataService;
@ApiOperation(value = "页面列表")
@ApiImplicitParam(name = "pageClientType", value = "客户端类型", required = true, dataType = "String", paramType = "path")

View File

@@ -13,7 +13,6 @@ import cn.lili.modules.store.service.StoreService;
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.PutMapping;
@@ -31,17 +30,18 @@ import javax.validation.Valid;
@RestController
@Api(tags = "店铺端,店铺设置接口")
@RequestMapping("/store/settings")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreSettingsController {
/**
* 店铺
*/
private final StoreService storeService;
@Autowired
private StoreService storeService;
/**
* 店铺详情
*/
private final StoreDetailService storeDetailService;
@Autowired
private StoreDetailService storeDetailService;
@ApiOperation(value = "获取商家设置")
@GetMapping

View File

@@ -25,13 +25,13 @@ import java.util.List;
@Api(tags = "店铺端,商品统计接口")
@RestController
@RequestMapping("/store/statistics/goods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsStatisticsStoreController {
/**
* 商品统计
*/
private final GoodsStatisticsDataService goodsStatisticsDataService;
@Autowired
private GoodsStatisticsDataService goodsStatisticsDataService;
@ApiOperation(value = "获取统计列表,排行前一百的数据")
@GetMapping

View File

@@ -27,17 +27,18 @@ import java.util.List;
@Api(tags = "店铺端,首页统计接口")
@RestController
@RequestMapping("/store/statistics/index")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class IndexStatisticsStoreController {
/**
* 热卖商品统计
*/
private final GoodsStatisticsDataService goodsStatisticsDataService;
@Autowired
private GoodsStatisticsDataService goodsStatisticsDataService;
/**
* 首页统计
*/
private final IndexStatisticsService indexStatisticsService;
@Autowired
private IndexStatisticsService indexStatisticsService;
@ApiOperation(value = "获取统计列表,排行前一百的数据")
@GetMapping("/top100")

View File

@@ -32,21 +32,23 @@ import java.util.List;
@Api(tags = "店铺端,订单统计接口")
@RestController
@RequestMapping("/store/statistics/order")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderStatisticsStoreController {
/**
* 订单
*/
private final OrderService orderService;
@Autowired
private OrderService orderService;
/**
* 售后
*/
private final AfterSaleService afterSaleService;
@Autowired
private AfterSaleService afterSaleService;
/**
* 订单统计
*/
private final OrderStatisticsDataService orderStatisticsDataService;
@Autowired
private OrderStatisticsDataService orderStatisticsDataService;
@ApiOperation(value = "订单概览统计")
@GetMapping("/overview")

View File

@@ -10,7 +10,6 @@ import cn.lili.modules.statistics.service.RefundOrderStatisticsService;
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;
@@ -25,10 +24,10 @@ import org.springframework.web.bind.annotation.RestController;
@Api(tags = "店铺端,退款统计接口")
@RestController
@RequestMapping("/store/statistics/refund/order")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RefundOrderStatisticsStoreController {
private final RefundOrderStatisticsService refundOrderStatisticsService;
@Autowired
private RefundOrderStatisticsService refundOrderStatisticsService;
@ApiOperation(value = "获取退款统计列表")
@GetMapping("/getByPage")

View File

@@ -8,7 +8,6 @@ import cn.lili.modules.statistics.model.vo.PlatformViewVO;
import cn.lili.modules.statistics.service.PlatformViewDataService;
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;
@@ -25,10 +24,9 @@ import java.util.List;
@Api(tags = "店铺端,流量统计接口")
@RestController
@RequestMapping("/store/statistics/view")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ViewStatisticsStoreController {
private final PlatformViewDataService platformViewDataService;
@Autowired
private PlatformViewDataService platformViewDataService;
@ApiOperation(value = "流量数据 表单获取")
@GetMapping("/list")

View File

@@ -27,10 +27,10 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "店铺端,售后管理接口")
@RequestMapping("/store/afterSale")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AfterSaleStoreController {
private final AfterSaleService afterSaleService;
@Autowired
private AfterSaleService afterSaleService;
@ApiOperation(value = "查看售后服务详情")
@ApiImplicitParam(name = "sn", value = "售后单号", required = true, paramType = "path")

View File

@@ -27,10 +27,10 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "店铺端,结算单接口")
@RequestMapping("/store/bill")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BillStoreController {
private final BillService billService;
@Autowired
private BillService billService;
@ApiOperation(value = "获取结算单分页")
@GetMapping(value = "/getByPage")

View File

@@ -25,10 +25,10 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "店铺端,商品评价管理接口")
@RequestMapping("/store/memberEvaluation")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberEvaluationStoreController {
private final MemberEvaluationService memberEvaluationService;
@Autowired
private MemberEvaluationService memberEvaluationService;
@ApiOperation(value = "分页获取会员评论列表")
@GetMapping

View File

@@ -29,18 +29,19 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "店铺端,交易投诉接口")
@RequestMapping("/store/complain")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderComplaintStoreController {
/**
* 交易投诉
*/
private final OrderComplaintService orderComplaintService;
@Autowired
private OrderComplaintService orderComplaintService;
/**
* 投诉沟通
*/
private final OrderComplaintCommunicationService orderComplaintCommunicationService;
@Autowired
private OrderComplaintCommunicationService orderComplaintCommunicationService;
@ApiOperation(value = "通过id获取")
@ApiImplicitParam(name = "id", value = "投诉单ID", required = true, paramType = "path")

View File

@@ -25,10 +25,10 @@ import java.util.List;
@RestController
@Api(tags = "店铺端,订单日志接口")
@RequestMapping("/store/orderLog")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderLogStoreController {
private final OrderLogService orderLogService;
@Autowired
private OrderLogService orderLogService;
@ApiOperation(value = "通过订单编号获取订单日志")
@ApiImplicitParam(name = "orderSn", value = "订单编号", required = true, paramType = "path")

View File

@@ -30,18 +30,19 @@ import javax.validation.constraints.NotNull;
@RestController
@RequestMapping("/store/orders")
@Api(tags = "店铺端,订单接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderStoreController {
/**
* 订单
*/
private final OrderService orderService;
@Autowired
private OrderService orderService;
/**
* 订单价格
*/
private final OrderPriceService orderPriceService;
@Autowired
private OrderPriceService orderPriceService;
@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.*;
@@ -25,10 +24,10 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "店铺端,发票接口")
@RequestMapping("/store/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ReceiptStoreController {
private final ReceiptService receiptService;
@Autowired
private ReceiptService receiptService;
@ApiOperation(value = "分页获取")
@GetMapping

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;
@@ -24,22 +23,22 @@ import org.springframework.web.cors.CorsConfigurationSource;
@Slf4j
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreSecurityConfig 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