|
@@ -895,6 +895,9 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
String buffer = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
Long sort = 1L;
|
|
|
+ if(Validator.isEmpty(file)){
|
|
|
+ throw new CustomException("请选择文件");
|
|
|
+ }
|
|
|
try {
|
|
|
Long nowTime = DateUtils.getNowTime();
|
|
|
String path = file.getOriginalFilename();
|
|
@@ -1273,6 +1276,9 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
String buffer = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
Long sort = 1L;
|
|
|
+ if(Validator.isEmpty(file)){
|
|
|
+ throw new CustomException("请选择文件");
|
|
|
+ }
|
|
|
try {
|
|
|
Long nowTime = DateUtils.getNowTime();
|
|
|
String path = file.getOriginalFilename();
|