|
@@ -4,15 +4,13 @@
|
|
<resultMap id="BaseResultMap" type="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
<resultMap id="BaseResultMap" type="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
+ <result column="description" jdbcType="VARCHAR" property="description" />
|
|
<result column="is_active" jdbcType="TINYINT" property="isActive" />
|
|
<result column="is_active" jdbcType="TINYINT" property="isActive" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
<result column="create_uid" jdbcType="INTEGER" property="createUid" />
|
|
<result column="create_uid" jdbcType="INTEGER" property="createUid" />
|
|
<result column="disabled" jdbcType="CHAR" property="disabled" />
|
|
<result column="disabled" jdbcType="CHAR" property="disabled" />
|
|
</resultMap>
|
|
</resultMap>
|
|
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
|
|
- <result column="description" jdbcType="LONGVARCHAR" property="description" />
|
|
|
|
- </resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -72,27 +70,8 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, name, is_active, create_time, modify_time, create_uid, disabled
|
|
|
|
- </sql>
|
|
|
|
- <sql id="Blob_Column_List">
|
|
|
|
- description
|
|
|
|
|
|
+ id, name, description, is_active, create_time, modify_time, create_uid, disabled
|
|
</sql>
|
|
</sql>
|
|
- <select id="selectByExampleWithBLOBs" parameterType="com.koobietech.eas.mbg.model.EasSysPermissionExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
- select
|
|
|
|
- <if test="distinct">
|
|
|
|
- distinct
|
|
|
|
- </if>
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
- ,
|
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
|
- from eas_sys_permission
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
|
- </if>
|
|
|
|
- <if test="orderByClause != null">
|
|
|
|
- order by ${orderByClause}
|
|
|
|
- </if>
|
|
|
|
- </select>
|
|
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasSysPermissionExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasSysPermissionExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -107,11 +86,9 @@
|
|
order by ${orderByClause}
|
|
order by ${orderByClause}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
- ,
|
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
|
from eas_sys_permission
|
|
from eas_sys_permission
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
</select>
|
|
@@ -129,12 +106,12 @@
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
SELECT LAST_INSERT_ID()
|
|
SELECT LAST_INSERT_ID()
|
|
</selectKey>
|
|
</selectKey>
|
|
- insert into eas_sys_permission (name, is_active, create_time,
|
|
|
|
- modify_time, create_uid, disabled,
|
|
|
|
- description)
|
|
|
|
- values (#{name,jdbcType=VARCHAR}, #{isActive,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER}, #{disabled,jdbcType=CHAR},
|
|
|
|
- #{description,jdbcType=LONGVARCHAR})
|
|
|
|
|
|
+ insert into eas_sys_permission (name, description, is_active,
|
|
|
|
+ create_time, modify_time, create_uid,
|
|
|
|
+ disabled)
|
|
|
|
+ values (#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{isActive,jdbcType=TINYINT},
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER},
|
|
|
|
+ #{disabled,jdbcType=CHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
@@ -145,6 +122,9 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
name,
|
|
name,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="description != null">
|
|
|
|
+ description,
|
|
|
|
+ </if>
|
|
<if test="isActive != null">
|
|
<if test="isActive != null">
|
|
is_active,
|
|
is_active,
|
|
</if>
|
|
</if>
|
|
@@ -160,14 +140,14 @@
|
|
<if test="disabled != null">
|
|
<if test="disabled != null">
|
|
disabled,
|
|
disabled,
|
|
</if>
|
|
</if>
|
|
- <if test="description != null">
|
|
|
|
- description,
|
|
|
|
- </if>
|
|
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
#{name,jdbcType=VARCHAR},
|
|
#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="description != null">
|
|
|
|
+ #{description,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="isActive != null">
|
|
<if test="isActive != null">
|
|
#{isActive,jdbcType=TINYINT},
|
|
#{isActive,jdbcType=TINYINT},
|
|
</if>
|
|
</if>
|
|
@@ -183,9 +163,6 @@
|
|
<if test="disabled != null">
|
|
<if test="disabled != null">
|
|
#{disabled,jdbcType=CHAR},
|
|
#{disabled,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="description != null">
|
|
|
|
- #{description,jdbcType=LONGVARCHAR},
|
|
|
|
- </if>
|
|
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.koobietech.eas.mbg.model.EasSysPermissionExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.koobietech.eas.mbg.model.EasSysPermissionExample" resultType="java.lang.Long">
|
|
@@ -203,6 +180,9 @@
|
|
<if test="record.name != null">
|
|
<if test="record.name != null">
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.description != null">
|
|
|
|
+ description = #{record.description,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.isActive != null">
|
|
<if test="record.isActive != null">
|
|
is_active = #{record.isActive,jdbcType=TINYINT},
|
|
is_active = #{record.isActive,jdbcType=TINYINT},
|
|
</if>
|
|
</if>
|
|
@@ -218,32 +198,16 @@
|
|
<if test="record.disabled != null">
|
|
<if test="record.disabled != null">
|
|
disabled = #{record.disabled,jdbcType=CHAR},
|
|
disabled = #{record.disabled,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="record.description != null">
|
|
|
|
- description = #{record.description,jdbcType=LONGVARCHAR},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
</update>
|
|
</update>
|
|
- <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
- update eas_sys_permission
|
|
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
- name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
- is_active = #{record.isActive,jdbcType=TINYINT},
|
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
|
|
- disabled = #{record.disabled,jdbcType=CHAR},
|
|
|
|
- description = #{record.description,jdbcType=LONGVARCHAR}
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
|
- </if>
|
|
|
|
- </update>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
<update id="updateByExample" parameterType="map">
|
|
update eas_sys_permission
|
|
update eas_sys_permission
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
+ description = #{record.description,jdbcType=VARCHAR},
|
|
is_active = #{record.isActive,jdbcType=TINYINT},
|
|
is_active = #{record.isActive,jdbcType=TINYINT},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
@@ -259,6 +223,9 @@
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
name = #{name,jdbcType=VARCHAR},
|
|
name = #{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="description != null">
|
|
|
|
+ description = #{description,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="isActive != null">
|
|
<if test="isActive != null">
|
|
is_active = #{isActive,jdbcType=TINYINT},
|
|
is_active = #{isActive,jdbcType=TINYINT},
|
|
</if>
|
|
</if>
|
|
@@ -274,26 +241,13 @@
|
|
<if test="disabled != null">
|
|
<if test="disabled != null">
|
|
disabled = #{disabled,jdbcType=CHAR},
|
|
disabled = #{disabled,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="description != null">
|
|
|
|
- description = #{description,jdbcType=LONGVARCHAR},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</update>
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
|
|
- update eas_sys_permission
|
|
|
|
- set name = #{name,jdbcType=VARCHAR},
|
|
|
|
- is_active = #{isActive,jdbcType=TINYINT},
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
|
- create_uid = #{createUid,jdbcType=INTEGER},
|
|
|
|
- disabled = #{disabled,jdbcType=CHAR},
|
|
|
|
- description = #{description,jdbcType=LONGVARCHAR}
|
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
|
- </update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
<update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasSysPermission">
|
|
update eas_sys_permission
|
|
update eas_sys_permission
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
|
+ description = #{description,jdbcType=VARCHAR},
|
|
is_active = #{isActive,jdbcType=TINYINT},
|
|
is_active = #{isActive,jdbcType=TINYINT},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|