Browse Source

教研详情返回用户所在学校

tags/正式3.10.1^0
雍文秀 1 year ago
parent
commit
bacf0c43f1
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      sapi/src/main/resources/mapper/research/ResearchUserMapper.xml

+ 2
- 1
sapi/src/main/resources/mapper/research/ResearchUserMapper.xml View File

@@ -57,7 +57,7 @@
57 57
 
58 58
     <!-- 根据id获取教研详细信息 -->
59 59
     <select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
60
-        SELECT r.researchid,r.researchname,r.researchcontent,r.researchpath,r.researchcover,r.duration,r.filesize,r.schoolid,
60
+        SELECT r.researchid,r.researchname,r.researchcontent,r.researchpath,r.researchcover,r.duration,r.filesize,ru.schoolid,
61 61
         r.starttime,r.stoptime,r.readnum,r.mp4code,r.publiced,r.hashb,ru.rustate,ru.ruid,ru.content,ru.reviewtime,u.username createname
62 62
         FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
63 63
         left join t_user u on r.createid=u.userid
@@ -103,6 +103,7 @@
103 103
     <!--教研学校用户-->
104 104
     <select id="listReaearchSchools" resultType="java.util.Map">
105 105
         select ru.schoolid,s.schoolname
106
+        ,count(case when ru.rustate=1 then ru.ruid else null end)num
106 107
         from t_research_user ru
107 108
         left join t_school s on ru.schoolid=s.schoolid
108 109
         where ru.researchid=#{researchid}

Loading…
Cancel
Save