|
|
@@ -35,6 +35,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.DayOfWeek;
|
|
|
import java.time.LocalDate;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
@@ -186,6 +187,7 @@ public class ClassTimeStatisticsServiceImpl extends MPJBaseServiceImpl<ClassTime
|
|
|
//去重并存到map中
|
|
|
deleteMap.put(classId, new HashSet<>(dateList));
|
|
|
}
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
|
|
//查询所有老师发起顶课通过的数量(只查询事假、病假),也要分别计算早自习、晚自习、正课、如果日期出入课时删除中,也需要跳过
|
|
|
List<CourseListVo> allSubstituteList = this.baseMapper.getSubstituteList(statistics);
|
|
|
@@ -247,12 +249,16 @@ public class ClassTimeStatisticsServiceImpl extends MPJBaseServiceImpl<ClassTime
|
|
|
}
|
|
|
|
|
|
if(courseListVo.getAdjustType() != null && !courseListVo.getAdjustType().isEmpty()){
|
|
|
- if(CourseAdjustTypeEnum.courseSubstitute.getCode().equals(courseListVo.getAdjustType())){
|
|
|
- classTime10 += weightSetMap.get(courseListVo.getShortName());
|
|
|
- }else if(CourseAdjustTypeEnum.courseExchange.getCode().equals(courseListVo.getAdjustType())){
|
|
|
+ if(CourseAdjustTypeEnum.courseExchange.getCode().equals(courseListVo.getAdjustType())){
|
|
|
classTime11 += weightSetMap.get(courseListVo.getShortName());
|
|
|
}
|
|
|
}
|
|
|
+ JsonObject courseJson = new JsonObject();
|
|
|
+ courseJson.addProperty("type", courseListVo.getShortName());
|
|
|
+ courseJson.addProperty("scheduleDate", courseListVo.getScheduleDate().format(formatter));
|
|
|
+ courseJson.addProperty("content", courseListVo.getClassName() + "," + courseListVo.getCourseName());
|
|
|
+ courseJson.addProperty("adjustType", courseListVo.getAdjustType());
|
|
|
+ allClassTimeDataArray.add(courseJson);
|
|
|
}
|
|
|
record.setClassTime7(classTime7);
|
|
|
record.setClassTime8(classTime8);
|