修改模版限制

This commit is contained in:
Guava
2023-07-20 09:13:33 +08:00
parent 4060caef49
commit d86fd54ad4

View File

@@ -38,9 +38,9 @@ public class CasesRecommendLaunchImportServiceImpl implements ICasesRecommendLau
if (CollectionUtil.isEmpty(dataList) || dataList.size() < 1) { if (CollectionUtil.isEmpty(dataList) || dataList.size() < 1) {
throw new RuntimeException("导入数据为空"); throw new RuntimeException("导入数据为空");
} }
if (dataList.size() == 1) { if (dataList.size() >= 1) {
String caseTitle = dataList.get(0).get(0).toString(); String caseTitle = dataList.get(0).get(0).toString();
if (!"标题".equals(caseTitle)) { if (!"标题".equals(caseTitle.trim())) {
throw new RuntimeException("导入模版错误"); throw new RuntimeException("导入模版错误");
} }
} }