Pārlūkot izejas kodu

预习教研

tags/正式3.10.0
王宁 pirms 1 gada
vecāks
revīzija
11b477a26d

+ 10
- 0
sapi/src/main/java/com/xhkjedu/sapi/vo/research/ResearchUserVo.java Parādīt failu

@@ -2,6 +2,10 @@ package com.xhkjedu.sapi.vo.research;
2 2
 
3 3
 import lombok.Data;
4 4
 
5
+import java.util.ArrayList;
6
+import java.util.List;
7
+import java.util.Map;
8
+
5 9
 /**
6 10
  * @ClassName ResearchUserVo
7 11
  * Description TODO
@@ -50,4 +54,10 @@ public class ResearchUserVo {
50 54
 
51 55
     //mp4文件编码:mpeg4网页端不能播放,h264网页端能播放
52 56
     private String mp4code;
57
+
58
+    //是否公开0公开1不公开
59
+    private Integer publiced;
60
+
61
+    //其他用户评价
62
+    private List<Map> others = new ArrayList<>();
53 63
 }

+ 2
- 2
sapi/src/main/resources/mapper/research/ResearchUserMapper.xml Parādīt failu

@@ -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&lt;=#{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>

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paper/PaperListVo.java Parādīt failu

@@ -74,4 +74,7 @@ public class PaperListVo {
74 74
     private Integer hasreport;
75 75
 
76 76
     private Integer timetype;
77
+
78
+    //是否有伙伴学校:0没有1有
79
+    private Integer hashb;
77 80
 }

+ 3
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/vo/resource/GuideVo.java Parādīt failu

@@ -32,8 +32,9 @@ public class GuideVo {
32 32
 
33 33
     private Integer schoolid;//学校id
34 34
 
35
-    private List<Map> resources = new ArrayList<>();//包含的资源
36
-
35
+    //是否有伙伴学校:0没有1有
36
+    private Integer hashb;
37 37
 
38
+    private List<Map> resources = new ArrayList<>();//包含的资源
38 39
 
39 40
 }

+ 2
- 1
sstudy/src/main/resources/mapper/paper/PaperMapper.xml Parādīt failu

@@ -80,6 +80,7 @@
80 80
         <result property="classnum" column="classnum"/>
81 81
         <result property="ytjnum" column="ytjnum"/>
82 82
         <result property="ypgnum" column="ypgnum"/>
83
+        <result property="hashb" column="hashb"/>
83 84
         <collection property="schools" ofType="java.util.Map" javaType="java.util.List"
84 85
                     select="listClass" column="{paperid=paperid,createid=createid,checkid=checkid,checktype=checktype,logschoolid=logschoolid,classids=classids}">
85 86
         </collection>
@@ -192,7 +193,7 @@
192 193
 
193 194
     <!--教师作业列表-->
194 195
     <select id="listAll" resultMap="paperResult">
195
-        select p.paperid,p.papername,p.papertype,p.paperclass,p.paperstate,p.checktype,p.createtime,p.schoolid,p.hasreport,p.timetype,
196
+        select p.paperid,p.papername,p.papertype,p.paperclass,p.paperstate,p.checktype,p.createtime,p.schoolid,p.hasreport,p.timetype,p.hashb,
196 197
         #{paper.schoolid} logschoolid,u.username createname,pg.starttime,pg.stoptime,pg.showtype,p.papernum,p.createid,#{paper.createid} as checkid
197 198
         ,group_concat(pg.classid) classids
198 199
         from t_paper p left join t_user u on p.createid=u.userid

+ 2
- 1
sstudy/src/main/resources/mapper/resource/GuideMapper.xml Parādīt failu

@@ -10,6 +10,7 @@
10 10
         <result column="costtime" property="costtime"/>
11 11
         <result column="subjectname" property="subjectname"/>
12 12
         <result column="createid" property="createid"/>
13
+        <result column="hashb" property="hashb"/>
13 14
         <collection property="resources" ofType="java.util.Map"
14 15
                     javaType="java.util.List" select="listResourcesByGuideid" column="{guideid=guideid}">
15 16
         </collection>
@@ -17,7 +18,7 @@
17 18
 
18 19
     <!--学生预习列表教师网页端-->
19 20
     <select id="listGuidesForTeacherWeb" resultMap="guidesForMap">
20
-        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid
21
+        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,g.hashb
21 22
         ,(select u.username from t_user u where g.createid=u.userid)createname
22 23
         from t_guide g left join t_guide_resource gr on g.guideid=gr.guideid
23 24
         left join t_guide_group gg on g.guideid = gg.guideid

Notiek ielāde…
Atcelt
Saglabāt