bug--权限完善和去掉无用的包

This commit is contained in:
taozi
2020-07-16 14:10:23 +08:00
parent 2ef1d7812b
commit 2592e3b25f
4 changed files with 5 additions and 17 deletions

View File

@ -57,7 +57,7 @@ public class StoreCategoryController {
@Log("导出数据")
@ApiOperation("导出数据")
@GetMapping(value = "/yxStoreCategory/download")
@PreAuthorize("@el.check('admin','cate:list')")
@PreAuthorize("@el.check('admin','YXSTORECATEGORY_SELECT')")
public void download(HttpServletResponse response, YxStoreCategoryQueryCriteria criteria) throws IOException {
yxStoreCategoryService.download(yxStoreCategoryService.queryAll(criteria), response);
}

View File

@ -107,7 +107,7 @@ public class StoreOrderController {
@ApiOperation(value = "查询订单")
@GetMapping(value = "/yxStoreOrder")
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_SELECT')")
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_SELECT','YXEXPRESS_SELECT')")
public ResponseEntity getYxStoreOrders(YxStoreOrderQueryCriteria criteria,
Pageable pageable,
@RequestParam(name = "orderStatus") String orderStatus,
@ -222,7 +222,7 @@ public class StoreOrderController {
@Log("导出数据")
@ApiOperation("导出数据")
@GetMapping(value = "/yxStoreOrder/download")
@PreAuthorize("@el.check('admin','cate:list')")
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_SELECT')")
public void download(HttpServletResponse response,
YxStoreOrderQueryCriteria criteria,
Pageable pageable,