| | |
| | | @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); |
| | | } |
| | | |
| | | /** |