| | |
| | | * 查询捐献流程列表 |
| | | */ |
| | | @ApiOperation("查询捐献流程") |
| | | //@PreAuthorize("@ss.hasPermi('system:donateflowchart:list')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:donateflowchart:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonateflowchart serviceDonateflowchart) { |
| | | startPage(); |
| | |
| | | * 导出捐献流程列表 |
| | | */ |
| | | @ApiOperation("导出捐献流程") |
| | | //@PreAuthorize("@ss.hasPermi('system:donateflowchart:export')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:donateflowchart:export')") |
| | | @Log(title = "捐献流程", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonateflowchart serviceDonateflowchart) { |
| | |
| | | * 获取捐献流程详细信息 |
| | | */ |
| | | @ApiOperation("通过id获取捐献流程") |
| | | //@PreAuthorize("@ss.hasPermi('system:donateflowchart:query')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:donateflowchart:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonateflowchartService.getById(id)); |
| | |
| | | * 新增捐献流程 |
| | | */ |
| | | @ApiOperation("新增捐献流程") |
| | | //@PreAuthorize("@ss.hasPermi('system:donateflowchart:add')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:donateflowchart:add')") |
| | | @Log(title = "捐献流程", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonateflowchart serviceDonateflowchart) { |
| | | return toAjax(serviceDonateflowchartService.save(serviceDonateflowchart)); |
| | | boolean save = serviceDonateflowchartService.save(serviceDonateflowchart); |
| | | return AjaxResult.success(serviceDonateflowchart); |
| | | } |
| | | |
| | | /** |
| | | * 修改捐献流程 |
| | | */ |
| | | @ApiOperation("修改捐献流程") |
| | | //@PreAuthorize("@ss.hasPermi('system:donateflowchart:edit')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:donateflowchart:edit')") |
| | | @Log(title = "捐献流程", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | * 删除捐献流程 |
| | | */ |
| | | @ApiOperation("删除捐献流程") |
| | | //@PreAuthorize("@ss.hasPermi('system:donateflowchart:remove')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:donateflowchart:remove')") |
| | | @Log(title = "捐献流程", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |