| | |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 捐献案例器官列Controller |
| | |
| | | * 查询捐献案例器官列列表 |
| | | */ |
| | | @ApiOperation("查询捐献案例器官列列表") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:list')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donorcharge:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonorcharge serviceDonorcharge) { |
| | | startPage(); |
| | |
| | | * 导出捐献案例器官列列表 |
| | | */ |
| | | @ApiOperation("导出捐献案例器官列列表") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:export')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donorcharge:export')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonorcharge serviceDonorcharge) { |
| | |
| | | * 获取捐献案例器官列详细信息 |
| | | */ |
| | | @ApiOperation("获取捐献案例器官列详细信息") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:query')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donorcharge:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonorchargeService.getById(id)); |
| | |
| | | * 新增捐献案例器官列 |
| | | */ |
| | | @ApiOperation("新增捐献案例器官列") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:add')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donorcharge:add')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonorcharge serviceDonorcharge) { |
| | | return toAjax(serviceDonorchargeService.save(serviceDonorcharge)); |
| | | serviceDonorchargeService.save(serviceDonorcharge); |
| | | Map<String, Long> map = new HashMap<>(); |
| | | map.put("id", serviceDonorcharge.getId()); |
| | | return AjaxResult.success(map); |
| | | } |
| | | |
| | | /** |
| | | * 修改捐献案例器官列 |
| | | */ |
| | | @ApiOperation("修改捐献案例器官列") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donorcharge:edit')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | * 删除捐献案例器官列 |
| | | */ |
| | | @ApiOperation("删除捐献案例器官列") |
| | | @PreAuthorize("@ss.hasPermi('project:donorcharge:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donorcharge:remove')") |
| | | @Log(title = "捐献案例器官列", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |