|
@@ -83,6 +83,7 @@
|
83
|
83
|
select ru.ruid,ru.userid,ru.content,ru.reviewtime,ru.createtime,u.username,u.headpic
|
84
|
84
|
from t_research_user ru left join t_user u on ru.userid=u.userid
|
85
|
85
|
where ru.researchid=#{researchid} and ru.rustate=1 and ru.schoolid=#{schoolid}
|
|
86
|
+ <if test="userid!=null and userid!=0">and ru.userid=#{userid}</if>
|
86
|
87
|
order by ru.reviewtime desc
|
87
|
88
|
</select>
|
88
|
89
|
|
|
@@ -100,16 +101,16 @@
|
100
|
101
|
</collection>
|
101
|
102
|
</resultMap>
|
102
|
103
|
<!--教研学校用户-->
|
103
|
|
- <select id="listReaearchSchools" resultMap="researchSchoolUser">
|
104
|
|
- select ru.schoolid,s.schoolname,ru.ruid,ru.userid,ru.content,ru.reviewtime,ru.rustate,
|
105
|
|
- u.username createname,u.headpic
|
106
|
|
- from t_research_user ru left join t_user u on ru.userid=u.userid
|
|
104
|
+ <select id="listReaearchSchools" resultType="java.util.Map">
|
|
105
|
+ select ru.schoolid,s.schoolname
|
|
106
|
+ from t_research_user ru
|
107
|
107
|
left join t_school s on ru.schoolid=s.schoolid
|
108
|
108
|
where ru.researchid=#{researchid}
|
109
|
109
|
<if test="publiced!=null and publiced==1">
|
110
|
110
|
and ru.schoolid=#{schoolid}
|
111
|
111
|
</if>
|
112
|
|
- order by ru.schoolid=#{schoolid},ru.schoolid,ru.reviewtime desc
|
|
112
|
+ group by ru.schoolid
|
|
113
|
+ order by if(ru.schoolid=#{schoolid},0,ru.schoolid),ru.reviewtime desc
|
113
|
114
|
</select>
|
114
|
115
|
|
115
|
116
|
<!--根据教研教师id获取教研截至时间-->
|