|
@@ -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
|