liusheng
2024-04-24 a894bc6373154d5cfd28b7f46df3c4cfa01a7b9b
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java
@@ -1,6 +1,7 @@
package com.ruoyi.web.controller.project;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.NotRepeatCommit;
import com.ruoyi.common.annotation.RepeatSubmit;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
@@ -40,7 +41,7 @@
     * 查询捐献附件列表
     */
    @ApiOperation("查询捐献附件列表")
    @PreAuthorize("@ss.hasPermi('system:annextype:list')")
    // @PreAuthorize("@ss.hasPermi('system:annextype:list')")
    @GetMapping("/list")
    public TableDataInfo list(BaseAnnextype baseAnnextype) {
        startPage();
@@ -52,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) {
@@ -66,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);
@@ -78,7 +79,7 @@
     * 新增捐献附件
     */
    @ApiOperation("新增捐献附件")
    @PreAuthorize("@ss.hasPermi('system:annextype:add')")
    // @PreAuthorize("@ss.hasPermi('system:annextype:add')")
    @Log(title = "捐献附件", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    @RepeatSubmit
@@ -88,14 +89,15 @@
        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
@@ -112,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) {