Przeglądaj źródła

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

tags/正式3.10.0
雍文秀 1 rok temu
rodzic
commit
9d2ccca051

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/controller/research/ResearchUserController.java Wyświetl plik

@@ -49,7 +49,7 @@ public class ResearchUserController {
49 49
             research.setRorder("stoptime");
50 50
         }
51 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 53
         PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
54 54
         return new ResultVo(0,"获取教研用户列表成功",pageResult);
55 55
     }

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/mapper/research/ResearchUserMapper.java Wyświetl plik

@@ -54,7 +54,7 @@ public interface ResearchUserMapper extends TkMapper<TResearchUser> {
54 54
      * @param  * @param researchid
55 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 Wyświetl plik

@@ -35,8 +35,8 @@ public class ResearchUserService {
35 35
      * @param  * @param researchid
36 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,6 +67,7 @@ public class ResearchUserService {
67 67
         if (!researchUserVo.getMp4code().equals("h264")) {
68 68
             messageSender.convertVideo(researchUserVo.getResearchid(), researchUserVo.getResearchpath());
69 69
         }
70
+
70 71
         return researchUserVo;
71 72
     }
72 73
 

+ 5
- 1
sapi/src/main/resources/mapper/research/ResearchUserMapper.xml Wyświetl plik

@@ -29,7 +29,11 @@
29 29
         u.headpic,ru.schoolid,s.schoolname
30 30
         FROM t_research_user ru LEFT JOIN t_user u ON ru.userid=u.userid
31 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 37
     </select>
34 38
 
35 39
     <!-- 教师参与教研列表 -->

Ładowanie…
Anuluj
Zapisz