Kaynağa Gözat

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

tags/正式3.9.0
王宁 1 yıl önce
ebeveyn
işleme
0ff572ee0b

+ 2
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/resource/GuideVo.java Dosyayı Görüntüle

@@ -20,6 +20,8 @@ public class GuideVo {
20 20
 
21 21
     private Integer createtime;//创建时间
22 22
 
23
+    private Integer createid;//创建人id
24
+
23 25
     private String createname;//发布人姓名
24 26
 
25 27
     private Integer costtime;//用时

+ 4
- 3
sstudy/src/main/resources/mapper/resource/GuideMapper.xml Dosyayı Görüntüle

@@ -9,6 +9,7 @@
9 9
         <result column="createtime" property="createtime"></result>
10 10
         <result column="costtime" property="costtime"></result>
11 11
         <result column="subjectname" property="subjectname"></result>
12
+        <result column="createid" property="createid"></result>
12 13
         <collection property="resources" ofType="java.util.Map"
13 14
                     javaType="java.util.List" select="listResourcesByGuideid" column="{guideid=guideid}">
14 15
         </collection>
@@ -16,7 +17,7 @@
16 17
 
17 18
     <!--学生预习列表教师网页端-->
18 19
     <select id="listGuidesForTeacherWeb" resultMap="guidesForMap">
19
-        select distinct g.guideid,g.guidename,g.createtime,g.schoolid
20
+        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid
20 21
         ,(select u.username from t_user u where g.createid=u.userid)createname
21 22
         from t_guide g left join t_guide_resource gr on g.guideid=gr.guideid
22 23
         left join t_guide_group gg on g.guideid = gg.guideid
@@ -130,7 +131,7 @@
130 131
 
131 132
     <!--根据预习id获取预习详情-->
132 133
     <select id="getGuideByGuideid" resultMap="guidesForMap">
133
-      select g.guideid,g.guidename,g.createtime,g.schoolid,u.username as createname
134
+      select g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,u.username as createname
134 135
         from t_guide g
135 136
         left join t_user u on g.createid=u.userid
136 137
         where g.guideid=#{guideid}
@@ -185,7 +186,7 @@
185 186
     </select>
186 187
     <!--获取年级下教师发布学生预习列表-->
187 188
     <select id="listPreview" resultMap="guidesForMap">
188
-        select g.guideid,g.guidename,g.createtime,g.schoolid,count(distinct gr.grid)as filenum
189
+        select g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,count(distinct gr.grid)as filenum
189 190
         ,(select u.username from t_user u where u.userid=g.createid)createname
190 191
         from t_guide g
191 192
         left join t_guide_group gg on gg.guideid=g.guideid

Loading…
İptal
Kaydet