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