@ -13,6 +13,8 @@
<result column= "update_by" jdbcType= "VARCHAR" property= "updateBy" />
<result column= "update_by" jdbcType= "VARCHAR" property= "updateBy" />
<result column= "update_time" jdbcType= "TIMESTAMP" property= "updateTime" />
<result column= "update_time" jdbcType= "TIMESTAMP" property= "updateTime" />
<result column= "sync" jdbcType= "VARCHAR" property= "sync" />
<result column= "sync" jdbcType= "VARCHAR" property= "sync" />
<result column= "role_power" jdbcType= "VARCHAR" property= "rolePower" />
<result column= "data_power" jdbcType= "VARCHAR" property= "dataPower" />
</resultMap>
</resultMap>
<sql id= "Example_Where_Clause" >
<sql id= "Example_Where_Clause" >
<where >
<where >
@ -74,7 +76,7 @@
</sql>
</sql>
<sql id= "Base_Column_List" >
<sql id= "Base_Column_List" >
id, empl_name, empl_code, empl_type, dept_code, del_flag, create_by, create_time,
id, empl_name, empl_code, empl_type, dept_code, del_flag, create_by, create_time,
update_by, update_time, sync
update_by, update_time, sync, role_power, data_power
</sql>
</sql>
<select id= "selectByExample" parameterType= "com.ccsens.system.domain.po.DockEmplExample" resultMap= "BaseResultMap" >
<select id= "selectByExample" parameterType= "com.ccsens.system.domain.po.DockEmplExample" resultMap= "BaseResultMap" >
select
select
@ -110,11 +112,13 @@
insert into dock_empl (id, empl_name, empl_code,
insert into dock_empl (id, empl_name, empl_code,
empl_type, dept_code, del_flag,
empl_type, dept_code, del_flag,
create_by, create_time, update_by,
create_by, create_time, update_by,
update_time, sync)
update_time, sync, role_power,
data_power)
values (#{id,jdbcType=BIGINT}, #{emplName,jdbcType=VARCHAR}, #{emplCode,jdbcType=VARCHAR},
values (#{id,jdbcType=BIGINT}, #{emplName,jdbcType=VARCHAR}, #{emplCode,jdbcType=VARCHAR},
#{emplType,jdbcType=VARCHAR}, #{deptCode,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR},
#{emplType,jdbcType=VARCHAR}, #{deptCode,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{sync,jdbcType=VARCHAR})
#{updateTime,jdbcType=TIMESTAMP}, #{sync,jdbcType=VARCHAR}, #{rolePower,jdbcType=VARCHAR},
#{dataPower,jdbcType=VARCHAR})
</insert>
</insert>
<insert id= "insertSelective" parameterType= "com.ccsens.system.domain.po.DockEmpl" >
<insert id= "insertSelective" parameterType= "com.ccsens.system.domain.po.DockEmpl" >
insert into dock_empl
insert into dock_empl
@ -152,6 +156,12 @@
<if test= "sync != null" >
<if test= "sync != null" >
sync,
sync,
</if>
</if>
<if test= "rolePower != null" >
role_power,
</if>
<if test= "dataPower != null" >
data_power,
</if>
</trim>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "id != null" >
<if test= "id != null" >
@ -187,6 +197,12 @@
<if test= "sync != null" >
<if test= "sync != null" >
#{sync,jdbcType=VARCHAR},
#{sync,jdbcType=VARCHAR},
</if>
</if>
<if test= "rolePower != null" >
#{rolePower,jdbcType=VARCHAR},
</if>
<if test= "dataPower != null" >
#{dataPower,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<select id= "countByExample" parameterType= "com.ccsens.system.domain.po.DockEmplExample" resultType= "java.lang.Long" >
<select id= "countByExample" parameterType= "com.ccsens.system.domain.po.DockEmplExample" resultType= "java.lang.Long" >
@ -231,6 +247,12 @@
<if test= "record.sync != null" >
<if test= "record.sync != null" >
sync = #{record.sync,jdbcType=VARCHAR},
sync = #{record.sync,jdbcType=VARCHAR},
</if>
</if>
<if test= "record.rolePower != null" >
role_power = #{record.rolePower,jdbcType=VARCHAR},
</if>
<if test= "record.dataPower != null" >
data_power = #{record.dataPower,jdbcType=VARCHAR},
</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" />
@ -248,7 +270,9 @@
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
sync = #{record.sync,jdbcType=VARCHAR}
sync = #{record.sync,jdbcType=VARCHAR},
role_power = #{record.rolePower,jdbcType=VARCHAR},
data_power = #{record.dataPower,jdbcType=VARCHAR}
<if test= "_parameter != null" >
<if test= "_parameter != null" >
<include refid= "Update_By_Example_Where_Clause" />
<include refid= "Update_By_Example_Where_Clause" />
</if>
</if>
@ -286,6 +310,12 @@
<if test= "sync != null" >
<if test= "sync != null" >
sync = #{sync,jdbcType=VARCHAR},
sync = #{sync,jdbcType=VARCHAR},
</if>
</if>
<if test= "rolePower != null" >
role_power = #{rolePower,jdbcType=VARCHAR},
</if>
<if test= "dataPower != null" >
data_power = #{dataPower,jdbcType=VARCHAR},
</if>
</set>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
@ -300,7 +330,9 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
sync = #{sync,jdbcType=VARCHAR}
sync = #{sync,jdbcType=VARCHAR},
role_power = #{rolePower,jdbcType=VARCHAR},
data_power = #{dataPower,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
</mapper>
</mapper>