瀏覽代碼

将系统中所有涉及到序号的接口全部改为按序号升序展示

不吃鱼 2 年之前
父節點
當前提交
4069cd010a

+ 1 - 1
chuanyi_server/src/main/resources/mapper/DepartmentDao.xml

@@ -52,7 +52,7 @@
         <if test="createTime != null">
             AND create_time LIKE CONCAT('%', #{createTime}, '%')
         </if>
-        order by create_time desc
+        order by department_num ASC
         limit #{startNum},#{limitNum}
     </select>
 

+ 5 - 5
chuanyi_server/src/main/resources/mapper/DictDao.xml

@@ -5,7 +5,7 @@
     <!--查询所有数据-->
     <select id="queryAll" resultType="com.judong.chuanyiserver.entity.Dict">
         SELECT id,parent_id,dict_key,dict_value,dict_type_id,sort_num,create_time FROM sys_dict
-        ORDER BY sort_num DESC
+        ORDER BY sort_num ASC
         LIMIT #{page},#{num}
     </select>
 
@@ -25,7 +25,7 @@
                 and dict_value like CONCAT('%', #{dictValue}, '%')
             </if>
         </where>
-        ORDER BY sort_num DESC
+        ORDER BY sort_num ASC
         LIMIT #{page},#{num}
     </select>
 
@@ -53,7 +53,7 @@
                 and dict_key=#{dictKey}
             </if>
         </where>
-        ORDER BY sort_num DESC
+        ORDER BY sort_num ASC
         LIMIT #{page},#{num}
     </select>
 
@@ -141,7 +141,7 @@
                 and description like CONCAT('%', #{description}, '%')
             </if>
         </where>
-        ORDER BY sort_num DESC
+        ORDER BY sort_num ASC
         LIMIT #{page},#{num}
     </select>
 
@@ -163,7 +163,7 @@
         JOIN sys_dict_type sdt
         ON sd.dict_type_id=sdt.id
         AND sdt.dict_key_type=#{keyType}
-        ORDER BY sd.sort_num DESC
+        ORDER BY sd.sort_num ASC
         LIMIT #{page},#{num}
     </select>
 

+ 1 - 1
chuanyi_server/src/main/resources/mapper/MenuDao.xml

@@ -120,7 +120,7 @@
         <if test="menuUrl != null">
             AND menu_url=#{menuStatus}
         </if>
-        order by create_time desc
+        order by sort_num ASC
         limit #{startNum},#{limitNum}
     </select>
     <select id="getMenuById" resultType="com.judong.chuanyiserver.entity.Menu">