调整权限标识
This commit is contained in:
		| @@ -31,7 +31,7 @@ public class SysRecipesPlanController extends BaseController | ||||
|     /** | ||||
|      * 查询食谱计划列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesPlan:list')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:plan:list')") | ||||
|     @GetMapping("/list") | ||||
|     public TableDataInfo list(SysRecipesPlan sysRecipesPlan) | ||||
|     { | ||||
| @@ -48,7 +48,7 @@ public class SysRecipesPlanController extends BaseController | ||||
|     /** | ||||
|      * 根据订单查询完整食谱计划列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesPlan:list')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:plan:list')") | ||||
|     @GetMapping("/getAllPlanByOrderId") | ||||
|     public TableDataInfo getAllPlanByOrderId(SysRecipesPlan sysRecipesPlan) | ||||
|     { | ||||
| @@ -57,7 +57,7 @@ public class SysRecipesPlanController extends BaseController | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesPlan:list')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:plan:list')") | ||||
|     @GetMapping(value = "/list/{cusId}") | ||||
|     public AjaxResult getAllPlanByCusId(@PathVariable Long cusId) { | ||||
|         return AjaxResult.success(sysRecipesPlanService.selectPlanListByCusId(cusId)); | ||||
| @@ -66,7 +66,7 @@ public class SysRecipesPlanController extends BaseController | ||||
|     /** | ||||
|      * 获取食谱计划详细信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesPlan:query')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:plan:query')") | ||||
|     @GetMapping(value = "/{id}") | ||||
|     public AjaxResult getInfo(@PathVariable("id") Long id) | ||||
|     { | ||||
| @@ -76,7 +76,7 @@ public class SysRecipesPlanController extends BaseController | ||||
|     /** | ||||
|      * 修改食谱计划 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesPlan:edit')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:plan:edit')") | ||||
|     @Log(title = "食谱计划", businessType = BusinessType.UPDATE) | ||||
|     @PutMapping | ||||
|     public AjaxResult edit(@RequestBody SysRecipesPlan sysRecipesPlan) | ||||
| @@ -87,7 +87,7 @@ public class SysRecipesPlanController extends BaseController | ||||
|     /** | ||||
|      * 导出食谱计划列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesPlan:export')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:plan:export')") | ||||
|     @Log(title = "食谱计划", businessType = BusinessType.EXPORT) | ||||
|     @GetMapping("/export") | ||||
|     public AjaxResult export(SysRecipesPlan sysRecipesPlan) | ||||
|   | ||||
| @@ -26,7 +26,7 @@ public class SysRecipesTemplateController extends BaseController { | ||||
|     /** | ||||
|      * 查询 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesTemplate:list')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:template:list')") | ||||
|     @GetMapping("/list") | ||||
|     public TableDataInfo list(SysRecipesTemplate sysRecipesTemplate) { | ||||
|         startPage(); | ||||
| @@ -34,7 +34,7 @@ public class SysRecipesTemplateController extends BaseController { | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesTemplate:list')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:template:list')") | ||||
|     @GetMapping(value = "/{id}") | ||||
|     public AjaxResult detail(@PathVariable Long id) { | ||||
|         return AjaxResult.success(iSysRecipesTemplateService.getRecipesTemplateById(id)); | ||||
| @@ -43,7 +43,7 @@ public class SysRecipesTemplateController extends BaseController { | ||||
|     /** | ||||
|      * 添加 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesTemplate:edit')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:template:edit')") | ||||
|     @PostMapping("/add") | ||||
|     public AjaxResult add(@RequestBody SysRecipesTemplate sysRecipesTemplate) { | ||||
|         return toAjax(iSysRecipesTemplateService.insertRecipsesTemplate(sysRecipesTemplate)); | ||||
| @@ -52,7 +52,7 @@ public class SysRecipesTemplateController extends BaseController { | ||||
|     /** | ||||
|      * 更新 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesTemplate:list')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:template:list')") | ||||
|     @PutMapping(value = "/update") | ||||
|     public AjaxResult update(@RequestBody SysRecipesTemplate sysRecipesTemplate) { | ||||
|         return toAjax(iSysRecipesTemplateService.updateRecipesTemplate(sysRecipesTemplate)); | ||||
| @@ -61,7 +61,7 @@ public class SysRecipesTemplateController extends BaseController { | ||||
|     /** | ||||
|      * 删除 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:recipesTemplate:query')") | ||||
|     @PreAuthorize("@ss.hasPermi('recipes:template:query')") | ||||
|     @DeleteMapping(value = "/delete/{id}") | ||||
|     public AjaxResult delete(@PathVariable("id") Long id) { | ||||
|         return AjaxResult.success(iSysRecipesTemplateService.removeRecipesTemplate(id)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user