根因: - 第一分支(用药医嘱)的列顺序为 start_time, therapyEnum, sort_number - 第二/三分支(设备/服务医嘱)的列顺序为 therapyEnum, sort_number, start_time - UNION 时 PostgreSQL 校验第 30 位列发现 timestamp vs integer 类型冲突 修复: - 将第一分支的 start_time 移到 therapyEnum 和 sort_number 之后 - 三个分支列顺序现在完全对齐 报错: UNION types timestamp with time zone and integer cannot be matched