select id, dept_name, dept_parent_id, organization_id, organization_name, create_time, update_time, create_by, update_by, del_flag, sort from mj_dept
insert into mj_dept
id,
dept_name,
dept_parent_id,
organization_id,
organization_name,
create_time,
update_time,
create_by,
update_by,
del_flag,
sort,
#{id},
#{deptName},
#{deptParentId},
#{organizationId},
#{organizationName},
#{createTime},
#{updateTime},
#{createBy},
#{updateBy},
#{delFlag},
#{sort},
update mj_dept
dept_name = #{deptName},
dept_parent_id = #{deptParentId},
organization_id = #{organizationId},
organization_name = #{organizationName},
create_time = #{createTime},
update_time = #{updateTime},
create_by = #{createBy},
update_by = #{updateBy},
del_flag = #{delFlag},
sort = #{sort},
where id = #{id}
delete from mj_dept where id = #{id}
delete from mj_dept where id in
#{id}