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/BaseAnnextypeController.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java index cdcf9b2..47390ca 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java @@ -41,7 +41,7 @@ * 鏌ヨ鎹愮尞闄勪欢鍒楄〃 */ @ApiOperation("鏌ヨ鎹愮尞闄勪欢鍒楄〃") - @PreAuthorize("@ss.hasPermi('system:annextype:list')") + // @PreAuthorize("@ss.hasPermi('system:annextype:list')") @GetMapping("/list") public TableDataInfo list(BaseAnnextype baseAnnextype) { startPage(); @@ -53,7 +53,7 @@ * 瀵煎嚭鎹愮尞闄勪欢鍒楄〃 */ @ApiOperation("瀵煎嚭鎹愮尞闄勪欢鍒楄〃") - @PreAuthorize("@ss.hasPermi('system:annextype:export')") + // @PreAuthorize("@ss.hasPermi('system:annextype:export')") @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.EXPORT) @GetMapping("/export") public AjaxResult export(BaseAnnextype baseAnnextype) { @@ -67,7 +67,7 @@ * 鑾峰彇鎹愮尞闄勪欢璇︾粏淇℃伅 */ @ApiOperation("鑾峰彇鎹愮尞闄勪欢璇︾粏淇℃伅") - @PreAuthorize("@ss.hasPermi('system:annextype:query')") + // @PreAuthorize("@ss.hasPermi('system:annextype:query')") @GetMapping(value = "/getInfo/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { log.info("鑾峰彇鎹愮尞闄勪欢璇︾粏淇℃伅{}锛�", id); @@ -79,24 +79,25 @@ * 鏂板鎹愮尞闄勪欢 */ @ApiOperation("鏂板鎹愮尞闄勪欢") - @PreAuthorize("@ss.hasPermi('system:annextype:add')") + // @PreAuthorize("@ss.hasPermi('system:annextype:add')") @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.INSERT) @PostMapping("/add") - @RepeatSubmit + @RepeatSubmit public AjaxResult add(@RequestBody BaseAnnextype baseAnnextype) { log.info("鏂板鎹愮尞闄勪欢{}锛�", baseAnnextype); if (ObjectUtils.isEmpty(baseAnnextype) || StringUtils.isEmpty(baseAnnextype.getDonationcategory()) || StringUtils.isEmpty(baseAnnextype.getAnnextype())) { throw new BaseException("璇锋鏌ユ崘鐚被鍒拰闄勪欢绫诲瀷锛屼负绌轰簡"); } - return toAjax(baseAnnextypeService.save(baseAnnextype)); + boolean save = baseAnnextypeService.save(baseAnnextype); + return AjaxResult.success(baseAnnextype); } /** * 淇敼鎹愮尞闄勪欢 */ @ApiOperation("淇敼鎹愮尞闄勪欢") - @PreAuthorize("@ss.hasPermi('system:annextype:edit')") + // @PreAuthorize("@ss.hasPermi('system:annextype:edit')") @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.UPDATE) @PostMapping("/edit") @RepeatSubmit @@ -113,7 +114,7 @@ * 鍒犻櫎鎹愮尞闄勪欢 */ @ApiOperation("鍒犻櫎鎹愮尞闄勪欢") - @PreAuthorize("@ss.hasPermi('system:annextype:remove')") + // @PreAuthorize("@ss.hasPermi('system:annextype:remove')") @Log(title = "鎹愮尞闄勪欢", businessType = BusinessType.DELETE) @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { -- Gitblit v1.9.3