select group_id, group_parent_id, ancestors, group_name, order_num, create_by, create_time, update_by, update_time from ard_inspection_group insert into ard_inspection_group group_parent_id, ancestors, group_name, order_num, create_by, create_time, update_by, update_time, #{groupParentId}, #{ancestors}, #{groupName}, #{orderNum}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update ard_inspection_group group_parent_id = #{groupParentId}, ancestors = #{ancestors}, group_name = #{groupName}, order_num = #{orderNum}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where group_id = #{groupId} delete from ard_inspection_group where group_id = #{groupId} delete from ard_inspection_group where group_id in #{groupId} update ard_inspection_group set ancestors = when #{item.groupId} then #{item.ancestors} where group_id in #{item.groupId}