|
@@ -160,10 +160,10 @@
|
|
|
</if>
|
|
|
<if test="param.homeworkStatus != null">
|
|
|
<choose>
|
|
|
- <when test="param.homeworkStatus == 'NOTREVIEW'">
|
|
|
+ <when test="param.homeworkStatus.code == 'NOTREVIEW'">
|
|
|
and a.commitNum > a.repliedNum
|
|
|
</when>
|
|
|
- <when test="param.homeworkStatus == 'NOTCOMMIT'">
|
|
|
+ <when test="param.homeworkStatus.code == 'NOTCOMMIT'">
|
|
|
and a.studentNum > a.commitNum
|
|
|
</when>
|
|
|
<otherwise>
|
|
@@ -338,6 +338,9 @@
|
|
|
s.username_ as studentName,
|
|
|
s.phone_ as studentAvatar,
|
|
|
if(sch.id_ is not null,1,0) as submitHomework,
|
|
|
+ (case when sch.id_ is null then 'NOTCOMMIT'
|
|
|
+ when sch.teacher_replied_ is not null or sch.teacher_replied_ != '' then 'NOTREVIEW'
|
|
|
+ else 'REVIEWED' end ) as homeworkStatus,
|
|
|
(select group_concat(s2.name_) from subject s2
|
|
|
where find_in_set(s2.id_,st.subject_id_) and s2.del_flag_ = 0 ) as subjectName
|
|
|
|