From 6892c31200a7ed1b0e60ee5aff794b1fcecc7ef6 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 01 十一月 2023 16:28:06 +0800
Subject: [PATCH] 解决文件上传时,文件名重复问题
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseFinancesubjectController.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseFinancesubjectController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseFinancesubjectController.java
index 7825127..21f906c 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseFinancesubjectController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseFinancesubjectController.java
@@ -89,7 +89,7 @@
@ApiOperation("淇敼鏀跺叆璐圭敤绉戠洰")
//@PreAuthorize("@ss.hasPermi('project:financesubject:edit')")
@Log(title = "鏀跺叆璐圭敤绉戠洰", businessType = BusinessType.UPDATE)
- @PutMapping
+ @PostMapping("/edit")
@RepeatSubmit
public AjaxResult edit(@RequestBody BaseFinancesubject baseFinancesubject)
{
@@ -102,7 +102,7 @@
@ApiOperation("鍒犻櫎鏀跺叆璐圭敤绉戠洰")
//@PreAuthorize("@ss.hasPermi('project:financesubject:remove')")
@Log(title = "鏀跺叆璐圭敤绉戠洰", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
+ @GetMapping("/remove/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(baseFinancesubjectService.removeByIds(Arrays.asList(ids)));
--
Gitblit v1.9.3