|
@@ -196,6 +196,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
|
|
int i=10;
|
|
int i=10;
|
|
int Index = 0;
|
|
int Index = 0;
|
|
for (CourseSectionImport sectionImport : sectionList) {
|
|
for (CourseSectionImport sectionImport : sectionList) {
|
|
|
|
+
|
|
Index++;
|
|
Index++;
|
|
CourseSectionAddBo bo = new CourseSectionAddBo();
|
|
CourseSectionAddBo bo = new CourseSectionAddBo();
|
|
if(!Validator.isNotEmpty(sectionImport.getName())){
|
|
if(!Validator.isNotEmpty(sectionImport.getName())){
|
|
@@ -255,12 +256,15 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
|
|
bo.setStatus(1);
|
|
bo.setStatus(1);
|
|
bo.setCoverUrl("oss/images/avatar/20211013/1634097664410_1397766697");
|
|
bo.setCoverUrl("oss/images/avatar/20211013/1634097664410_1397766697");
|
|
if(Validator.isNotEmpty(sectionImport.getLiveStartTime())){
|
|
if(Validator.isNotEmpty(sectionImport.getLiveStartTime())){
|
|
- Long startTime = sectionImport.getLiveStartTime().getTime()/1000;
|
|
|
|
- bo.setLiveStartTime(startTime);
|
|
|
|
|
|
+
|
|
|
|
+ System.out.println(sectionImport.getLiveStartTime());
|
|
|
|
+ System.out.println("开始时间");
|
|
|
|
+ /* Long startTime = sectionImport.getLiveStartTime().getTime()/1000;
|
|
|
|
+ bo.setLiveStartTime(startTime);*/
|
|
}
|
|
}
|
|
if(Validator.isNotEmpty(sectionImport.getLiveEndTime())){
|
|
if(Validator.isNotEmpty(sectionImport.getLiveEndTime())){
|
|
- Long endTime = sectionImport.getLiveEndTime().getTime()/1000;
|
|
|
|
- bo.setLiveEndTime(endTime);
|
|
|
|
|
|
+ /*Long endTime = sectionImport.getLiveEndTime().getTime()/1000;
|
|
|
|
+ bo.setLiveEndTime(endTime);*/
|
|
}
|
|
}
|
|
errorLog = insertByAddBoImport(bo,errorLog,Index);
|
|
errorLog = insertByAddBoImport(bo,errorLog,Index);
|
|
i++;
|
|
i++;
|