| | |
| | | * 查询报销申请列表 |
| | | */ |
| | | @ApiOperation("查询报销申请列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:list')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:shared:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | |
| | | * 导出报销申请列表 |
| | | */ |
| | | @ApiOperation("导出报销申请列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:export')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:shared:export')") |
| | | @Log(title = "报销申请", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceReimbursementShared serviceReimbursementShared) |
| | |
| | | * 获取报销申请详细信息 |
| | | */ |
| | | @ApiOperation("获取报销申请详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:query')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:shared:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return AjaxResult.success(serviceReimbursementSharedService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增报销申请 |
| | | */ |
| | | @ApiOperation("新增报销申请") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:add')") |
| | | @Log(title = "报销申请", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | | return toAjax(serviceReimbursementSharedService.save(serviceReimbursementShared)); |
| | | } |
| | | // /** |
| | | // * 新增报销申请 |
| | | // */ |
| | | // @ApiOperation("新增报销申请") |
| | | // //// @PreAuthorize("@ss.hasPermi('system:shared:add')") |
| | | // @Log(title = "报销申请", businessType = BusinessType.INSERT) |
| | | // @PostMapping |
| | | // @RepeatSubmit |
| | | // public AjaxResult add(@RequestBody ServiceReimbursementShared serviceReimbursementShared) |
| | | // { |
| | | // return toAjax(serviceReimbursementSharedService.save(serviceReimbursementShared)); |
| | | // } |
| | | |
| | | /** |
| | | * 修改报销申请 |
| | | */ |
| | | @ApiOperation("修改报销申请") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:edit')") |
| | | //// @PreAuthorize("@ss.hasPermi('system:shared:edit')") |
| | | @Log(title = "报销申请", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | | return toAjax(serviceReimbursementSharedService.updateById(serviceReimbursementShared)); |
| | |
| | | * 删除报销申请 |
| | | */ |
| | | @ApiOperation("删除报销申请") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:shared:remove')") |
| | | @Log(title = "报销申请", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |