wangjian963
4e7e79d9c0
Fix Bug #489-regression: [住院护士站-医嘱处理] UNION加SELECT DISTINCT后NULL列类型推断失败导致接口异常
Root cause: Bug #489修复为UNION添加SELECT DISTINCT后,PostgreSQL无法将
服务侧无类型NULL文字自动匹配药品侧对应列的类型,报错"UNION types integer
and text cannot be matched"(错误位置: skin_test_flag列,第9列)。
Fix:
- InpatientAdviceDto.categoryCode: Integer → String,与DB varchar对齐
- AdviceProcessAppMapper.xml: 服务侧UNION 13处NULL添加PostgreSQL显式类型
强转(::integer / ::bigint / ::numeric / ::varchar),同时part_percent
的'1'改为'1::numeric'以安全匹配药品侧numeric类型
2026-05-14 17:53:31 +08:00
..
2026-05-08 09:14:18 +08:00
2026-05-12 11:10:43 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-14 12:15:47 +08:00
2026-05-14 17:53:31 +08:00
2026-05-14 14:26:38 +08:00
2026-05-14 00:06:34 +08:00
2026-05-08 09:14:18 +08:00
2026-05-13 14:00:45 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00
2026-05-08 09:14:18 +08:00