From a90062c1f12314da9af48d222fb337f343b19e4a Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: Thu, 4 Jun 2020 14:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=88=97=E8=A1=A8=E6=A0=B9=E6=8D=AEdictSort=E5=8D=87?= =?UTF-8?q?=E5=BA=8F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mybatis/system/SysDictDataMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mybatis/system/SysDictDataMapper.xml b/src/main/resources/mybatis/system/SysDictDataMapper.xml index 3502834..fc9800d 100644 --- a/src/main/resources/mybatis/system/SysDictDataMapper.xml +++ b/src/main/resources/mybatis/system/SysDictDataMapper.xml @@ -38,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND status = #{status} </if> </where> + order by dict_sort asc </select> <select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult"> @@ -73,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <update id="updateDictData" parameterType="SysDictData"> update sys_dict_data <set> - <if test="dictSort != null and dictSort != ''">dict_sort = #{dictSort},</if> + <if test="dictSort != null">dict_sort = #{dictSort},</if> <if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if> <if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if> <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>