select id, dept_branch_id, dept_outlet_id, cust_type, cust_id, cust_name, region_code, grid_type, grid_id, parent_grid_id, user_name, relation_status, update_by, update_time, update_dept from sys_grid_user_cust insert into sys_grid_user_cust dept_branch_id, dept_outlet_id, cust_id, cust_name, region_code, grid_type, grid_top_id, grid_sec_id, user_name, relation_status, update_by, update_time, update_dept, #{deptBranchId}, #{deptOutletId}, #{custId}, #{custName}, #{regionCode}, #{gridType}, #{gridTopId}, #{gridSecId}, #{userName}, #{relationStatus}, #{updateBy}, #{updateTime}, #{updateDept}, update sys_grid_user_cust dept_branch_id = #{deptBranchId}, dept_outlet_id = #{deptOutletId}, cust_id = #{custId}, cust_name = #{custName}, region_code = #{regionCode}, grid_type = #{gridType}, grid_top_id = #{gridTopId}, grid_sec_id = #{gridSecId}, user_name = #{userName}, relation_status = #{relationStatus}, update_by = #{updateBy}, update_time = #{updateTime}, update_dept = #{updateDept}, where id = #{id} delete from sys_grid_user_cust where id = #{id} delete from sys_grid_user_cust where id in #{id}