提交标题限制

This commit is contained in:
Guava
2023-07-20 09:16:03 +08:00
parent 54fc711cd2
commit 5099ab15c9

View File

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