|
|
|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<id property="dictId" column="dict_id" />
|
|
|
|
|
<result property="dictName" column="dict_name" />
|
|
|
|
|
<result property="dictType" column="dict_type" />
|
|
|
|
|
<result property="dictGroup" column="dict_group" />
|
|
|
|
|
<result property="status" column="status" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
@ -16,7 +17,7 @@ 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, dict_group, status, create_by, create_time, remark
|
|
|
|
|
from sys_dict_type
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -32,6 +33,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="dictType != null and dictType != ''">
|
|
|
|
|
AND dict_type like concat('%', #{dictType}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dictGroup != null and dictGroup != ''">
|
|
|
|
|
AND dict_group like concat('%', #{dictGroup}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
|
|
and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
|
|
</if>
|
|
|
|
@ -39,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by update_time desc ,dict_id desc
|
|
|
|
|
order by dict_group desc, update_time desc ,dict_id desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectDictTypeAll" resultMap="SysDictTypeResult">
|
|
|
|
@ -77,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<set>
|
|
|
|
|
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
|
|
|
|
|
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
|
|
|
|
|
<if test="dictGroup != null and dictGroup != ''">dict_group = #{dictGroup},</if>
|
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
|
@ -89,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
insert into sys_dict_type(
|
|
|
|
|
<if test="dictName != null and dictName != ''">dict_name,</if>
|
|
|
|
|
<if test="dictType != null and dictType != ''">dict_type,</if>
|
|
|
|
|
<if test="dictGroup != null and dictGroup != ''">dict_group,</if>
|
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
@ -96,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
)values(
|
|
|
|
|
<if test="dictName != null and dictName != ''">#{dictName},</if>
|
|
|
|
|
<if test="dictType != null and dictType != ''">#{dictType},</if>
|
|
|
|
|
<if test="dictGroup != null and dictGroup != ''">#{dictGroup},</if>
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
|