select id, path_id, path_name, op_user_id, op_user_name, op_date, branch_id, status, remarks from audit_paths insert into audit_paths path_id, path_name, op_user_id, op_user_name, op_date, branch_id, status, remarks, #{pathId}, #{pathName}, #{opUserId}, #{opUserName}, #{opDate}, #{branchId}, #{status}, #{remarks}, update audit_paths path_id = #{pathId}, path_name = #{pathName}, op_user_id = #{opUserId}, op_user_name = #{opUserName}, op_date = #{opDate}, branch_id = #{branchId}, status = #{status}, remarks = #{remarks}, where id = #{id} delete audit.*, levels.* from audit_paths audit LEFT JOIN audit_paths_levels levels ON levels.path_id = audit.id where audit.id = #{id} delete audit.*, levels.* from audit_paths audit LEFT JOIN audit_paths_levels levels ON levels.path_id = audit.id where audit.id in #{id}