From 55f7e6cdbd00b0ab4a98fb8edde83e16a423baaa Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Wed, 29 Apr 2026 15:17:36 +0800
Subject: [PATCH] 修改minio配置
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExExamRecordServiceImpl.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExExamRecordServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExExamRecordServiceImpl.java
index a95b013..c6f55ea 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExExamRecordServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExExamRecordServiceImpl.java
@@ -13,9 +13,9 @@
import com.gkhy.exam.system.mapper.ExExamRecordMapper;
import com.gkhy.exam.system.mapper.ExStudentMapper;
import com.gkhy.exam.system.service.ExExamRecordService;
-import org.ehcache.core.util.CollectionUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import org.springframework.util.CollectionUtils;
import org.springframework.web.multipart.MultipartFile;
import java.util.ArrayList;
@@ -81,7 +81,7 @@
examRecord.setCreateBy(SecurityUtils.getUsername());
int row=baseMapper.insert(examRecord);
List<RecordFile> files = examRecord.getFiles();
- if (!files.isEmpty()){
+ if (!CollectionUtils.isEmpty(files)){
baseMapper.insertFile(files,examRecord.getId());
}
if(row<1){
--
Gitblit v1.9.2