|
@@ -32,7 +32,7 @@
|
32
|
32
|
<!-- 教师参与教研列表 -->
|
33
|
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,r.publiced,ru.rustate,ru.schoolid
|
|
35
|
+ r.createid,r.createtime,u.username AS createname,r.readnum,r.researchpath,r.publiced,r.schoolid,ru.rustate
|
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}
|
|
@@ -51,7 +51,7 @@
|
51
|
51
|
<!-- 根据id获取教研详细信息 -->
|
52
|
52
|
<select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
|
53
|
53
|
SELECT r.researchid,r.researchname,r.researchcontent,r.researchpath,r.researchcover,r.duration,r.filesize,
|
54
|
|
- r.starttime,r.stoptime,r.readnum,r.mp4code,ru.rustate,ru.content,ru.reviewtime
|
|
54
|
+ r.starttime,r.stoptime,r.readnum,r.mp4code,r.publiced,ru.rustate,ru.content,ru.reviewtime
|
55
|
55
|
FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
|
56
|
56
|
WHERE r.researchid=#{researchid} AND ru.userid=#{userid} limit 1
|
57
|
57
|
</select>
|