Browse Source

优化模块显示排序

tags/正式版本
王宁 2 years ago
parent
commit
21c9808e0b

+ 1
- 0
sapi/src/main/resources/mapper/system/ModuleMapper.xml View File

27
             <when test="moduletype==5">and moduletype between 2 and 4</when>
27
             <when test="moduletype==5">and moduletype between 2 and 4</when>
28
             <otherwise>and moduletype=#{moduletype}</otherwise>
28
             <otherwise>and moduletype=#{moduletype}</otherwise>
29
         </choose>
29
         </choose>
30
+        order by morder,moduleid
30
     </select>
31
     </select>
31
 
32
 
32
     <update id="updateOrder">
33
     <update id="updateOrder">

+ 1
- 0
sapi/src/main/resources/mapper/system/ModuledefaultMapper.xml View File

23
             <when test="moduletype==5">and moduletype between 2 and 4</when>
23
             <when test="moduletype==5">and moduletype between 2 and 4</when>
24
             <otherwise>and moduletype=#{moduletype}</otherwise>
24
             <otherwise>and moduletype=#{moduletype}</otherwise>
25
         </choose>
25
         </choose>
26
+        order by morder,moduleid
26
     </select>
27
     </select>
27
     <!--获取学校id集合-->
28
     <!--获取学校id集合-->
28
     <select id="listSchoolId" resultType="java.lang.Integer">
29
     <select id="listSchoolId" resultType="java.lang.Integer">

Loading…
Cancel
Save