提交标题限制

This commit is contained in:
Guava
2023-07-20 09:15:32 +08:00
parent d86fd54ad4
commit 54fc711cd2

View File

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