Browse Source

完善课堂回顾、备课资料

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

+ 2
- 2
sclass/src/main/resources/mapper/classroom/ClassroomVoteMapper.xml View File

@@ -8,14 +8,14 @@
8 8
   </select>
9 9
 
10 10
   <!--投票参与学生-->
11
-  <select id="listVoteStus" resultMap="com.xhkjedu.sclass.model.classroom.TClassroomVoteStudent">
11
+  <select id="listVoteStus" resultType="com.xhkjedu.sclass.model.classroom.TClassroomVoteStudent">
12 12
     select s.stuvote,s.createtime,s.studentid,u.username from t_classroom_vote_student s
13 13
     left join t_user u on s.studentid=u.userid
14 14
     where s.voteid=#{voteid} order by s.createtime
15 15
   </select>
16 16
 
17 17
   <!--课堂信息投票-->
18
-  <select id="listVoteStuByRoomAndStuid" resultMap="java.util.Map">
18
+  <select id="listVoteStuByRoomAndStuid" resultType="java.util.Map">
19 19
     select v.voteid,v.votetitle,v.duration,v.options,
20 20
     v.selectnum,v.votetype,vs.stuvote,vs.createtime from t_classroom_vote v
21 21
     left join t_classroom_vote_student vs on vs.voteid=v.voteid

+ 16
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/controller/bk/BkController.java View File

@@ -38,7 +38,7 @@ public class BkController {
38 38
     @PostMapping("list")
39 39
     public ResultVo list(@RequestBody TBk bk) {
40 40
         N_Utils.validation(new Object[]{
41
-                bk.getPage(), "显示页码", 1, bk.getPageSize(), "显示条数", 1});
41
+                bk.getPage(), "显示页码", 1, bk.getPageSize(), "显示条数", 1,bk.getLsbid(),"教材",2});
42 42
         List<Map<String,Object>> list = bkService.listBks(bk);
43 43
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
44 44
         return new ResultVo(0, "获取列表成功", pageResult);
@@ -109,4 +109,19 @@ public class BkController {
109 109
         TBk rtnBk = bkService.detail(bk.getBkid());
110 110
         return new ResultVo(0,"获取成功",rtnBk);
111 111
     }
112
+
113
+    /*
114
+     * @Description 我的备课列表_课堂端
115
+     * @Date 2024/6/12 9:27:53
116
+     * @Author WN
117
+     * @Param [bk]
118
+     * @Return com.xhkjedu.vo.ResultVo
119
+     **/
120
+    @PostMapping("list_client")
121
+    public ResultVo listClient(@RequestBody TBk bk) {
122
+        N_Utils.validation(new Object[]{
123
+                bk.getLsbid(),"教材",2});
124
+        List<Map<String,Object>> list = bkService.listBks(bk);
125
+        return new ResultVo(0, "获取列表成功", list);
126
+    }
112 127
 }

+ 1
- 1
sstudy/src/main/resources/mapper/bk/TBkMapper.xml View File

@@ -29,7 +29,7 @@
29 29
     select bkid,lsbid,directorid,bktype,asktype,bktitle,duration,papernum,paperscore,votetype,inforsize,
30 30
     inforpath,inforpdf,imgpath,updatetime from t_bk
31 31
     where createid=#{createid}
32
-    <if test="bk.bktype!=null and bk.bktype!=0 ">
32
+    <if test="bk.bktype!=null and bk.bktype!=0">
33 33
       and bktype=#{bk.bktype}
34 34
     </if>
35 35
     <if test="bk.lsbid!=null and bk.lsbid!='' and bk.lsbid!='0'.toString()">

Loading…
Cancel
Save