解决我发布的作业中已评和未评统计数据错误
This commit is contained in:
parent
d99ec1db10
commit
629c1e849d
|
@ -14,11 +14,11 @@
|
|||
<p class="sy_cgrey clear">
|
||||
<span class="mr15 fl"><%= (cur_homework_end_time homework).html_safe %></span>
|
||||
<span class="fl">未交:</span>
|
||||
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.homework_type == 3 ? '--' : (homework.course.student.count - homework.student_works.has_committed.count) %></span>
|
||||
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.course.student.count - homework.student_works.has_committed.count %></span>
|
||||
<span class="fl c_green">已评:</span>
|
||||
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.student_works.has_committed.count - homework.student_works.has_committed.where("teacher_score is null and teaching_asistant_score is null").count %></span>
|
||||
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.student_works.where("work_status != 0 and (teacher_score is not null or teaching_asistant_score is not null)").count %></span>
|
||||
<span class="fl c_red">未评:</span>
|
||||
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.student_works.has_committed.count %></span>
|
||||
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.student_works.where("work_status != 0 and teacher_score is null and teaching_asistant_score is null").count %></span>
|
||||
</p>
|
||||
</div>
|
||||
<% if homework.student_works.has_committed.count == 0 %>
|
||||
|
|
Loading…
Reference in New Issue