Browse Source

获取学校年份学生行政班

wn0920
王宁 2 years ago
parent
commit
c711a1c7c7

+ 1
- 0
suser/src/main/resources/mapper/gradeclass/ClassStudentMapper.xml View File

57
     <select id="getClassIdByStuId" resultType="java.lang.Integer">
57
     <select id="getClassIdByStuId" resultType="java.lang.Integer">
58
         select c.classid
58
         select c.classid
59
         from t_class_student cs left join t_class c on cs.classid=c.classid
59
         from t_class_student cs left join t_class c on cs.classid=c.classid
60
+        left join t_school s on c.schoolid=s.schoolid and c.year=s.year
60
         where cs.studentid=#{studentid} and c.classtype=1 and c.classstate=1 order by c.classid desc limit 1
61
         where cs.studentid=#{studentid} and c.classtype=1 and c.classstate=1 order by c.classid desc limit 1
61
     </select>
62
     </select>
62
     <!--根据班级id和学生id获取班级学生信息-->
63
     <!--根据班级id和学生id获取班级学生信息-->

Loading…
Cancel
Save