and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
dept_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, status,
del_flag, create_by, create_time, update_by, update_time
delete from sys_dept
where dept_id = #{deptId,jdbcType=BIGINT}
delete from sys_dept
insert into sys_dept (dept_id, parent_id, ancestors,
dept_name, order_num, leader,
phone, email, status,
del_flag, create_by, create_time,
update_by, update_time)
values (#{deptId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{ancestors,jdbcType=VARCHAR},
#{deptName,jdbcType=VARCHAR}, #{orderNum,jdbcType=INTEGER}, #{leader,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{status,jdbcType=CHAR},
#{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP})
insert into sys_dept
dept_id,
parent_id,
ancestors,
dept_name,
order_num,
leader,
phone,
email,
status,
del_flag,
create_by,
create_time,
update_by,
update_time,
#{deptId,jdbcType=BIGINT},
#{parentId,jdbcType=BIGINT},
#{ancestors,jdbcType=VARCHAR},
#{deptName,jdbcType=VARCHAR},
#{orderNum,jdbcType=INTEGER},
#{leader,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR},
#{status,jdbcType=CHAR},
#{delFlag,jdbcType=CHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
update sys_dept
dept_id = #{record.deptId,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
ancestors = #{record.ancestors,jdbcType=VARCHAR},
dept_name = #{record.deptName,jdbcType=VARCHAR},
order_num = #{record.orderNum,jdbcType=INTEGER},
leader = #{record.leader,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR},
status = #{record.status,jdbcType=CHAR},
del_flag = #{record.delFlag,jdbcType=CHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update sys_dept
set dept_id = #{record.deptId,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
ancestors = #{record.ancestors,jdbcType=VARCHAR},
dept_name = #{record.deptName,jdbcType=VARCHAR},
order_num = #{record.orderNum,jdbcType=INTEGER},
leader = #{record.leader,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR},
status = #{record.status,jdbcType=CHAR},
del_flag = #{record.delFlag,jdbcType=CHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
update sys_dept
parent_id = #{parentId,jdbcType=BIGINT},
ancestors = #{ancestors,jdbcType=VARCHAR},
dept_name = #{deptName,jdbcType=VARCHAR},
order_num = #{orderNum,jdbcType=INTEGER},
leader = #{leader,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
status = #{status,jdbcType=CHAR},
del_flag = #{delFlag,jdbcType=CHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where dept_id = #{deptId,jdbcType=BIGINT}
update sys_dept
set parent_id = #{parentId,jdbcType=BIGINT},
ancestors = #{ancestors,jdbcType=VARCHAR},
dept_name = #{deptName,jdbcType=VARCHAR},
order_num = #{orderNum,jdbcType=INTEGER},
leader = #{leader,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
status = #{status,jdbcType=CHAR},
del_flag = #{delFlag,jdbcType=CHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where dept_id = #{deptId,jdbcType=BIGINT}