|
@@ -4,6 +4,7 @@
|
|
<resultMap id="BaseResultMap" type="com.koobietech.eas.mbg.model.EasSysDepartment">
|
|
<resultMap id="BaseResultMap" type="com.koobietech.eas.mbg.model.EasSysDepartment">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="depname" jdbcType="VARCHAR" property="depname" />
|
|
<result column="depname" jdbcType="VARCHAR" property="depname" />
|
|
|
|
+ <result column="authority" jdbcType="VARCHAR" property="authority" />
|
|
<result column="address" jdbcType="VARCHAR" property="address" />
|
|
<result column="address" jdbcType="VARCHAR" property="address" />
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
@@ -72,8 +73,8 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, depname, address, phone, email, manager, create_time, modify_time, create_uid,
|
|
|
|
- disabled
|
|
|
|
|
|
+ id, depname, authority, address, phone, email, manager, create_time, modify_time,
|
|
|
|
+ create_uid, disabled
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasSysDepartmentExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasSysDepartmentExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -109,14 +110,14 @@
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
SELECT LAST_INSERT_ID()
|
|
SELECT LAST_INSERT_ID()
|
|
</selectKey>
|
|
</selectKey>
|
|
- insert into eas_sys_department (depname, address, phone,
|
|
|
|
- email, manager, create_time,
|
|
|
|
- modify_time, create_uid, disabled
|
|
|
|
- )
|
|
|
|
- values (#{depname,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
|
|
|
|
- #{email,jdbcType=VARCHAR}, #{manager,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER}, #{disabled,jdbcType=CHAR}
|
|
|
|
- )
|
|
|
|
|
|
+ insert into eas_sys_department (depname, authority, address,
|
|
|
|
+ phone, email, manager,
|
|
|
|
+ create_time, modify_time, create_uid,
|
|
|
|
+ disabled)
|
|
|
|
+ values (#{depname,jdbcType=VARCHAR}, #{authority,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
|
|
|
|
+ #{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{manager,jdbcType=VARCHAR},
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER},
|
|
|
|
+ #{disabled,jdbcType=CHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasSysDepartment">
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasSysDepartment">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -127,6 +128,9 @@
|
|
<if test="depname != null">
|
|
<if test="depname != null">
|
|
depname,
|
|
depname,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="authority != null">
|
|
|
|
+ authority,
|
|
|
|
+ </if>
|
|
<if test="address != null">
|
|
<if test="address != null">
|
|
address,
|
|
address,
|
|
</if>
|
|
</if>
|
|
@@ -156,6 +160,9 @@
|
|
<if test="depname != null">
|
|
<if test="depname != null">
|
|
#{depname,jdbcType=VARCHAR},
|
|
#{depname,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="authority != null">
|
|
|
|
+ #{authority,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="address != null">
|
|
<if test="address != null">
|
|
#{address,jdbcType=VARCHAR},
|
|
#{address,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -197,6 +204,9 @@
|
|
<if test="record.depname != null">
|
|
<if test="record.depname != null">
|
|
depname = #{record.depname,jdbcType=VARCHAR},
|
|
depname = #{record.depname,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.authority != null">
|
|
|
|
+ authority = #{record.authority,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.address != null">
|
|
<if test="record.address != null">
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -230,6 +240,7 @@
|
|
update eas_sys_department
|
|
update eas_sys_department
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
depname = #{record.depname,jdbcType=VARCHAR},
|
|
depname = #{record.depname,jdbcType=VARCHAR},
|
|
|
|
+ authority = #{record.authority,jdbcType=VARCHAR},
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
email = #{record.email,jdbcType=VARCHAR},
|
|
email = #{record.email,jdbcType=VARCHAR},
|
|
@@ -248,6 +259,9 @@
|
|
<if test="depname != null">
|
|
<if test="depname != null">
|
|
depname = #{depname,jdbcType=VARCHAR},
|
|
depname = #{depname,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="authority != null">
|
|
|
|
+ authority = #{authority,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="address != null">
|
|
<if test="address != null">
|
|
address = #{address,jdbcType=VARCHAR},
|
|
address = #{address,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -278,6 +292,7 @@
|
|
<update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasSysDepartment">
|
|
<update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasSysDepartment">
|
|
update eas_sys_department
|
|
update eas_sys_department
|
|
set depname = #{depname,jdbcType=VARCHAR},
|
|
set depname = #{depname,jdbcType=VARCHAR},
|
|
|
|
+ authority = #{authority,jdbcType=VARCHAR},
|
|
address = #{address,jdbcType=VARCHAR},
|
|
address = #{address,jdbcType=VARCHAR},
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
email = #{email,jdbcType=VARCHAR},
|
|
email = #{email,jdbcType=VARCHAR},
|