Browse Source

预习,课堂资料系列接口

tags/正式3.14.0
王宁 7 months ago
parent
commit
76b6ca5263

+ 28
- 12
sclass/src/main/java/com/xhkjedu/sclass/controller/classroom/ClassroomController.java View File

@@ -69,6 +69,8 @@ public class ClassroomController {
69 69
         List<TClassroomPaperScantron> paperScantronList = new ArrayList<>();//堂测答题卡--题型试题集合
70 70
         List<TClassroomVote> voteList = new ArrayList<>();//课堂投票集合
71 71
         List<TClassroomVoteStudent> votestuList = new ArrayList<>();//课堂投票--学生投票
72
+        List<TClassroomProfile> profileList = new ArrayList<>();//资料
73
+        List<TClassroomProfileStudent> profileStudentList = new ArrayList<>();//资料--学生
72 74
 
73 75
         if(N_Utils.isListEmpty(rooms)) return new ResultVo(0,"保存成功");
74 76
         String nodename = rooms.get(0).getNodename();
@@ -173,12 +175,18 @@ public class ClassroomController {
173 175
                 } else if(rtype.equals("votestudent")){//投票--学生投票
174 176
                     TClassroomVoteStudent stuvote = JSON.parseObject(jsonstr,TClassroomVoteStudent.class);
175 177
                     votestuList.add(stuvote);
178
+                } else if("profileteacher".equals(rtype)){//资料
179
+                    TClassroomProfile profile = JSON.parseObject(jsonstr,TClassroomProfile.class);
180
+                    profileList.add(profile);
181
+                } else if("profilestudent".equals(rtype)){//资料--学生
182
+                    TClassroomProfileStudent stuProfile = JSON.parseObject(jsonstr,TClassroomProfileStudent.class);
183
+                    profileStudentList.add(stuProfile);
176 184
                 }
177 185
             });
178 186
         });
179 187
         return classroomService.batchSaveClass(startclassList, stopclassList, savefileList
180 188
                 , askteacherList, askstudentList, signList
181
-                , paperList, nodename, stupaperList, paperFileList, paperQtypeList, paperScantronList, voteList, votestuList);
189
+                , paperList, nodename, stupaperList, paperFileList, paperQtypeList, paperScantronList, voteList, votestuList,profileList,profileStudentList);
182 190
     }
183 191
 
