Browse Source

Merge remote-tracking branch 'origin/wn' into ywx

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
9d2ccca051

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/controller/research/ResearchUserController.java View File

49
             research.setRorder("stoptime");
49
             research.setRorder("stoptime");
50
         }
50
         }
51
         PageHelper.startPage(research.getPage(), research.getPageSize());
51
         PageHelper.startPage(research.getPage(), research.getPageSize());
52
-        List<Map> list = researchUserService.listRusersByReaearchid(research.getResearchid());
52
+        List<Map> list = researchUserService.listRusersByReaearchid(research.getResearchid(),research.getSchoolid());
53
         PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
53
         PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
54
         return new ResultVo(0,"获取教研用户列表成功",pageResult);
54
         return new ResultVo(0,"获取教研用户列表成功",pageResult);
55
     }
55
     }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/mapper/research/ResearchUserMapper.java View File

54
      * @param  * @param researchid
54
      * @param  * @param researchid
55
      * @return java.util.List<com.xhkjedu.model.research.TResearchUser>
55
      * @return java.util.List<com.xhkjedu.model.research.TResearchUser>
56
      */
56
      */
57
-    List<Map> listRusersByReaearchid(@Param("researchid") Integer researchid);
57
+    List<Map> listRusersByReaearchid(@Param("researchid") Integer researchid,@Param("schoolid") Integer schoolid);
58
 
58
 
59
 
59
 
60
     /**
60
     /**

+ 3
- 2
sapi/src/main/java/com/xhkjedu/sapi/service/research/ResearchUserService.java View File

35
      * @param  * @param researchid
35
      * @param  * @param researchid
36
      * @return java.util.List<com.xhkjedu.model.research.TResearchUser>
36
      * @return java.util.List<com.xhkjedu.model.research.TResearchUser>
37
      */
37
      */
38
-    public List<Map> listRusersByReaearchid(Integer researchid){
39
-        return researchUserMapper.listRusersByReaearchid(researchid);
38
+    public List<Map> listRusersByReaearchid(Integer researchid,Integer schoolid){
39
+        return researchUserMapper.listRusersByReaearchid(researchid,schoolid);
40
     }
40
     }
41
 
41
 
42
     /**
42
     /**
67
         if (!researchUserVo.getMp4code().equals("h264")) {
67
         if (!researchUserVo.getMp4code().equals("h264")) {
68
             messageSender.convertVideo(researchUserVo.getResearchid(), researchUserVo.getResearchpath());
68
             messageSender.convertVideo(researchUserVo.getResearchid(), researchUserVo.getResearchpath());
69
         }
69
         }
70
+
70
         return researchUserVo;
71
         return researchUserVo;
71
     }
72
     }
72
 
73
 

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

29
         u.headpic,ru.schoolid,s.schoolname
29
         u.headpic,ru.schoolid,s.schoolname
30
         FROM t_research_user ru LEFT JOIN t_user u ON ru.userid=u.userid
30
         FROM t_research_user ru LEFT JOIN t_user u ON ru.userid=u.userid
31
         left join t_school s on ru.schoolid=s.schoolid
31
         left join t_school s on ru.schoolid=s.schoolid
32
-        WHERE ru.researchid=#{researchid} AND ru.rustate=1 ORDER BY ru.reviewtime desc
32
+        WHERE ru.researchid=#{researchid} AND ru.rustate=1
33
+        <if test="schoolid!=null and schoolid!=0">
34
+            and ru.schoolid=#{schoolid}
35
+        </if>
36
+        ORDER BY ru.reviewtime desc
33
     </select>
37
     </select>
34
 
38
 
35
     <!-- 教师参与教研列表 -->
39
     <!-- 教师参与教研列表 -->

Loading…
Cancel
Save