|
@@ -57,7 +57,7 @@
|
57
|
57
|
<select id="getClassIdByStuId" resultType="java.lang.Integer">
|
58
|
58
|
select c.classid
|
59
|
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
|
61
|
</select>
|
62
|
62
|
<!--根据班级id和学生id获取班级学生信息-->
|
63
|
63
|
<select id="getByClassIdStudentId" resultType="java.lang.Integer">
|