浏览代码

首页去除没有权限的

hexiao 2 年之前
父节点
当前提交
bf45eb454d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      purchase-admin/src/main/java/com/ozs/web/controller/plan/PlanYearsController.java

+ 2 - 2
purchase-admin/src/main/java/com/ozs/web/controller/plan/PlanYearsController.java

@@ -201,7 +201,7 @@ public class PlanYearsController extends BaseController {
     @ApiOperation(value = "审核年度计划通过")
     @ApiOperation(value = "审核年度计划通过")
     @PostMapping("/reviewTo")
     @PostMapping("/reviewTo")
     @Log(title = ModularConstans.planYear, businessType = BusinessType.UPDATE)
     @Log(title = ModularConstans.planYear, businessType = BusinessType.UPDATE)
-    @PreAuthorize("@ss.hasPermi('plan:planYears:reviewTo')")
+//    @PreAuthorize("@ss.hasPermi('plan:planYears:reviewTo')")  首页调用注释
     public AjaxResult reviewTo(@RequestBody PlanYearsStandardVo yearsStandardVo, HttpServletRequest request) {
     public AjaxResult reviewTo(@RequestBody PlanYearsStandardVo yearsStandardVo, HttpServletRequest request) {
         LoginUser loginUser = tokenService.getLoginUser(request);
         LoginUser loginUser = tokenService.getLoginUser(request);
         yearsStandardVo.setUpdated(String.valueOf(loginUser.getUserId()));
         yearsStandardVo.setUpdated(String.valueOf(loginUser.getUserId()));
@@ -228,7 +228,7 @@ public class PlanYearsController extends BaseController {
 
 
     @ApiOperation(value = "发函催告")
     @ApiOperation(value = "发函催告")
     @PostMapping("/sendLetter")
     @PostMapping("/sendLetter")
-    @PreAuthorize("@ss.hasPermi('plan:planYears:sendLetter')")
+//    @PreAuthorize("@ss.hasPermi('plan:planYears:sendLetter')")   首页调用注释
     @Log(title = ModularConstans.planYear, businessType = BusinessType.UPDATE)
     @Log(title = ModularConstans.planYear, businessType = BusinessType.UPDATE)
     public AjaxResult sendLetter(@RequestBody PlanYearsStandardVo yearsStandardVo) {
     public AjaxResult sendLetter(@RequestBody PlanYearsStandardVo yearsStandardVo) {
         return planYearsService.sendLetter(yearsStandardVo);
         return planYearsService.sendLetter(yearsStandardVo);