|
@@ -26,20 +26,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
|
|
|
- <include refid="selectDictDataVo"/>
|
|
|
- <where>
|
|
|
- <if test="dictType != null and dictType != ''">
|
|
|
- AND dict_type = #{dictType}
|
|
|
- </if>
|
|
|
- <if test="dictLabel != null and dictLabel != ''">
|
|
|
- AND dict_label like concat('%', #{dictLabel}, '%')
|
|
|
- </if>
|
|
|
- <if test="status != null and status != ''">
|
|
|
- AND status = #{status}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- order by dict_sort asc
|
|
|
- </select>
|
|
|
+ <include refid="selectDictDataVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="dictType != null and dictType != ''">
|
|
|
+ AND dict_type = #{dictType}
|
|
|
+ </if>
|
|
|
+ <if test="dictLabel != null and dictLabel != ''">
|
|
|
+ AND dict_label like concat('%', #{dictLabel}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="status != null and status != ''">
|
|
|
+ AND status = #{status}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by create_time desc, dict_sort asc
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult">
|
|
|
<include refid="selectDictDataVo"/>
|