|
|
@ -809,6 +809,7 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
scores[8] += sugVo.getMaterial_count();
|
|
|
|
scores[8] += sugVo.getMaterial_count();
|
|
|
|
scores[9] += sugVo.getTpcplan_count();
|
|
|
|
scores[9] += sugVo.getTpcplan_count();
|
|
|
|
if (sugVo.getObserve_lessons() != null) {
|
|
|
|
if (sugVo.getObserve_lessons() != null) {
|
|
|
|
|
|
|
|
//采用set 去重课例ID
|
|
|
|
Set<String> observeLessons = new HashSet<>((List<String>) sugVo.getObserve_lessons());
|
|
|
|
Set<String> observeLessons = new HashSet<>((List<String>) sugVo.getObserve_lessons());
|
|
|
|
// 如果后续需要使用 observeLessons,可以在此处添加逻辑
|
|
|
|
// 如果后续需要使用 observeLessons,可以在此处添加逻辑
|
|
|
|
scores[10] += observeLessons.size();
|
|
|
|
scores[10] += observeLessons.size();
|
|
|
@ -1271,7 +1272,7 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
// 引入缓存,需根据实际情况配置大小和过期时间
|
|
|
|
// 引入缓存,需根据实际情况配置大小和过期时间 每次服务重启时 缓存会清空
|
|
|
|
private static final Cache<String, Map<String, Object>> REQUEST_CACHE = CacheBuilder.newBuilder()
|
|
|
|
private static final Cache<String, Map<String, Object>> REQUEST_CACHE = CacheBuilder.newBuilder()
|
|
|
|
.maximumSize(500)
|
|
|
|
.maximumSize(500)
|
|
|
|
.expireAfterWrite(8, TimeUnit.HOURS)
|
|
|
|
.expireAfterWrite(8, TimeUnit.HOURS)
|
|
|
|