Browse Source

字典类型增加按照事件倒序

master
parent
commit
102d2c7db1
  1. 11
      ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml

11
ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml

@ -16,14 +16,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDictTypeVo">
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
from sys_dict_type
</sql>
</sql>
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
<include refid="selectDictTypeVo"/>
<where>
<if test="dictName != null and dictName != ''">
<if test="dictName != null and dictName != ''">
AND dict_name like concat('%', #{dictName}, '%')
</if>
<if test="status != null and status != ''">
@ -38,7 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
</if>
</where>
</where>
ORDER BY create_time DESC
</select>
<select id="selectDictTypeAll" resultMap="SysDictTypeResult">

Loading…
Cancel
Save