商品管理

pull/2/head
perry 2023-05-11 22:33:51 +08:00
parent 693839a486
commit 1622984df7
18 changed files with 76 additions and 67 deletions

View File

@ -32,8 +32,8 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/express/shipping/templates")
@Tag(name = "设置 -- 物流 -- 模板")
@RequestMapping("admin/express/shipping/templates")
@Tag(name = "管理后台 - 物流模板")
public class ShippingTemplatesController {
@Autowired
@ -43,9 +43,9 @@ public class ShippingTemplatesController {
*
* @param request
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:list')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:list')")
@Operation(summary = "分页列表")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@GetMapping(value = "/list")
public CommonResult<PageResult<ShippingTemplatesDO>> getList(@Validated ShippingTemplatesSearchReqVO request){
PageResult<ShippingTemplatesDO> shippingTemplatesCommonPage = shippingTemplatesService.getList(request);
return CommonResult.success(shippingTemplatesCommonPage);
@ -55,7 +55,7 @@ public class ShippingTemplatesController {
*
* @param request
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:save')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:save')")
@Operation(summary = "新增")
@RequestMapping(value = "/save", method = RequestMethod.POST)
public CommonResult<String> save(@RequestBody @Validated ShippingTemplatesReqVO request){
@ -69,7 +69,7 @@ public class ShippingTemplatesController {
*
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:delete')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:delete')")
@Operation(summary = "删除")
@RequestMapping(value = "/delete", method = RequestMethod.GET)
@Parameter(name="id", description="模板ID", required = true)
@ -86,7 +86,7 @@ public class ShippingTemplatesController {
* @param id integer id
* @param request ShippingTemplatesRequest
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:update')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:update')")
@Operation(summary = "修改")
@RequestMapping(value = "/update", method = RequestMethod.POST)
public CommonResult<String> update(@RequestParam Integer id, @RequestBody @Validated ShippingTemplatesReqVO request){
@ -100,7 +100,7 @@ public class ShippingTemplatesController {
*
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:info')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:info')")
@Operation(summary = "详情")
@RequestMapping(value = "/info", method = RequestMethod.GET)
@Parameter(name="id", description="模板ID", required = true)

View File

@ -29,7 +29,7 @@ import java.util.List;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/express/shipping/free")
@RequestMapping("admin/express/shipping/free")
@Tag(name = "设置 -- 物流 -- 免费")
public class ShippingTemplatesFreeController {
@ -40,7 +40,7 @@ public class ShippingTemplatesFreeController {
* id
* @param tempId Integer id
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:free:list')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:free:list')")
@Operation(summary = "根据模板id查询数据")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<List<ShippingTemplatesFreeRespVO>> getList(@RequestParam Integer tempId){

View File

@ -29,7 +29,7 @@ import java.util.List;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/express/shipping/no_delivery")
@RequestMapping("admin/express/shipping/no_delivery")
@Tag(name = "设置 -- 物流 -- 免费")
public class ShippingTemplatesNoDeliveryController {
@ -40,7 +40,7 @@ public class ShippingTemplatesNoDeliveryController {
* id
* @param tempId Integer id
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:free:list')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:free:list')")
@Operation(summary = "根据模板id查询数据")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<List<ShippingTemplatesNoDeliveryRespVO>> getList(@RequestParam Integer tempId){

View File

@ -29,7 +29,7 @@ import java.util.List;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/express/shipping/region")
@RequestMapping("admin/express/shipping/region")
@Tag(name = "设置 -- 物流 -- 付费")
public class ShippingTemplatesRegionController {
@ -40,7 +40,7 @@ public class ShippingTemplatesRegionController {
* id
* @param tempId Integer id
*/
@PreAuthorize("hasAuthority('admin:shipping:templates:region:list')")
@PreAuthorize("@ss.hasPermission('admin:shipping:templates:region:list')")
@Operation(summary = "根据模板id查询数据")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<List<ShippingTemplatesRegionRespVO>> getList(@RequestParam Integer tempId){

View File

@ -28,7 +28,7 @@ public class ShippingTemplatesDO extends TenantBaseDO {
private static final long serialVersionUID=1L;
@TableId(value = "id", type = IdType.AUTO)
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Integer id;
/**

View File

@ -8,6 +8,7 @@ import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@ -100,7 +101,7 @@ public class StoreProductResponse implements Serializable {
private Boolean isNew;
@Schema(description= "添加时间")
private Integer addTime;
private LocalDateTime addTime;
@Schema(description= "是否包邮")
private Boolean isPostage;
@ -252,5 +253,5 @@ public class StoreProductResponse implements Serializable {
private BigDecimal minPrice;
@Schema(description= "砍价结束时间")
private Long endTime;
private LocalDateTime endTime;
}

View File

@ -38,7 +38,7 @@ import java.util.List;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/category")
@RequestMapping("admin/category")
@Tag(name = "管理后台 - 分类服务")
public class CategoryController {
@ -53,7 +53,7 @@ public class CategoryController {
* @author Mr.Zhang
* @since 2020-04-16
*/
@PreAuthorize("hasAuthority('admin:category:list')")
@PreAuthorize("@ss.hasPermission('admin:category:list')")
@Operation(summary = "分页分类列表")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<PageInfo<Category>> getList(@ModelAttribute CategorySearchRequest request, @ModelAttribute PageParam pageParamRequest) {
@ -64,7 +64,7 @@ public class CategoryController {
*
* @param categoryRequest
*/
@PreAuthorize("hasAuthority('admin:category:save')")
@PreAuthorize("@ss.hasPermission('admin:category:save')")
@Operation(summary = "新增")
@RequestMapping(value = "/save", method = RequestMethod.POST)
public CommonResult<Boolean> save(@Validated CategoryRequest categoryRequest) {
@ -81,7 +81,7 @@ public class CategoryController {
* @author Mr.Zhang
* @since 2020-04-16
*/
@PreAuthorize("hasAuthority('admin:category:delete')")
@PreAuthorize("@ss.hasPermission('admin:category:delete')")
@Operation(summary = "删除")
@RequestMapping(value = "/delete", method = RequestMethod.GET)
@Parameter(name="id", description="分类ID")
@ -100,7 +100,7 @@ public class CategoryController {
* @author Mr.Zhang
* @since 2020-04-16
*/
@PreAuthorize("hasAuthority('admin:category:update')")
@PreAuthorize("@ss.hasPermission('admin:category:update')")
@Operation(summary = "修改")
@RequestMapping(value = "/update", method = RequestMethod.POST)
@Parameter(name="id", description="分类ID")
@ -120,7 +120,7 @@ public class CategoryController {
* @author Mr.Zhang
* @since 2020-04-16
*/
@PreAuthorize("hasAuthority('admin:category:info')")
@PreAuthorize("@ss.hasPermission('admin:category:info')")
@Operation(summary = "分类详情")
@RequestMapping(value = "/info", method = RequestMethod.GET)
@Parameter(name="id", description="分类ID")
@ -135,7 +135,7 @@ public class CategoryController {
* @author Mr.Zhang
* @since 2020-04-16
*/
@PreAuthorize("hasAuthority('admin:category:list:tree')")
@PreAuthorize("@ss.hasPermission('admin:category:list:tree')")
@Operation(summary = "获取tree结构的列表")
@RequestMapping(value = "/list/tree", method = RequestMethod.GET)
@Parameters({
@ -155,7 +155,7 @@ public class CategoryController {
* @param ids String id
* @since 2020-04-16
*/
@PreAuthorize("hasAuthority('admin:category:list:ids')")
@PreAuthorize("@ss.hasPermission('admin:category:list:ids')")
@Operation(summary = "根据id集合获取分类列表")
@RequestMapping(value = "/list/ids", method = RequestMethod.GET)
@Parameter(name = "ids", description="分类id集合")
@ -169,7 +169,7 @@ public class CategoryController {
* @since 2020-04-16
* @return
*/
@PreAuthorize("hasAuthority('admin:category:update:status')")
@PreAuthorize("@ss.hasPermission('admin:category:update:status')")
@Operation(summary = "更改分类状态")
@RequestMapping(value = "/updateStatus/{id}", method = RequestMethod.GET)
@Parameter(name = "id", description="分类id")

View File

@ -38,7 +38,7 @@ import cn.iocoder.yudao.module.shop.response.order.StoreOrderCountItemResponse;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/store/order")
@RequestMapping("admin/store/order")
@Tag(name = "管理后台 - 订单") //配合swagger使用
public class StoreOrderController {
@ -51,7 +51,7 @@ public class StoreOrderController {
* @param request
* @param pageParamRequest
*/
@PreAuthorize("hasAuthority('admin:order:list')")
@PreAuthorize("@ss.hasPermission('admin:order:list')")
@Operation(summary = "分页列表") //配合swagger使用
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<PageInfo<StoreOrderDetailResponse>> getList(@Validated StoreOrderSearchRequest request, @Validated PageParam pageParamRequest) {
@ -61,7 +61,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:status:num')")
@PreAuthorize("@ss.hasPermission('admin:order:status:num')")
@Operation(summary = "获取订单各状态数量")
@RequestMapping(value = "/status/num", method = RequestMethod.GET)
public CommonResult<StoreOrderCountItemResponse> getOrderStatusNum(
@ -73,7 +73,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:list:data')")
@PreAuthorize("@ss.hasPermission('admin:order:list:data')")
@Operation(summary = "获取订单统计数据")
@RequestMapping(value = "/list/data", method = RequestMethod.GET)
public CommonResult<StoreOrderTopItemResponse> getOrderData(@RequestParam(value = "dateLimit", defaultValue = "")String dateLimit) {
@ -84,7 +84,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:delete')")
@PreAuthorize("@ss.hasPermission('admin:order:delete')")
@Operation(summary = "订单删除")
@RequestMapping(value = "/delete", method = RequestMethod.GET)
public CommonResult<Boolean> delete(@RequestParam(value = "orderNo") String orderNo) {
@ -98,7 +98,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:mark')")
@PreAuthorize("@ss.hasPermission('admin:order:mark')")
@Operation(summary = "备注")
@RequestMapping(value = "/mark", method = RequestMethod.POST)
public CommonResult<Boolean> mark(@RequestParam String orderNo, @RequestParam String mark) {
@ -112,7 +112,7 @@ public class StoreOrderController {
/**
* ()
*/
@PreAuthorize("hasAuthority('admin:order:update:price')")
@PreAuthorize("@ss.hasPermission('admin:order:update:price')")
@Operation(summary = "修改订单(改价)")
@RequestMapping(value = "/update/price", method = RequestMethod.POST)
public CommonResult<Boolean> updatePrice(@RequestBody @Validated StoreOrderUpdatePriceRequest request) {
@ -126,7 +126,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:info')")
@PreAuthorize("@ss.hasPermission('admin:order:info')")
@Operation(summary = "详情")
@RequestMapping(value = "/info", method = RequestMethod.GET)
public CommonResult<StoreOrderInfoResponse> info(@RequestParam(value = "orderNo") String orderNo) {
@ -136,7 +136,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:send')")
@PreAuthorize("@ss.hasPermission('admin:order:send')")
@Operation(summary = "发送货")
@RequestMapping(value = "/send", method = RequestMethod.POST)
public CommonResult<Boolean> send(@RequestBody @Validated StoreOrderSendRequest request) {
@ -149,7 +149,7 @@ public class StoreOrderController {
/**
* 退
*/
@PreAuthorize("hasAuthority('admin:order:refund')")
@PreAuthorize("@ss.hasPermission('admin:order:refund')")
@Operation(summary = "退款")
@RequestMapping(value = "/refund", method = RequestMethod.GET)
public CommonResult<Boolean> send(@Validated StoreOrderRefundRequest request) {
@ -159,7 +159,7 @@ public class StoreOrderController {
/**
* 退
*/
@PreAuthorize("hasAuthority('admin:order:refund:refuse')")
@PreAuthorize("@ss.hasPermission('admin:order:refund:refuse')")
@Operation(summary = "拒绝退款")
@RequestMapping(value = "/refund/refuse", method = RequestMethod.GET)
public CommonResult<Object> refundRefuse(@RequestParam String orderNo, @RequestParam String reason) {
@ -172,7 +172,7 @@ public class StoreOrderController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:order:logistics:info')")
@PreAuthorize("@ss.hasPermission('admin:order:logistics:info')")
@Operation(summary = "快递查询")
@RequestMapping(value = "/getLogisticsInfo", method = RequestMethod.GET)
public CommonResult<LogisticsResultVo> getLogisticsInfo(@RequestParam(value = "orderNo") String orderNo) {
@ -192,7 +192,7 @@ public class StoreOrderController {
* @author stivepeim
* @since 2020-09-01
*/
@PreAuthorize("hasAuthority('admin:order:time')")
@PreAuthorize("@ss.hasPermission('admin:order:time')")
@Operation(summary = "订单统计详情")
@RequestMapping(value = "/time", method = RequestMethod.GET)
@Parameters({

View File

@ -32,7 +32,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/store/order/status")
@RequestMapping("admin/store/order/status")
@Tag(name = "管理后台 - 订单 -- 操作记录") //配合swagger使用
public class StoreOrderStatusController {
@ -44,7 +44,7 @@ public class StoreOrderStatusController {
* @param request
* @param pageParamRequest
*/
@PreAuthorize("hasAuthority('admin:order:status:list')")
@PreAuthorize("@ss.hasPermission('admin:order:status:list')")
@Operation(summary = "分页列表") //配合swagger使用
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<PageInfo<StoreOrderStatus>> getList(@Validated StoreOrderStatusSearchRequest request,

View File

@ -37,7 +37,7 @@ import java.util.List;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/store/product")
@RequestMapping("admin/store/product")
@Tag(name = "管理后台 - 商品", description = "商品") //配合swagger使用
public class StoreProductController {
@ -52,7 +52,7 @@ public class StoreProductController {
* @param request
* @param pageParamRequest
*/
@PreAuthorize("hasAuthority('admin:product:list')")
// @PreAuthorize("@ss.hasPermission('admin:product:list')")
@Operation(summary = "分页列表") //配合swagger使用
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<PageInfo<StoreProductResponse>> getList(@Validated StoreProductSearchRequest request,
@ -64,7 +64,7 @@ public class StoreProductController {
*
* @param request
*/
@PreAuthorize("hasAuthority('admin:product:save')")
// @PreAuthorize("@ss.hasPermission('admin:product:save')")
@Operation(summary = "新增商品")
@RequestMapping(value = "/save", method = RequestMethod.POST)
public CommonResult<Boolean> save(@RequestBody @Validated StoreProductAddRequest request) {
@ -79,7 +79,7 @@ public class StoreProductController {
*
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:product:delete')")
// @PreAuthorize("@ss.hasPermission('admin:product:delete')")
@Operation(summary = "删除")
@RequestMapping(value = "/delete/{id}", method = RequestMethod.GET)
public CommonResult<Boolean> delete(@RequestBody @PathVariable Integer id, @RequestParam(value = "type", required = false, defaultValue = "recycle")String type) {
@ -99,7 +99,7 @@ public class StoreProductController {
*
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:product:restore')")
// @PreAuthorize("@ss.hasPermission('admin:product:restore')")
@Operation(summary = "恢复商品")
@RequestMapping(value = "/restore/{id}", method = RequestMethod.GET)
public CommonResult<Boolean> restore(@RequestBody @PathVariable Integer id) {
@ -114,7 +114,7 @@ public class StoreProductController {
*
* @param storeProductRequest
*/
@PreAuthorize("hasAuthority('admin:product:update')")
// @PreAuthorize("@ss.hasPermission('admin:product:update')")
@Operation(summary = "商品修改")
@RequestMapping(value = "/update", method = RequestMethod.POST)
public CommonResult<Boolean> update(@RequestBody @Validated StoreProductAddRequest storeProductRequest) {
@ -129,7 +129,7 @@ public class StoreProductController {
*
* @param id id
*/
@PreAuthorize("hasAuthority('admin:product:info')")
// @PreAuthorize("@ss.hasPermission('admin:product:info')")
@Operation(summary = "商品详情")
@RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
public CommonResult<StoreProductInfoResponse> info(@PathVariable Integer id) {
@ -139,18 +139,17 @@ public class StoreProductController {
/**
* tabs
*/
@PreAuthorize("hasAuthority('admin:product:tabs:headers')")
// @PreAuthorize("@ss.hasPermission('admin:product:tabs:headers')")
@Operation(summary = "商品表头数量")
@RequestMapping(value = "/tabs/headers", method = RequestMethod.GET)
public CommonResult<List<StoreProductTabsHeader>> getTabsHeader() {
return CommonResult.success(storeProductService.getTabsHeader());
}
/**
*
*/
@PreAuthorize("hasAuthority('admin:product:up')")
// @PreAuthorize("@ss.hasPermission('admin:product:up')")
@Operation(summary = "上架")
@RequestMapping(value = "/putOnShell/{id}", method = RequestMethod.GET)
public CommonResult<Boolean> putOn(@PathVariable Integer id) {
@ -164,7 +163,7 @@ public class StoreProductController {
/**
*
*/
@PreAuthorize("hasAuthority('admin:product:down')")
// @PreAuthorize("@ss.hasPermission('admin:product:down')")
@Operation(summary = "下架")
@RequestMapping(value = "/offShell/{id}", method = RequestMethod.GET)
public CommonResult<Boolean> offShell(@PathVariable Integer id) {

View File

@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.*;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/store/product/reply")
@RequestMapping("/admin/store/product/reply")
@Tag(name = "管理后台 商品 -- 评论") //配合swagger使用
public class StoreProductReplyController {
@ -45,7 +45,7 @@ public class StoreProductReplyController {
* @param request
* @param pageParamRequest
*/
@PreAuthorize("hasAuthority('admin:product:reply:list')")
@PreAuthorize("@ss.hasPermission('admin:product:reply:list')")
@Operation(summary = "分页列表") //配合swagger使用
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<PageInfo<StoreProductReplyResponse>> getList(@Validated StoreProductReplySearchRequest request,
@ -58,7 +58,7 @@ public class StoreProductReplyController {
*
* @param request
*/
@PreAuthorize("hasAuthority('admin:product:reply:save')")
@PreAuthorize("@ss.hasPermission('admin:product:reply:save')")
@Operation(summary = "新增")
@RequestMapping(value = "/save", method = RequestMethod.POST)
public CommonResult<Boolean> save(@RequestBody @Validated StoreProductReplyAddRequest request) {
@ -73,7 +73,7 @@ public class StoreProductReplyController {
*
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:product:reply:delete')")
@PreAuthorize("@ss.hasPermission('admin:product:reply:delete')")
@Operation(summary = "删除")
@RequestMapping(value = "/delete/{id}", method = RequestMethod.GET)
public CommonResult<Boolean> delete(@PathVariable Integer id) {
@ -88,7 +88,7 @@ public class StoreProductReplyController {
*
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:product:reply:info')")
@PreAuthorize("@ss.hasPermission('admin:product:reply:info')")
@Operation(summary = "详情")
@RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
public CommonResult<StoreProductReply> info(@PathVariable Integer id) {
@ -100,7 +100,7 @@ public class StoreProductReplyController {
*
* @param request StoreProductReplyCommentRequest
*/
@PreAuthorize("hasAuthority('admin:product:reply:comment')")
@PreAuthorize("@ss.hasPermission('admin:product:reply:comment')")
@Operation(summary = "回复")
@RequestMapping(value = "/comment", method = RequestMethod.POST)
public CommonResult<Boolean> comment(@RequestBody StoreProductReplyCommentRequest request) {

View File

@ -32,7 +32,7 @@ import org.springframework.web.bind.annotation.*;
*/
@Slf4j
@RestController
@RequestMapping("api/admin/store/product/rule")
@RequestMapping("admin/store/product/rule")
@Tag(name = "管理后台 商品 -- 规则值(规格)") //配合swagger使用
public class StoreProductRuleController {
@ -44,7 +44,7 @@ public class StoreProductRuleController {
* @param request
* @param pageParamRequest
*/
@PreAuthorize("hasAuthority('admin:product:rule:list')")
@PreAuthorize("@ss.hasPermission('admin:product:rule:list')")
@Operation(summary = "分页列表") //配合swagger使用
@RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResult<PageInfo<StoreProductRule>> getList(
@ -56,7 +56,7 @@ public class StoreProductRuleController {
* ()
* @param storeProductRuleRequest
*/
@PreAuthorize("hasAuthority('admin:product:rule:save')")
@PreAuthorize("@ss.hasPermission('admin:product:rule:save')")
@Operation(summary = "新增")
@RequestMapping(value = "/save", method = RequestMethod.POST)
public CommonResult<Boolean> save(@RequestBody @Validated StoreProductRuleRequest storeProductRuleRequest) {
@ -71,7 +71,7 @@ public class StoreProductRuleController {
* ()
* @param ids Integer
*/
@PreAuthorize("hasAuthority('admin:product:rule:delete')")
@PreAuthorize("@ss.hasPermission('admin:product:rule:delete')")
@Operation(summary = "删除")
@RequestMapping(value = "/delete/{ids}", method = RequestMethod.GET)
public CommonResult<Boolean> delete(@PathVariable String ids) {
@ -86,7 +86,7 @@ public class StoreProductRuleController {
* ()
* @param storeProductRuleRequest
*/
@PreAuthorize("hasAuthority('admin:product:rule:update')")
@PreAuthorize("@ss.hasPermission('admin:product:rule:update')")
@Operation(summary = "修改")
@RequestMapping(value = "/update", method = RequestMethod.POST)
public CommonResult<Boolean> update(@RequestBody @Validated StoreProductRuleRequest storeProductRuleRequest) {
@ -101,7 +101,7 @@ public class StoreProductRuleController {
* ()
* @param id Integer
*/
@PreAuthorize("hasAuthority('admin:product:rule:info')")
@PreAuthorize("@ss.hasPermission('admin:product:rule:info')")
@Operation(summary = "详情")
@RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
public CommonResult<StoreProductRule> info(@PathVariable Integer id) {

View File

@ -2,10 +2,12 @@ package cn.iocoder.yudao.module.shop.convert.product;
import cn.iocoder.yudao.module.shop.dal.dataobject.product.StoreProductAttr;
import cn.iocoder.yudao.module.shop.vo.product.StoreProductAttrVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
@Mapper
public interface StoreProductAttrConvert {
StoreProductAttrConvert INSTANCE = Mappers.getMapper(StoreProductAttrConvert.class);

View File

@ -12,6 +12,7 @@ import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
/**
@ -106,7 +107,7 @@ public class StoreProduct implements Serializable {
private Boolean isNew;
@Schema(description= "添加时间")
private Date addTime;
private LocalDateTime addTime;
@Schema(description= "是否包邮")
private Boolean isPostage;

View File

@ -40,6 +40,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.support.TransactionTemplate;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.*;
import java.util.stream.Collectors;
@ -234,7 +235,7 @@ public class StoreProductServiceImpl extends ServiceImpl<StoreProductMapper, Sto
StoreProduct storeProduct = new StoreProduct();
BeanUtils.copyProperties(request, storeProduct);
storeProduct.setId(null);
storeProduct.setAddTime(new Date());
storeProduct.setAddTime(LocalDateTime.now());
storeProduct.setIsShow(false);
// 设置Acticity活动

View File

@ -4,6 +4,7 @@ import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.hutool.core.collection.CollUtil;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.member.controller.admin.user.dto.AdminUserQueryDTO;
import cn.iocoder.yudao.module.member.controller.admin.user.vo.AdminUserInfoRespVO;
import cn.iocoder.yudao.module.member.convert.user.UserConvert;

View File

@ -49,7 +49,7 @@ public class PayDemoOrderServiceImpl implements PayDemoOrderService {
*
* [ -> ]
*/
private static final Long PAY_APP_ID = 7L;
private static final Long PAY_APP_ID = 8L;
/**
* Map

View File

@ -191,6 +191,10 @@ yudao:
- eb_shipping_templates_free
- eb_shipping_templates_no_delivery
- eb_shipping_templates_region
- eb_store_product_attr
- eb_store_product_attr_result
- eb_store_product_attr_value
- eb_store_product_description
sms-code: # 短信验证码相关的配置项
expire-times: 10m
send-frequency: 1m