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类型
This commit is contained in:
@@ -245,7 +245,7 @@ public class InpatientAdviceDto {
|
||||
/**
|
||||
* 药品/服务类型
|
||||
*/
|
||||
private Integer categoryCode;
|
||||
private String categoryCode;
|
||||
/**
|
||||
* 执行科室
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user