Browse Source

课程学生列表

tags/正式3.2.0
雍文秀 2 years ago
parent
commit
344428f007

+ 3
- 0
slive/src/main/java/com/xhkjedu/slive/mapper/gradeclass/ClassMapper.java View File

@@ -25,4 +25,7 @@ public interface ClassMapper extends TkMapper<TClass> {
25 25
 
26 26
     //修改的那个班级类型
27 27
     Integer updateClasstype(@Param("classid") Integer classid, @Param("classtype") Integer classtype);
28
+
29
+    //获取班级当前年份
30
+    Integer getYearById(Integer classid);
28 31
 }

+ 1
- 1
slive/src/main/java/com/xhkjedu/slive/service/liveplay/CourseSectionService.java View File

@@ -358,7 +358,7 @@ public class CourseSectionService {
358 358
 
359 359
     //获取课程学生列表
360 360
     public List<Map> listStudent(Integer classid, String studentname) {
361
-        Integer year = schoolMapper.getYearById(classid);
361
+        Integer year = classMapper.getYearById(classid);
362 362
         List<Map> list = courseSectionMapper.listStudent(classid, studentname, year);
363 363
         for (Map map : list) {
364 364
             String classname = (String) map.get("classname");

+ 4
- 0
slive/src/main/resources/mapper/gradeclass/ClassMapper.xml View File

@@ -36,4 +36,8 @@
36 36
     <update id="updateClasstype">
37 37
         update t_class set classtype=#{classtype} where classid=#{classid}
38 38
     </update>
39
+    <!--获取班级当前年份-->
40
+    <select id="getYearById" resultType="java.lang.Integer">
41
+        select year from t_class where classid=#{classid}
42
+    </select>
39 43
 </mapper>

Loading…
Cancel
Save