184 192
     /**
@@ -211,19 +219,21 @@ public class ClassroomController {
211 219
         List<TClassroomPaperScantron> paperScantronList = new ArrayList<>();//堂测答题卡--题型试题集合
212 220
         List<TClassroomVote> voteList = new ArrayList<>();//课堂投票
213 221
         List<TClassroomVoteStudent> votestuList = new ArrayList<>();//课堂投票--学生投票
222
+        List<TClassroomProfile> profileList = new ArrayList<>();//资料
223
+        List<TClassroomProfileStudent> profileStudentList = new ArrayList<>();//资料--学生
214 224
 
215 225
         String nodename = r.getNodename();
216 226
         for (RoomParamVo param : params) {
217 227
             String rtype = param.getRtype();
218 228
             String jsonstr = param.getJsonstr();
219 229
             N_Utils.validation(new Object[]{rtype, "请求类型", 2, jsonstr, "请求json", 2});
220
-            if (rtype.equals("startclass")) {//课堂--开始
230
+            if ("startclass".equals(rtype)) {//课堂--开始
221 231
                 startclass = JSON.parseObject(jsonstr, TClassroom.class);
222 232
                 int schoolyear = classroomService.getSchoolYearBySchoolid(startclass.getSchoolid());
223 233
                 startclass.setYear(schoolyear);
224
-            } else if (rtype.equals("stopclass")) {//课堂--结束
234
+            } else if ("stopclass".equals(rtype)) {//课堂--结束
225 235
                 stopclass = JSON.parseObject(jsonstr, TClassroom.class);
226
-            } else if (rtype.equals("savefile")) {//课堂--保存图片
236
+            } else if ("savefile".equals(rtype)) {//课堂--保存图片
227 237
                 TClassroomFile file = JSON.parseObject(jsonstr, TClassroomFile.class);
228 238
                 if (N_Utils.isNotEmpty(file.getRfpath())) {
229 239
                     if(N_Utils.isNotEmpty(nodename)) {
@@ -231,24 +241,24 @@ public class ClassroomController {
231 241
                     }
232 242
                     savefileList.add(file);
233 243
                 }
234
-            } else if (rtype.equals("askteacher")) {//互动--发起
244
+            } else if ("askteacher".equals(rtype)) {//互动--发起
235 245
                 TClassroomAskteacher teacher = JSON.parseObject(jsonstr, TClassroomAskteacher.class);
236 246
                 String teacherpic = teacher.getTeacherpic();
237 247
                 if (N_Utils.isNotEmpty(nodename) && N_Utils.isNotEmpty(teacherpic)) {
238 248
                     teacher.setTeacherpic(nodename + "/" + teacherpic);
239 249
                 }
240 250
                 askteacherList.add(teacher);
241
-            } else if (rtype.equals("askstudent")) {//互动--保存学生作答情况
251
+            } else if ("askstudent".equals(rtype)) {//互动--保存学生作答情况
242 252
                 TClassroomAskstudent student = JSON.parseObject(jsonstr, TClassroomAskstudent.class);
243 253
                 String studentpic = student.getStudentpic();
244 254
                 if (N_Utils.isNotEmpty(nodename) && N_Utils.isNotEmpty(studentpic)) {
245 255
                     student.setStudentpic(nodename + "/" + studentpic);
246 256
                 }
247 257
                 askstudentList.add(student);
248
-            } else if (rtype.equals("sign")) {//学生--签到
258
+            } else if ("sign".equals(rtype)) {//学生--签到
249 259
                 TClassroomSign sign = JSON.parseObject(jsonstr, TClassroomSign.class);
250 260
                 signList.add(sign);
251
-            } else if (rtype.equals("paperteacher") || "paper".equals(rtype)) {//堂测--发布
261
+            } else if ("paperteacher".equals(rtype) || "paper".equals(rtype)) {//堂测--发布
252 262
                 TClassroomPaper paper = JSON.parseObject(jsonstr, TClassroomPaper.class);
253 263
 
254 264
                 //堂测附件
@@ -294,20 +304,26 @@ public class ClassroomController {
294 304
                     }
295 305
                 }
296 306
                 paperList.add(paper);
297
-            } else if (rtype.equals("paperstudent") || "stupaper".equals(rtype)) {//堂测--学生作答详情
307
+            } else if ("paperstudent".equals(rtype) || "stupaper".equals(rtype)) {//堂测--学生作答详情
298 308
                 TClassroomPaperStudent student = JSON.parseObject(jsonstr, TClassroomPaperStudent.class);
299 309
                 stupaperList.add(student);
300
-            } else if (rtype.equals("voteteacher")){//投票
310
+            } else if ("voteteacher".equals(rtype)){//投票
301 311
                 TClassroomVote vote = JSON.parseObject(jsonstr,TClassroomVote.class);
302 312
                 voteList.add(vote);
303
-            } else if(rtype.equals("votestudent")){//投票--学生投票
313
+            } else if("votestudent".equals(rtype)){//投票--学生投票
304 314
                 TClassroomVoteStudent stuvote = JSON.parseObject(jsonstr,TClassroomVoteStudent.class);
305 315
                 votestuList.add(stuvote);
316
+            } else if("profileteacher".equals(rtype)){//资料
317
+                TClassroomProfile profile = JSON.parseObject(jsonstr,TClassroomProfile.class);
318
+                profileList.add(profile);
319
+            } else if("profilestudent".equals(rtype)){//资料--学生
320
+                TClassroomProfileStudent stuProfile = JSON.parseObject(jsonstr,TClassroomProfileStudent.class);
321
+                profileStudentList.add(stuProfile);
306 322
             }
307 323
         }
308 324
         return classroomService.saveClass(startclass, stopclass, savefileList
309 325
                 , askteacherList, askstudentList, signList
310
-                , paperList, nodename, stupaperList, paperFileList, paperQtypeList, paperScantronList, voteList, votestuList);
326
+                , paperList, nodename, stupaperList, paperFileList, paperQtypeList, paperScantronList, voteList, votestuList, profileList, profileStudentList);
311 327
     }
312 328
 
313 329
     @PostMapping("/list_correct")

+ 21
- 0
sclass/src/main/java/com/xhkjedu/sclass/mapper/classroom/ClassroomProfileMapper.java View File

@@ -0,0 +1,21 @@
1
+package com.xhkjedu.sclass.mapper.classroom;
2
+
3
+import com.xhkjedu.base.TkMapper;
4
+import com.xhkjedu.sclass.model.classroom.TClassroomProfile;
5
+import com.xhkjedu.sclass.model.classroom.TClassroomVoteStudent;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+import java.util.Map;
10
+
11
+public interface ClassroomProfileMapper extends TkMapper<TClassroomProfile> {
12
+
13
+    //获取课堂资料
14
+    List<Map<String,Object>> listProfileByRoomid(@Param("roomid")Long roomid);
15
+
16
+    //资料查看学生
17
+    List<TClassroomVoteStudent> listProfileStus(@Param("profileid")Long profileid);
18
+
19
+    //资料信息投票
20
+    List<Map> listProfileStuByRoomAndStuid(@Param("roomid")Long roomid,@Param("studentid")Integer studentid);
21
+}

+ 7
- 0
sclass/src/main/java/com/xhkjedu/sclass/mapper/classroom/ClassroomProfileStudentMapper.java View File

@@ -0,0 +1,7 @@
1
+package com.xhkjedu.sclass.mapper.classroom;
2
+
3
+import com.xhkjedu.base.TkMapper;
4
+import com.xhkjedu.sclass.model.classroom.TClassroomProfileStudent;
5
+
6
+public interface ClassroomProfileStudentMapper extends TkMapper<TClassroomProfileStudent> {
7
+}

+ 56
- 0
sclass/src/main/java/com/xhkjedu/sclass/model/classroom/TClassroomProfile.java View File

@@ -0,0 +1,56 @@
1
+package com.xhkjedu.sclass.model.classroom;
2
+
3
+import lombok.Data;
4
+
5
+import javax.persistence.Id;
6
+import javax.persistence.Table;
7
+
8
+@Table(name = "t_classroom_profile")
9
+@Data
10
+public class TClassroomProfile {
11
+    /**
12
+     * 课堂资料表
13
+     */
14
+    @Id
15
+    private Long profileid;
16
+
17
+    /**
18
+     * 课堂ID
19
+     */
20
+    private Long roomid;
21
+
22
+    /**
23
+     * 资料名称
24
+     */
25
+    private String profilename;
26
+
27
+    //资料预览地址
28
+    private String profileurl;
29
+
30
+    //资料后缀
31
+    private String profilesuffix;
32
+
33
+    //资料地址
34
+    private String profilepath;
35
+
36
+    /**
37
+     * 时长(秒)
38
+     */
39
+    private Integer profilesec;
40
+
41
+    /**
42
+     * 创建人ID
43
+     */
44
+    private Integer createid;
45
+
46
+    /**
47
+     * 创建时间
48
+     */
49
+    private Integer createtime;
50
+
51
+    /**
52
+     * 学校ID
53
+     */
54
+    private Integer schoolid;
55
+
56
+}

