liusheng
2024-04-24 a894bc6373154d5cfd28b7f46df3c4cfa01a7b9b
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementSharedController.java
@@ -36,7 +36,7 @@
     * 查询报销申请列表
     */
    @ApiOperation("查询报销申请列表")
    //@PreAuthorize("@ss.hasPermi('system:shared:list')")
    //// @PreAuthorize("@ss.hasPermi('system:shared:list')")
    @GetMapping("/list")
    public TableDataInfo list(ServiceReimbursementShared serviceReimbursementShared)
    {
@@ -49,7 +49,7 @@
     * 导出报销申请列表
     */
    @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)
@@ -63,34 +63,34 @@
     * 获取报销申请详细信息
     */
    @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));
@@ -100,7 +100,7 @@
     * 删除报销申请
     */
    @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)