liusheng
2024-03-14 325cbd2c43a68dd788f674a3d19543abe606b137
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseAnnextypeController.java
@@ -82,14 +82,15 @@
    @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);
    }
    /**