dept_id, pid, sub_count, name, dept_sort, enabled, create_by, update_by, create_time,
update_time
delete from sys_dept
where dept_id = #{deptId,jdbcType=BIGINT}
insert into sys_dept (dept_id, pid, sub_count,
name, dept_sort, enabled,
create_by, update_by, create_time,
update_time)
values (#{deptId,jdbcType=BIGINT}, #{pid,jdbcType=BIGINT}, #{subCount,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR}, #{deptSort,jdbcType=INTEGER}, #{enabled,jdbcType=BIT},
#{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
insert into sys_dept
dept_id,
pid,
sub_count,
name,
dept_sort,
enabled,
create_by,
update_by,
create_time,
update_time,
#{deptId,jdbcType=BIGINT},
#{pid,jdbcType=BIGINT},
#{subCount,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{deptSort,jdbcType=INTEGER},
#{enabled,jdbcType=BIT},
#{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
update sys_dept
pid = #{pid,jdbcType=BIGINT},
sub_count = #{subCount,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
dept_sort = #{deptSort,jdbcType=INTEGER},
enabled = #{enabled,jdbcType=BIT},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where dept_id = #{deptId,jdbcType=BIGINT}
update sys_dept
set pid = #{pid,jdbcType=BIGINT},
sub_count = #{subCount,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
dept_sort = #{deptSort,jdbcType=INTEGER},
enabled = #{enabled,jdbcType=BIT},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where dept_id = #{deptId,jdbcType=BIGINT}