|
@@ -30,14 +30,14 @@
|
30
|
30
|
</select>
|
31
|
31
|
|
32
|
32
|
<!-- 教师参与教研列表 -->
|
33
|
|
- <select id="listUserResearchs" resultType="com.xhkjedu.sapi.vo.research.ResearchVo">
|
|
33
|
+ <select id="listUserResearchs" resultType="java.util.Map">
|
34
|
34
|
SELECT r.researchid,r.researchname,r.researchcover,r.duration,r.filesize,r.starttime,r.stoptime,r.mp4code,
|
35
|
|
- r.createid,r.createtime,u.username AS createname,r.readnum,r.researchpath,ru.rustate
|
|
35
|
+ r.createid,r.createtime,u.username AS createname,r.readnum,r.researchpath,r.publiced,ru.rustate,ru.schoolid
|
36
|
36
|
FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
|
37
|
37
|
LEFT JOIN t_user u ON r.createid=u.userid
|
38
|
38
|
WHERE ru.userid=#{userid} and r.starttime<=#{timestamp}
|
39
|
39
|
<if test="rustate!=null"> and ru.rustate=#{rustate}</if>
|
40
|
|
- GROUP BY r.researchid ORDER BY ru.rustate
|
|
40
|
+ GROUP BY r.researchid ORDER BY ru.rustate,r.createtime desc
|
41
|
41
|
<if test="rorder=='stoptime'">,r.stoptime DESC</if>
|
42
|
42
|
<if test="rorder=='readnum'">,r.readnum DESC</if>
|
43
|
43
|
<if test="rorder=='createtime'">,r.createtime DESC</if>
|