bug--商品规格和运费模版权限标识修改
This commit is contained in:
@ -62,7 +62,7 @@ public class StoreProductRuleController {
|
||||
@PostMapping("/save/{id}")
|
||||
@Log("新增/修改sku规则")
|
||||
@ApiOperation("新增/修改sku规则")
|
||||
@PreAuthorize("@el.check('admin','yxStoreProductRule:add')")
|
||||
@PreAuthorize("hasAnyRole('admin','yxStoreProductRule:add','yxStoreProductRule:edit')")
|
||||
public ResponseEntity<Object> create(@Validated @RequestBody YxStoreProductRule resources,@PathVariable Integer id){
|
||||
if(id != null && id > 0){
|
||||
resources.setId(id);
|
||||
|
@ -69,7 +69,7 @@ public class ShippingTemplatesController {
|
||||
@PostMapping("/save/{id}")
|
||||
@Log("新增/保存运费模板")
|
||||
@ApiOperation("新增/保存运费模板")
|
||||
@PreAuthorize("@el.check('admin','yxShippingTemplates:add')")
|
||||
@PreAuthorize("hasAnyRole('admin','yxShippingTemplates:add','yxShippingTemplates:edit')")
|
||||
public ResponseEntity<Object> create(@PathVariable Integer id,
|
||||
@Validated @RequestBody ShippingTemplatesDto shippingTemplatesDto){
|
||||
yxShippingTemplatesService.addAndUpdate(id,shippingTemplatesDto);
|
||||
|
Reference in New Issue
Block a user