| | |
| | | @ApiOperation("修改费用申请明细") |
| | | //@PreAuthorize("@ss.hasPermi('project:funddetail:edit')") |
| | | @Log(title = "费用申请明细", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceFunddetail serviceFunddetail) { |
| | | return toAjax(serviceFunddetailService.updateById(serviceFunddetail)); |
| | |
| | | @ApiOperation("删除费用申请明细") |
| | | //@PreAuthorize("@ss.hasPermi('project:funddetail:remove')") |
| | | @Log(title = "费用申请明细", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceFunddetailService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | |
| | | * 删除报销申请明细并修改金额 |
| | | */ |
| | | @ApiOperation("删除报销申请明细并修改金额") |
| | | @Log(title = "报销申请明细", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/deleteDetail/{id}") |
| | | @GetMapping("/deleteDetail/{id}") |
| | | public AjaxResult deleteDetail(@PathVariable Long id) { |
| | | return AjaxResult.success(serviceFunddetailService.deleteDetail(id)); |
| | | } |
| | |
| | | public AjaxResult getFundDetail(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceFunddetailService.getFundDetail(id)); |
| | | } |
| | | |
| | | @ApiOperation("根据条件算税") |
| | | @PostMapping("/calculateTax") |
| | | public AjaxResult calculateTax(@RequestBody List<ServiceFunddetail> serviceFunddetails) { |
| | | return AjaxResult.success(serviceFunddetailService.calculateTax(serviceFunddetails)); |
| | | } |
| | | } |