Sfoglia il codice sorgente

班级分组排序

tags/正式3.9.0
雍文秀 1 anno fa
parent
commit
0757b56b4c

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

@@ -55,7 +55,7 @@
55 55
         where ct.teacherid = #{teacherid} and c.year = s.year and c.schoolid=#{schoolid}
56 56
         and c.classstate = 1 and c.classnum!=0 and g.groupnum!=0
57 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 59
     </select>
60 60
     <!--作业对象集合-->
61 61
     <select id="listUserByIds" resultType="java.util.Map">

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

@@ -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>

Loading…
Annulla
Salva