+ 46
- 0
sclass/src/main/java/com/xhkjedu/sclass/model/classroom/TClassroomProfileStudent.java View File

@@ -0,0 +1,46 @@
1
+package com.xhkjedu.sclass.model.classroom;
2
+
3
+import lombok.Data;
4
+
5
+import javax.persistence.Id;
6
+import javax.persistence.Table;
7
+import javax.persistence.Transient;
8
+
9
+@Table(name = "t_classroom_profile_student")
10
+@Data
11
+public class TClassroomProfileStudent {
12
+    /**
13
+     * 课堂资料学生查看表
14
+     */
15
+    @Id
16
+    private Integer pfsid;
17
+
18
+    /**
19
+     * 课堂ID
20
+     */
21
+    private Long roomid;
22
+
23
+    /**
24
+     * 课堂资料表ID
25
+     */
26
+    private Long profileid;
27
+
28
+    /**
29
+     * 学生id
30
+     */
31
+    private Integer studentid;
32
+
33
+    /**
34
+     * 学生查看时长(秒)
35
+     */
36
+    private Integer stusec;
37
+
38
+    /**
39
+     * 创建时间
40
+     */
41
+    private Integer createtime;
42
+
43
+    @Transient
44
+    private String username;
45
+
46
+}

+ 29
- 2
sclass/src/main/java/com/xhkjedu/sclass/service/classroom/ClassroomService.java View File

