bug241 264 265 fixed
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user