fix: 修复#447住院医生站手术申请弹窗无法加载手术类诊疗目录数据

根因: adviceType=3(诊疗)查询时强制排除手术项(category_code!='手术'且!='24'),
导致通过categoryCode='24'显式查询手术项目时结果为空。

修复: 仅在未指定categoryCode时才排除手术,
当显式指定categoryCode='24'或'手术'时允许加载手术类项目。
This commit is contained in:
guanyu
2026-04-25 16:12:03 +08:00
parent 4beb4c40c5
commit 059ef483ca

View File

@@ -277,7 +277,7 @@
AND (T1.category_code = '手术' OR T1.category_code = '24') AND (T1.category_code = '手术' OR T1.category_code = '24')
</if> </if>
<!-- 如果只选择诊疗(adviceType=3),排除手术 --> <!-- 如果只选择诊疗(adviceType=3),排除手术 -->
<if test="adviceTypes.contains(3) and !adviceTypes.contains(6)"> <if test="adviceTypes.contains(3) and !adviceTypes.contains(6) and (categoryCode == null or categoryCode == '')">
AND T1.category_code != '手术' AND T1.category_code != '24' AND T1.category_code != '手术' AND T1.category_code != '24'
</if> </if>
<if test="searchKey != null and searchKey != ''"> <if test="searchKey != null and searchKey != ''">