| | |
| | | * 查询捐献器官获取列表 |
| | | */ |
| | | @ApiOperation("查询捐献器官获取列表") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:list')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | startPage(); |
| | |
| | | * 导出捐献器官获取列表 |
| | | */ |
| | | @ApiOperation("导出捐献器官获取列表") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:export')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:export')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | |
| | | * 获取捐献器官获取详细信息 |
| | | */ |
| | | @ApiOperation("获取捐献器官获取详细信息") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:query')") |
| | | // // @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('project:donationwitnessorgan:add')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:add')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | |
| | | * 修改捐献器官获取 |
| | | */ |
| | | @ApiOperation("修改捐献器官获取") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:edit')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:edit')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | * 删除捐献器官获取 |
| | | */ |
| | | @ApiOperation("删除捐献器官获取") |
| | | // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:remove')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donationwitnessorgan:remove')") |
| | | @Log(title = "捐献器官获取", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | ServiceDonationwitnessorgan serviceDonationwitnessorgan2 = new ServiceDonationwitnessorgan(); |
| | | serviceDonationwitnessorgan2.setInfoid(serviceDonationwitnessorgan.getInfoid()); |
| | | serviceDonationwitnessorgan2.setOrganno(serviceDonationwitnessorgan.getOrganno()); |
| | | serviceDonationwitnessorgan2.setDel_flag(0); |
| | | List<ServiceDonationwitnessorgan> serviceDonationwitnessorgans = serviceDonationwitnessorganService.queryList(serviceDonationwitnessorgan2); |
| | | log.info("serviceDonationwitnessorgans的数量为 : {},infoid为:{},Organno为:{}", serviceDonationwitnessorgans.size(), serviceDonationwitnessorgan.getInfoid(), serviceDonationwitnessorgan.getOrganno()); |
| | | if (!CollectionUtils.isEmpty(serviceDonationwitnessorgans)) { |