Browse Source

预习教研

tags/正式3.10.0
王宁 1 year ago
parent
commit
11b477a26d

+ 10
- 0
sapi/src/main/java/com/xhkjedu/sapi/vo/research/ResearchUserVo.java View File

2
 
2
 
3
 import lombok.Data;
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
  * @ClassName ResearchUserVo
10
  * @ClassName ResearchUserVo
7
  * Description TODO
11
  * Description TODO
50
 
54
 
51
     //mp4文件编码:mpeg4网页端不能播放,h264网页端能播放
55
     //mp4文件编码:mpeg4网页端不能播放,h264网页端能播放
52
     private String mp4code;
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 View File

32
     <!-- 教师参与教研列表 -->
32
     <!-- 教师参与教研列表 -->
33
     <select id="listUserResearchs" resultType="java.util.Map">
33
     <select id="listUserResearchs" resultType="java.util.Map">
34
          SELECT r.researchid,r.researchname,r.researchcover,r.duration,r.filesize,r.starttime,r.stoptime,r.mp4code,
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
         FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
36
         FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
37
         LEFT JOIN t_user u ON r.createid=u.userid
37
         LEFT JOIN t_user u ON r.createid=u.userid
38
         WHERE ru.userid=#{userid} and r.starttime&lt;=#{timestamp}
38
         WHERE ru.userid=#{userid} and r.starttime&lt;=#{timestamp}
51
     <!-- 根据id获取教研详细信息 -->
51
     <!-- 根据id获取教研详细信息 -->
52
     <select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
52
     <select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
53
          SELECT r.researchid,r.researchname,r.researchcontent,r.researchpath,r.researchcover,r.duration,r.filesize,
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
 	 FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
55
 	 FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
56
         WHERE r.researchid=#{researchid} AND ru.userid=#{userid} limit 1
56
         WHERE r.researchid=#{researchid} AND ru.userid=#{userid} limit 1
57
     </select>
57
     </select>

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paper/PaperListVo.java View File

74
     private Integer hasreport;
74
     private Integer hasreport;
75
 
75
 
76
     private Integer timetype;
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 View File

32
 
32
 
33
     private Integer schoolid;//学校id
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 View File

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

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

Loading…
Cancel
Save