@@ -56,6 +56,10 @@ public class ClassroomService {
56 56
     private ClassroomVoteMapper classroomVoteMapper;
57 57
     @Resource
58 58
     private ClassroomVoteStudentMapper classroomVoteStudentMapper;
59
+    @Resource
60
+    private ClassroomProfileMapper classroomProfileMapper;
61
+    @Resource
62
+    private ClassroomProfileStudentMapper classroomProfileStudentMapper;
59 63
 
60 64
     /**
61 65
      * 开始课堂
@@ -531,6 +535,11 @@ public class ClassroomService {
531 535
         List<Map<String,Object>> votes = classroomVoteMapper.listVoteByRoomid(roomid);
532 536
         room.setVotes(votes);
533 537
 
538
+        //课堂资料
539
+        List<Map<String,Object>> profiles = classroomProfileMapper.listProfileByRoomid(roomid);
540
+        room.setProfiles(profiles);
541
+
542
+
534 543
         return new ResultVo(0, "获取课堂回顾详情成功", room);
535 544
     }
536 545
 
@@ -561,7 +570,8 @@ public class ClassroomService {
561 570
             , List<TClassroomPaper> paperList,String nodename, List<TClassroomPaperStudent> stupaperList
562 571
             , List<TClassroomPaperFile> paperFileList, List<TClassroomPaperQtype> paperQtypeList
563 572
             , List<TClassroomPaperScantron> paperScantronList
564
-            ,List<TClassroomVote> voteList,List<TClassroomVoteStudent> votestuList) {
573
+            ,List<TClassroomVote> voteList,List<TClassroomVoteStudent> votestuList
574
+            ,List<TClassroomProfile> profileList,List<TClassroomProfileStudent> profileStudentList) {
565 575
         ResultVo resultVo = new ResultVo();
566 576
         resultVo.setCode(1);
567 577
         try {
@@ -600,6 +610,13 @@ public class ClassroomService {
600 610
             if(N_Utils.isListNotEmpty(votestuList)){
601 611
                 classroomVoteStudentMapper.insertList(votestuList);//投票--学生投票结果
602 612
             }
613
+            if(N_Utils.isListNotEmpty(profileList)){
614
+                classroomProfileMapper.insertList(profileList);
615
+            }
616
+
617
+            if(N_Utils.isListNotEmpty(profileStudentList)){
618
+                classroomProfileStudentMapper.insertList(profileStudentList);
619
+            }
603 620
 
604 621
             if (N_Utils.isListNotEmpty(stopclassList)) classroomMapper.batchEndClass(stopclassList);//批量结束课堂
605 622
 
@@ -750,7 +767,9 @@ public class ClassroomService {
750 767
             , List<TClassroomPaper> paperList, String nodename
751 768
             , List<TClassroomPaperStudent> stupaperList, List<TClassroomPaperFile> paperFileList
752 769
             , List<TClassroomPaperQtype> paperQtypeList, List<TClassroomPaperScantron> paperScantronList
753
-            ,List<TClassroomVote> voteList,List<TClassroomVoteStudent> votestuList) {
770
+            ,List<TClassroomVote> voteList,List<TClassroomVoteStudent> votestuList
771
+            ,List<TClassroomProfile> profileList,List<TClassroomProfileStudent> profileStudentList) {
772
+
754 773
         ResultVo resultVo = new ResultVo();
755 774
         resultVo.setCode(1);
756 775
         try {
@@ -791,6 +810,14 @@ public class ClassroomService {
791 810
                 classroomVoteStudentMapper.insertList(votestuList);//投票--学生投票结果
792 811
             }
793 812
 
813
+            if(N_Utils.isListNotEmpty(profileList)){
814
+                classroomProfileMapper.insertList(profileList);
815
+            }
816
+
817
+            if(N_Utils.isListNotEmpty(profileStudentList)){
818
+                classroomProfileStudentMapper.insertList(profileStudentList);
819
+            }
820
+
794 821
             if (stopclass != null) classroomMapper.endClass(stopclass);//批量结束课堂
795 822
 
796 823
             classroomMapper.updateBatchRoomRealStunum(Arrays.asList(roomid));//批量更新班级实际签到学生数量

+ 2
- 0
sclass/src/main/java/com/xhkjedu/sclass/vo/classroom/ReportRoomVo.java View File

@@ -63,4 +63,6 @@ public class ReportRoomVo {
63 63
 
64 64
     //投票
65 65
     private List<Map<String,Object>> votes;
66
+    //资料
67
+    private List<Map<String,Object>> profiles;
66 68
 }

+ 3
- 0
sclass/src/main/resources/mapper/classroom/ClassroomMapper.xml View File

@@ -180,6 +180,8 @@
180 180
         ,g.gradeid,g.classname,(select count(*) from t_classroom_sign s where s.userid=#{room.studentid}
181 181
         and s.roomid=r.roomid) signstate
182 182
         ,(select count(*) from t_classroom_video rv where rv.roomid=r.roomid)videonum
183
+        ,(select count(*) from t_classroom_vote vt where vt.roomid=c.roomid)votenum
184
+        ,(select count(*) from t_classroom_profile p where p.roomid=c.roomid)profilenum
183 185
         from t_classroom r left join t_user u on r.teacherid=u.userid
184 186
         left join t_subject_book sb on r.lsbid=sb.lsbid
185 187
         left join t_class_student cs on r.classid=cs.classid
@@ -347,6 +349,7 @@
347 349
         where rt.roomid=c.roomid and rt.asktype between 32 and 40)wpynum
348 350
         ,(select count(*) from t_classroom_video rv where rv.roomid=c.roomid)videonum
349 351
         ,(select count(*) from t_classroom_vote vt where vt.roomid=c.roomid)votenum
352
+        ,(select count(*) from t_classroom_profile p where p.roomid=c.roomid)profilenum
350 353
         FROM t_classroom c LEFT JOIN t_class g ON c.classid=g.classid
351 354
         left join t_user u on c.teacherid=u.userid
352 355
         left join t_director d on c.directorid=d.directorid

+ 25
- 0
sclass/src/main/resources/mapper/classroom/ClassroomProfileMapper.xml View File

@@ -0,0 +1,25 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.xhkjedu.sclass.mapper.classroom.ClassroomProfileMapper">
4
+
5
+  <!--获取课堂资料-->
6
+  <select id="listProfileByRoomid" resultType="java.util.Map">
7
+    select profileid,profilename,profileurl,profilesuffix,profilepath,profilesec
8
+    from t_classroom_profile where roomid=#{roomid} order by createtime desc
9
+  </select>
10
+
11
+  <!--资料产看学生-->
12
+  <select id="listProfileStus" resultType="com.xhkjedu.sclass.model.classroom.TClassroomVoteStudent">
13
+    select s.stuvote,s.createtime,s.studentid,u.username from t_classroom_profile_student s
14
+    left join t_user u on s.studentid=u.userid
15
+    where s.profileid=#{profileid} order by s.createtime
16
+  </select>
17
+
18
+  <!--资料信息投票-->
19
+  <select id="listProfileStuByRoomAndStuid" resultType="java.util.Map">
20
+    select v.profileid,v.profilename,v.profileurl,v.profilesuffix,v.profilepath,
21
+    v.profilesec,vs.stusec,vs.createtime from t_classroom_profile v
22
+    left join t_classroom_profile_student vs on vs.voteid=v.voteid
23
+    where v.roomid=#{roomid} and vs.studentid=#{studentid}
24
+  </select>
25
+</mapper>

+ 2
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/model/resource/TGuide.java View File

@@ -30,6 +30,8 @@ public class TGuide extends BaseBean {
30 30
 
31 31
     private String directorid;//章节id
32 32
 
33
+    private String comm;//预习要求
34
+
33 35
     private Integer createid;//创建人id
34 36
 
35 37
     private Integer createtime;//创建时间

+ 2
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/resource/GuideVo.java View File

@@ -32,6 +32,8 @@ public class GuideVo {
32 32
 
33 33
     private Integer schoolid;//学校id
34 34
 
35
+    private String comm;//预习要求
36
+
35 37
     //是否有伙伴学校:0没有1有
36 38
     private Integer hashb;
37 39
 

+ 7
- 6
sstudy/src/main/resources/mapper/resource/GuideMapper.xml View File

@@ -11,6 +11,7 @@
11 11
         <result column="subjectname" property="subjectname"/>
12 12
         <result column="createid" property="createid"/>
13 13
         <result column="hashb" property="hashb"/>
14
+        <result column="comm" property="comm"/>
14 15
         <collection property="resources" ofType="java.util.Map"
15 16
                     javaType="java.util.List" select="listResourcesByGuideid" column="guideid">
16 17
         </collection>
@@ -18,7 +19,7 @@
18 19
 
19 20
     <!--学生预习列表教师网页端-->
20 21
     <select id="listGuidesForTeacherWeb" resultMap="guidesForMap">
21
-        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,g.hashb
22
+        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,g.hashb,g.comm
22 23
         ,(select u.username from t_user u where g.createid=u.userid)createname
23 24
         from t_guide g left join t_guide_resource gr on g.guideid=gr.guideid
24 25
         left join t_guide_group gg on g.guideid = gg.guideid
@@ -44,7 +45,7 @@
44 45
     </select>
45 46
     <!--学生预习列表教师网页端-我的-->
46 47
     <select id="listGuidesForTeacherWebMy" resultMap="guidesForMap">
47
-        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,g.hashb
48
+        select distinct g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,g.hashb,g.comm
48 49
         ,(select u.username from t_user u where g.createid=u.userid)createname
49 50
         from t_guide g left join t_guide_resource gr on g.guideid=gr.guideid
50 51
         left join t_guide_group gg on g.guideid = gg.guideid
@@ -70,7 +71,7 @@
70 71
 
71 72
     <!--学生预习列表教师app-->
72 73
     <select id="listGuidesForTeacherApp" resultType="java.util.Map">
73
-        select g.guideid,g.guidename,g.createtime,
74
+        select g.guideid,g.guidename,g.createtime,g.comm,
74 75
         g.schoolid,(select u.username from t_user u where g.createid=u.userid)createname,
75 76
         count(DISTINCT gr.resourceid)as filenum,r.suffix,r.resourcecover,r.resourceclass,r.converted,
76 77
         sum(r.resourcesize) as resourcesize
@@ -95,7 +96,7 @@
95 96
 
96 97
     <!--学生预习列表学生网页端-->
97 98
     <select id="listGuidesForStuWeb" resultMap="guidesForMap">
98
-        select g.guideid,g.guidename,g.createtime,g.schoolid,u.username as createname,ggs.costtime,
99
+        select g.guideid,g.guidename,g.createtime,g.schoolid,g.comm,u.username as createname,ggs.costtime,
99 100
         s.subjectname,count(DISTINCT gr.resourceid)as filenum
100 101
         from t_guide_group_student ggs
101 102
         left join t_guide g on ggs.guideid=g.guideid
@@ -126,7 +127,7 @@
126 127
 
127 128
     <!--学生预习列表学生app-->
128 129
     <select id="listGuidesForStuApp" resultType="java.util.Map">
129
-        select g.guideid,g.guidename,g.createtime,g.schoolid,ggs.costtime,
130
+        select g.guideid,g.guidename,g.createtime,g.schoolid,g.comm,ggs.costtime,
130 131
         count(DISTINCT gr.resourceid)as filenum,r.suffix,r.resourcesize,r.resourcecover,r.resourceclass,r.converted,
131 132
         u.username as createname,ggs.costtime from t_guide_group_student ggs
132 133
         left join t_guide g on ggs.guideid=g.guideid
@@ -161,7 +162,7 @@
161 162
 
162 163
     <!--根据预习id获取预习详情-->
163 164
     <select id="getGuideByGuideid" resultMap="guidesForMap">
164
-      select g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,u.username as createname
165
+      select g.guideid,g.guidename,g.createtime,g.schoolid,g.createid,g.comm,u.username as createname
165 166
         from t_guide g
166 167
         left join t_user u on g.createid=u.userid
167 168
         where g.guideid=#{guideid}

Loading…
Cancel
Save