From b6dd47b05107fc36d8ff4f7f29a4446521f95503 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 02 一月 2025 18:44:28 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExternalpersonGroupController.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExternalpersonGroupController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExternalpersonGroupController.java index b8e68f0..88a114f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExternalpersonGroupController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceExternalpersonGroupController.java @@ -35,7 +35,7 @@ // * 鏌ヨ浜哄憳鍜屽垎缁勭粍鍒叧鑱斿垪琛� // */ // @ApiOperation("鏌ヨ浜哄憳鍜屽垎缁勭粍鍒叧鑱斿垪琛�") -// @PreAuthorize("@ss.hasPermi('system:group:list')") +// // @PreAuthorize("@ss.hasPermi('system:group:list')") // @GetMapping("/list") // public TableDataInfo list(ServiceExternalpersonGroup serviceExternalpersonGroup) { // startPage(); @@ -61,7 +61,7 @@ * 瀵煎嚭浜哄憳鍜屽垎缁勭粍鍒叧鑱斿垪琛� */ @ApiOperation("瀵煎嚭浜哄憳鍜屽垎缁勭粍鍒叧鑱斿垪琛�") - @PreAuthorize("@ss.hasPermi('system:group:export')") + // @PreAuthorize("@ss.hasPermi('system:group:export')") @Log(title = "浜哄憳鍜屽垎缁勭粍鍒叧鑱�", businessType = BusinessType.EXPORT) @GetMapping("/export") public AjaxResult export(ServiceExternalpersonGroup serviceExternalpersonGroup) { @@ -74,7 +74,7 @@ * 鑾峰彇浜哄憳鍜屽垎缁勭粍鍒叧鑱旇缁嗕俊鎭� */ @ApiOperation("鑾峰彇浜哄憳鍜屽垎缁勭粍鍒叧鑱旇缁嗕俊鎭�") - @PreAuthorize("@ss.hasPermi('system:group:query')") + // @PreAuthorize("@ss.hasPermi('system:group:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return AjaxResult.success(serviceExternalpersonGroupService.getById(id)); @@ -84,19 +84,20 @@ * 鏂板浜哄憳鍜屽垎缁勭粍鍒叧鑱� */ @ApiOperation("鏂板浜哄憳鍜屽垎缁勭粍鍒叧鑱�") - @PreAuthorize("@ss.hasPermi('system:group:add')") + // @PreAuthorize("@ss.hasPermi('system:group:add')") @Log(title = "浜哄憳鍜屽垎缁勭粍鍒叧鑱�", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") @RepeatSubmit public AjaxResult add(@RequestBody ServiceExternalpersonGroup serviceExternalpersonGroup) { - return toAjax(serviceExternalpersonGroupService.save(serviceExternalpersonGroup)); + boolean save = serviceExternalpersonGroupService.save(serviceExternalpersonGroup); + return AjaxResult.success(serviceExternalpersonGroup); } /** * 淇敼浜哄憳鍜屽垎缁勭粍鍒叧鑱� */ @ApiOperation("淇敼浜哄憳鍜屽垎缁勭粍鍒叧鑱�") - @PreAuthorize("@ss.hasPermi('system:group:edit')") + // @PreAuthorize("@ss.hasPermi('system:group:edit')") @Log(title = "浜哄憳鍜屽垎缁勭粍鍒叧鑱�", businessType = BusinessType.UPDATE) @PostMapping("/edit") @RepeatSubmit @@ -108,7 +109,7 @@ * 鍒犻櫎浜哄憳鍜屽垎缁勭粍鍒叧鑱� */ @ApiOperation("鍒犻櫎浜哄憳鍜屽垎缁勭粍鍒叧鑱�") - @PreAuthorize("@ss.hasPermi('system:group:remove')") + // @PreAuthorize("@ss.hasPermi('system:group:remove')") @Log(title = "浜哄憳鍜屽垎缁勭粍鍒叧鑱�", businessType = BusinessType.DELETE) @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { -- Gitblit v1.9.3