|
@@ -8,7 +8,7 @@
|
8
|
8
|
<if test="createid!=null">
|
9
|
9
|
and (g.createid=#{createid} or g.grouptype=1)
|
10
|
10
|
</if>
|
11
|
|
- order by g.grouptype,g.groupid desc
|
|
11
|
+ order by g.groupid
|
12
|
12
|
</select>
|
13
|
13
|
<!--更新分组人数-->
|
14
|
14
|
<update id="updateNum">
|
|
@@ -49,7 +49,7 @@
|
49
|
49
|
left join t_class c on ct.classid = c.classid
|
50
|
50
|
where ct.teacherid=#{teacherid} and c.year=#{year} and c.schoolid=#{schoolid} and c.classstate=1
|
51
|
51
|
and c.classtype <![CDATA[ < ]]>5 and (g.createid=#{teacherid} or g.grouptype=1)
|
52
|
|
- order by c.gradeid,c.classtype,c.classorder,g.grouptype asc, g.groupid desc
|
|
52
|
+ order by c.gradeid,c.classtype,c.classorder,g.groupid
|
53
|
53
|
</select>
|
54
|
54
|
<!--伙伴学校班级分组列表-->
|
55
|
55
|
<resultMap id="teacherGroup2" type="java.util.Map">
|
|
@@ -86,6 +86,6 @@
|
86
|
86
|
and c.classtype in(1,2) and c.classnum>0 and g.groupnum>0
|
87
|
87
|
group by g.groupid
|
88
|
88
|
order by c.gradeid,c.classtype,c.classorder,c.classid
|
89
|
|
- ,g.grouptype asc, g.groupid desc
|
|
89
|
+ ,g.groupid
|
90
|
90
|
</select>
|
91
|
91
|
</mapper>
|