Browse Source

班级学生导入时获取学生最新的行政班加排序

tags/正式版本
王宁 2 years ago
parent
commit
04c4b01446

+ 1
- 1
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
-        where cs.studentid=#{studentid} and c.classtype=1 and c.classstate=1 limit 1
60
+        where cs.studentid=#{studentid} and c.classtype=1 and c.classstate=1 order by c.classid desc limit 1
61
     </select>
61
     </select>
62
     <!--根据班级id和学生id获取班级学生信息-->
62
     <!--根据班级id和学生id获取班级学生信息-->
63
     <select id="getByClassIdStudentId" resultType="java.lang.Integer">
63
     <select id="getByClassIdStudentId" resultType="java.lang.Integer">

Loading…
Cancel
Save