From 1e6da8acad923c6a6ecf14e35878732596ee625b Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 25 Jul 2024 11:35:12 +0800 Subject: [PATCH] =?UTF-8?q?2024-07-25=20=E6=9B=B4=E6=96=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xujie/sys/modules/sys/service/impl/SysFileServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/xujie/sys/modules/sys/service/impl/SysFileServiceImpl.java b/src/main/java/com/xujie/sys/modules/sys/service/impl/SysFileServiceImpl.java index 98350bf7..ff17b97b 100644 --- a/src/main/java/com/xujie/sys/modules/sys/service/impl/SysFileServiceImpl.java +++ b/src/main/java/com/xujie/sys/modules/sys/service/impl/SysFileServiceImpl.java @@ -15,6 +15,7 @@ import org.apache.shiro.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; import java.io.File; @@ -45,6 +46,7 @@ public class SysFileServiceImpl implements SysFileService { private String filePath; @Override + @Transactional public List upload(MultipartFile[] list, GetParamInData inData) { if (Objects.isNull(list) || list.length == 0) { throw new XJException("上传文件不能为空");