|
@@ -199,20 +199,20 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
|
|
|
Index++;
|
|
|
CourseSectionAddBo bo = new CourseSectionAddBo();
|
|
|
if(!Validator.isNotEmpty(sectionImport.getName())){
|
|
|
- errorLog+="第"+Index+"条:"+"节标题空白\n";
|
|
|
+ errorLog+="第"+Index+"条:"+"节标题空白。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
if(!Validator.isNotEmpty(sectionImport.getPrefixName())){
|
|
|
- errorLog+="第"+Index+"条:"+"标题前缀空白\n";
|
|
|
+ errorLog+="第"+Index+"条:"+"标题前缀空白。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
if(!Validator.isNotEmpty(sectionImport.getPrefixName())){
|
|
|
- errorLog+="第"+Index+"条:"+"标题前缀空白\n";
|
|
|
+ errorLog+="第"+Index+"条:"+"标题前缀空白。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
System.out.println(sectionImport);
|
|
|
if(!Validator.isNotEmpty(sectionImport.getPublishStatus())){
|
|
|
- errorLog+="第"+Index+"条:"+"发布状态空白\n";
|
|
|
+ errorLog+="第"+Index+"条:"+"发布状态空白。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
//业务层次,导入每条只有一条业务层次
|
|
@@ -220,27 +220,27 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
|
|
|
CourseSectionBusinessAddBo addBo = new CourseSectionBusinessAddBo();
|
|
|
Long eduId = findEduId(sectionImport.getEducationType());
|
|
|
if(!Validator.isNotEmpty(eduId)){
|
|
|
- errorLog+="第"+Index+"条:"+sectionImport.getEducationType()+"-该教育类型不存在\n";
|
|
|
+ errorLog+="第"+Index+"条:"+sectionImport.getEducationType()+"-该教育类型不存在。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
Long projectId = findProjectId(sectionImport.getProject());
|
|
|
if(!Validator.isNotEmpty(projectId)){
|
|
|
- errorLog+="第"+Index+"条:"+sectionImport.getProject()+"-该项目类型不存在\n";
|
|
|
+ errorLog+="第"+Index+"条:"+sectionImport.getProject()+"-该项目类型不存在。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
Long businessId = findBusinessId(sectionImport.getBusiness());
|
|
|
if(!Validator.isNotEmpty(businessId)){
|
|
|
- errorLog+="第"+Index+"条:"+sectionImport.getBusiness()+"-该业务层次不存在\n";
|
|
|
+ errorLog+="第"+Index+"条:"+sectionImport.getBusiness()+"-该业务层次不存在。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
Long subjectId = findSubjectId(sectionImport.getSubject());
|
|
|
if(!Validator.isNotEmpty(subjectId)){
|
|
|
- errorLog+="第"+Index+"条:"+sectionImport.getSubject()+"-该科目不存在\n";
|
|
|
+ errorLog+="第"+Index+"条:"+sectionImport.getSubject()+"-该科目不存在。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
Integer sectionType = findType(sectionImport.getSectionType());
|
|
|
if(!Validator.isNotEmpty(sectionType)){
|
|
|
- errorLog+="第"+Index+"条:"+sectionImport.getSectionType()+"-该节类型不存在\n";
|
|
|
+ errorLog+="第"+Index+"条:"+sectionImport.getSectionType()+"-该节类型不存在。\r\n";
|
|
|
continue;
|
|
|
}
|
|
|
addBo.setEducationTypeId(eduId);
|