|
@@ -5,19 +5,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
|
|
|
|
|
|
<resultMap type="SysDictType" id="SysDictTypeResult">
|
|
|
- <id property="dictId" column="dict_id" />
|
|
|
- <result property="dictName" column="dict_name" />
|
|
|
- <result property="dictType" column="dict_type" />
|
|
|
- <result property="status" column="status" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
+ <result property="dictId" column="dict_id" />
|
|
|
+ <result property="dictName" column="dict_name" />
|
|
|
+ <result property="dictType" column="dict_type" />
|
|
|
+ <result property="dictAuthority" column="dict_authority" />
|
|
|
+ <result property="status" column="status" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDictTypeVo">
|
|
|
- select dict_id, dict_name, dict_type, status, create_by, create_time, remark
|
|
|
- from sys_dict_type
|
|
|
+ select dict_id, dict_name, dict_type, dict_authority, status, create_by, create_time, update_by, update_time, remark
|
|
|
+ from sys_dict_type
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
|
|
@@ -32,6 +34,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="dictType != null and dictType != ''">
|
|
|
AND dict_type like concat('%', #{dictType}, '%')
|
|
|
</if>
|
|
|
+ <if test="dictAuthority != null and dictAuthority != ''">
|
|
|
+ and dict_authority = #{dictAuthority}
|
|
|
+ </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>
|
|
@@ -76,7 +81,8 @@ 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="status != null">status = #{status},</if>
|
|
|
+ <if test="dictAuthority != null">dict_authority = #{dictAuthority},</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>
|
|
|
update_time = sysdate()
|
|
@@ -88,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="dictAuthority != null">dict_authority,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
@@ -95,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="dictAuthority != null">#{dictAuthority},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|