Browse Source

班级分组排序

tags/正式3.9.0
雍文秀 1 year ago
parent
commit
0757b56b4c

+ 1
- 1
sstudy/src/main/resources/mapper/paperstudent/PaperClassMapper.xml View File

55
         where ct.teacherid = #{teacherid} and c.year = s.year and c.schoolid=#{schoolid}
55
         where ct.teacherid = #{teacherid} and c.year = s.year and c.schoolid=#{schoolid}
56
         and c.classstate = 1 and c.classnum!=0 and g.groupnum!=0
56
         and c.classstate = 1 and c.classnum!=0 and g.groupnum!=0
57
         and c.classtype <![CDATA[ < ]]>5 and (g.createid = #{teacherid} or g.grouptype = 1)
57
         and c.classtype <![CDATA[ < ]]>5 and (g.createid = #{teacherid} or g.grouptype = 1)
58
-        order by c.classtype, c.classorder, g.grouptype asc, g.groupid desc
58
+        order by c.classtype, c.classorder, g.groupid
59
     </select>
59
     </select>
60
     <!--作业对象集合-->
60
     <!--作业对象集合-->
61
     <select id="listUserByIds" resultType="java.util.Map">
61
     <select id="listUserByIds" resultType="java.util.Map">

+ 3
- 3
suser/src/main/resources/mapper/gradeclass/GroupMapper.xml View File

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

Loading…
Cancel
Save