| | |
| | | return AjaxResult.error("新增时身份证" + idcardno + "已存在,无法保存!"); |
| | | } |
| | | |
| | | |
| | | serviceDonatebaseinfo.setDonorno(bh); |
| | | serviceDonatebaseinfo.setDeptid(user.getDeptId()); |
| | | serviceDonatebaseinfo.setDeptname(sysDeptMapper.getDeptNameByDeptId(user.getDeptId())); |
| | | |
| | | return toAjax(serviceDonatebaseinfoService.save(serviceDonatebaseinfo)); |
| | | serviceDonatebaseinfoService.save(serviceDonatebaseinfo); |
| | | Map<String, Long> map = new HashMap<>(); |
| | | map.put("id", serviceDonatebaseinfo.getId()); |
| | | return AjaxResult.success(map); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation("修改潜在捐献信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:edit')") |
| | | @Log(title = "捐献基础", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | return toAjax(serviceDonatebaseinfoService.updateById(serviceDonatebaseinfo)); |
| | |
| | | @ApiOperation("删除潜在捐献信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:remove')") |
| | | @Log(title = "捐献基础", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonatebaseinfoService.removeByIds(Arrays.asList(ids))); |
| | | } |