| | |
| | | @ApiOperation("新增报销申请明细") |
| | | @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')") |
| | | @Log(title = "报销申请明细", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceReimbursementdetailShared serviceReimbursementdetailShared) |
| | | { |
| | |
| | | @ApiOperation("删除报销申请明细") |
| | | @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))); |