| | |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.PageDomain; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.core.page.TableSupport; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | |
| | | * 查询捐献器官列表 |
| | | */ |
| | | @ApiOperation("查询捐献器官列表") |
| | | @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:list')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | | log.info("查询捐献器官列表的入参:{}", serviceDonorchargeorgan); |
| | |
| | | serviceDonorchargeorganVO.setAnnexFilesList(rbDetailFiles); |
| | | } |
| | | } |
| | | |
| | | return getDataTable(serviceDonorchargeorganVOList); |
| | | return getDataTable2(serviceDonorchargeorganVOList, list); |
| | | } |
| | | |
| | | /** |
| | | * 导出捐献器官列表 |
| | | */ |
| | | @ApiOperation("导出捐献器官列表") |
| | | @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:export')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:export')") |
| | | @Log(title = "捐献器官", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | |
| | | * 获取捐献器官详细信息 |
| | | */ |
| | | @ApiOperation("获取捐献器官详细信息") |
| | | @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:query')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonorchargeorganService.getById(id)); |
| | |
| | | * 新增捐献器官 |
| | | */ |
| | | @ApiOperation("新增捐献器官") |
| | | @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:add')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:add')") |
| | | @Log(title = "捐献器官", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | |
| | | * 修改捐献器官 |
| | | */ |
| | | @ApiOperation("修改捐献器官") |
| | | @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:edit')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:edit')") |
| | | @Log(title = "捐献器官", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | * 删除捐献器官 |
| | | */ |
| | | @ApiOperation("删除捐献器官") |
| | | @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:remove')") |
| | | // // @PreAuthorize("@ss.hasPermi('project:donorchargeorgan:remove')") |
| | | @Log(title = "捐献器官", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | |
| | | @ApiOperation("收费统计") |
| | | @PostMapping("/getListBySpStatChange") |
| | | public TableDataInfo getListBySpStatChange(SpStatChangeReq spStatChangeReq) { |
| | | public TableDataInfo getListBySpStatChange(@RequestBody SpStatChangeReq spStatChangeReq) { |
| | | return getDataTable(serviceDonorchargeorganService.getListBySpStatChange(spStatChangeReq)); |
| | | } |
| | | } |