| | |
| | | @Slf4j |
| | | @Api("捐献器官获取") |
| | | @RestController |
| | | @RequestMapping("/system/donationwitnessorgan") |
| | | @RequestMapping("/project/donationwitnessorgan") |
| | | public class ServiceDonationwitnessorganController extends BaseController { |
| | | @Autowired |
| | | private IServiceDonationwitnessorganService serviceDonationwitnessorganService; |
| | |
| | | * 查询捐献器官获取列表 |
| | | */ |
| | | @ApiOperation("查询捐献器官获取列表") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:list')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | startPage(); |
| | |
| | | * 导出捐献器官获取列表 |
| | | */ |
| | | @ApiOperation("导出捐献器官获取列表") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:export')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:export')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | |
| | | * 获取捐献器官获取详细信息 |
| | | */ |
| | | @ApiOperation("获取捐献器官获取详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonationwitnessorganService.getById(id)); |
| | | } |
| | |
| | | * 新增捐献器官获取 |
| | | */ |
| | | @ApiOperation("新增捐献器官获取") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:add')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:add')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | return toAjax(serviceDonationwitnessorganService.save(serviceDonationwitnessorgan)); |
| | | boolean save = serviceDonationwitnessorganService.save(serviceDonationwitnessorgan); |
| | | return AjaxResult.success(serviceDonationwitnessorgan); |
| | | } |
| | | |
| | | /** |
| | | * 修改捐献器官获取 |
| | | */ |
| | | @ApiOperation("修改捐献器官获取") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:edit')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | return toAjax(serviceDonationwitnessorganService.updateById(serviceDonationwitnessorgan)); |
| | |
| | | * 删除捐献器官获取 |
| | | */ |
| | | @ApiOperation("删除捐献器官获取") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:remove')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonationwitnessorganService.removeByIds(Arrays.asList(ids))); |
| | | } |