| | |
| | | package com.ruoyi.project.controller; |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | |
| | | * 查询报销申请明细列表 |
| | | */ |
| | | @ApiOperation("查询报销申请明细列表") |
| | | @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:list')") |
| | | // @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceReimbursementdetailShared serviceReimbursementdetailShared) |
| | | { |
| | |
| | | * 导出报销申请明细列表 |
| | | */ |
| | | @ApiOperation("导出报销申请明细列表") |
| | | @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:export')") |
| | | // @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:export')") |
| | | @Log(title = "报销申请明细", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceReimbursementdetailShared serviceReimbursementdetailShared) |
| | |
| | | * 获取报销申请明细详细信息 |
| | | */ |
| | | @ApiOperation("获取报销申请明细详细信息") |
| | | @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:query')") |
| | | // @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | * 新增报销申请明细 |
| | | */ |
| | | @ApiOperation("新增报销申请明细") |
| | | @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:add')") |
| | | // @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:add')") |
| | | @Log(title = "报销申请明细", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceReimbursementdetailShared serviceReimbursementdetailShared) |
| | | { |
| | | return toAjax(serviceReimbursementdetailSharedService.save(serviceReimbursementdetailShared)); |
| | | boolean save = serviceReimbursementdetailSharedService.save(serviceReimbursementdetailShared); |
| | | return AjaxResult.success(serviceReimbursementdetailShared); |
| | | } |
| | | |
| | | /** |
| | | * 修改报销申请明细 |
| | | */ |
| | | @ApiOperation("修改报销申请明细") |
| | | @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:edit')") |
| | | @Log(title = "报销申请明细", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceReimbursementdetailShared serviceReimbursementdetailShared) |
| | | { |
| | |
| | | * 删除报销申请明细 |
| | | */ |
| | | @ApiOperation("删除报销申请明细") |
| | | @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('project:reimbursementdetailshared:remove')") |
| | | @Log(title = "报销申请明细", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(serviceReimbursementdetailSharedService.removeByIds(Arrays.asList(ids))); |