liusheng
2025-01-02 b6dd47b05107fc36d8ff4f7f29a4446521f95503
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFunddetailSharedController.java
@@ -1,4 +1,4 @@
package com.ruoyi.project.controller;
package com.ruoyi.web.controller.project;
import java.util.Arrays;
import java.util.List;
@@ -42,7 +42,7 @@
     * 查询费用申请明细列表
     */
    @ApiOperation("查询费用申请明细列表")
    @PreAuthorize("@ss.hasPermi('project:funddetailshared:list')")
    // @PreAuthorize("@ss.hasPermi('project:funddetailshared:list')")
    @GetMapping("/list")
    public TableDataInfo list(ServiceFunddetailShared serviceFunddetailShared)
    {
@@ -55,7 +55,7 @@
     * 导出费用申请明细列表
     */
    @ApiOperation("导出费用申请明细列表")
    @PreAuthorize("@ss.hasPermi('project:funddetailshared:export')")
    // @PreAuthorize("@ss.hasPermi('project:funddetailshared:export')")
    @Log(title = "费用申请明细", businessType = BusinessType.EXPORT)
    @GetMapping("/export")
    public AjaxResult export(ServiceFunddetailShared serviceFunddetailShared)
@@ -69,7 +69,7 @@
     * 获取费用申请明细详细信息
     */
    @ApiOperation("获取费用申请明细详细信息")
    @PreAuthorize("@ss.hasPermi('project:funddetailshared:query')")
    // @PreAuthorize("@ss.hasPermi('project:funddetailshared:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
@@ -80,22 +80,23 @@
     * 新增费用申请明细
     */
    @ApiOperation("新增费用申请明细")
    @PreAuthorize("@ss.hasPermi('project:funddetailshared:add')")
    // @PreAuthorize("@ss.hasPermi('project:funddetailshared:add')")
    @Log(title = "费用申请明细", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    @RepeatSubmit
    public AjaxResult add(@RequestBody ServiceFunddetailShared serviceFunddetailShared)
    {
        return toAjax(serviceFunddetailSharedService.save(serviceFunddetailShared));
        boolean save = serviceFunddetailSharedService.save(serviceFunddetailShared);
        return AjaxResult.success(serviceFunddetailShared);
    }
    /**
     * 修改费用申请明细
     */
    @ApiOperation("修改费用申请明细")
    @PreAuthorize("@ss.hasPermi('project:funddetailshared:edit')")
    // @PreAuthorize("@ss.hasPermi('project:funddetailshared:edit')")
    @Log(title = "费用申请明细", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    @RepeatSubmit    
    public AjaxResult edit(@RequestBody ServiceFunddetailShared serviceFunddetailShared)
    {
@@ -106,9 +107,9 @@
     * 删除费用申请明细
     */
    @ApiOperation("删除费用申请明细")
    @PreAuthorize("@ss.hasPermi('project:funddetailshared:remove')")
    // @PreAuthorize("@ss.hasPermi('project:funddetailshared:remove')")
    @Log(title = "费用申请明细", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(serviceFunddetailSharedService.removeByIds(Arrays.asList(ids)));