bug241 264 265 fixed

This commit is contained in:
Ranyunqiao
2026-03-24 14:44:58 +08:00
parent c2b1d7d9d9
commit 07829b93c7
7 changed files with 231 additions and 117 deletions

View File

@@ -78,6 +78,36 @@
ORDER BY T1.id DESC
</select>
<!-- 诊疗目录下拉列表轻量级只查4个字段1个JOIN -->
<select id="getDiagnosisTreatmentSimpleList" resultType="com.openhis.web.datadictionary.dto.DiagnosisTreatmentDto">
SELECT
T1.id,
T1.bus_no,
T1.name,
T2.price as retail_price
FROM wor_activity_definition T1
INNER JOIN adm_charge_item_definition T2
ON T1.id = T2.instance_id
AND T2.instance_table = 'wor_activity_definition'
WHERE T1.delete_flag = '0'
AND T1.status_enum = #{statusEnum}
AND T1.tenant_id = #{tenantId}
<if test="searchKey != null and searchKey != ''">
AND (
T1.name LIKE '%' || #{searchKey} || '%'
OR T1.bus_no LIKE '%' || #{searchKey} || '%'
OR T1.py_str LIKE '%' || #{searchKey} || '%'
)
</if>
ORDER BY T1.id DESC
<if test="searchKey != null and searchKey != ''">
LIMIT 1500
</if>
<if test="searchKey == null or searchKey == ''">
LIMIT 500
</if>
</select>
<select id="getDiseaseTreatmentOne" resultType="com.openhis.web.datadictionary.dto.DiagnosisTreatmentDto">
SELECT
T1.id,