|
@@ -1310,8 +1310,10 @@ public class LibJoinQueryDaoImpl implements ILibJoinQueryDao{
|
|
|
selSQL.append("(SELECT count(DISTINCT a.homework_id) from scon_homework_picture a where a.teacher_id = t.user_id and a.is_mark in (0,2) and a.is_feedback = 0) as waitNums, \n");
|
|
|
selSQL.append("(SELECT concat(SEC_TO_TIME(TIMESTAMPDIFF(SECOND,min(a.allot_time),NOW())),'') from scon_homework_picture a where a.teacher_id = t.user_id and a.is_mark in (0,2) and a.is_feedback = 0) as waitMaxTime, \n");
|
|
|
selSQL.append("t.user_id as teacherId,t.name as teacherName, \n");
|
|
|
- selSQL.append("(select concat(SEC_TO_TIME(sum(a.correction_time)),'') from scon_homework_picture a where a.teacher_id = t.user_id and a.is_mark in (0,2) and a.is_feedback=1) as todayCorrectTime, \n");
|
|
|
- selSQL.append("(select concat(SEC_TO_TIME(floor(sum(a.correction_time)/count(1))),'') from scon_homework_picture a where a.teacher_id = t.user_id and a.is_mark in (0,2) and a.is_feedback=1) as efficiency, \n");
|
|
|
+ selSQL.append("(select concat(SEC_TO_TIME(sum(a.correction_time)),'') from scon_homework_picture a where a.teacher_id = t.user_id and a.is_mark in (0,2) and a.is_feedback=1 and t.create_time > ?) as todayCorrectTime, \n");
|
|
|
+ queryParams.add(params.get("beginTime"));
|
|
|
+ selSQL.append("(select concat(SEC_TO_TIME(floor(sum(TIMESTAMPDIFF(SECOND,a.allot_time,b.start_time))/count(1))),'') from scon_homework_picture a join scon_homework_picture_correct b on a.id = b.homework_picture_id and b.type=8 where a.teacher_id = t.user_id and a.is_mark in (0,2) and a.is_feedback=1 and t.create_time > ?) as efficiency, \n");
|
|
|
+ queryParams.add(params.get("beginTime"));
|
|
|
selSQL.append("t.is_online as state \n");
|
|
|
selSQL.append("from tb_lib_manager t \n");
|
|
|
selSQL.append("where t.type=30 \n");
|