select g.grid_id, g.grid_name, g.grid_notes, g.user_id, g.dept_id, g.create_by, g.create_time, g.update_by, g.update_time from ard_grid_libray g left join sys_dept d on d.dept_id = g.dept_id left join sys_user u on u.user_id = g.user_id insert into ard_grid_libray grid_id, grid_name, grid_notes, user_id, dept_id, create_by, create_time, update_by, update_time, #{gridId}, #{gridName}, #{gridNotes}, #{userId}, #{deptId}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update ard_grid_libray grid_name = #{gridName}, grid_notes = #{gridNotes}, user_id = #{userId}, dept_id = #{deptId}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where grid_id = #{gridId} delete from ard_grid_libray where grid_id = #{gridId} delete from ard_grid_libray where grid_id in #{gridId}