|
@@ -343,7 +343,7 @@ public class HomeworkQueryDaoImpl implements HomeworkQueryDao {
|
|
|
selSQL.append("max(t11.end_time) as end_time,\n");
|
|
|
selSQL.append("min(t.create_time) as create_time,\n");
|
|
|
selSQL.append("sum(t11.correction_time) as correction_time,\n");
|
|
|
- selSQL.append("floor(sum(t11.correction_time)/ count(1)) as next_1,\n");
|
|
|
+ selSQL.append("floor(sum(t11.correction_time)/ count(if(t.is_feedback = 1,true,null))) as next_1,\n");
|
|
|
selSQL.append("min(t.is_feedback) as is_feedback\n");
|
|
|
selSQL.append("from scon_homework_picture t\n");
|
|
|
selSQL.append("left join scon_homework t14 on t.homework_id = t14.id\n");
|