修改了疾病标签的搜索1

This commit is contained in:
wucongxing8150 2025-07-16 16:39:03 +08:00
parent 0675a7ea21
commit ac161b5bd4
3 changed files with 11 additions and 11 deletions

View File

@ -68,13 +68,13 @@
)
</if>
<if test="hospitalId != null and hospitalId != ''">
AND d.hospital_id = ${hospitalId}
AND d.hospital_id = #{hospitalId}
</if>
<if test="doctorId != null and doctorId != ''">
AND d.doctor_id = ${doctorId}
AND d.doctor_id = #{doctorId}
</if>
<if test="labelIden != null and labelIden != ''">
AND l.app_iden = ${labelIden}
AND l.app_iden = #{labelIden}
</if>
) AS result
JOIN case_clinical_article a ON a.article_id = result.article_id
@ -101,10 +101,10 @@
)
</if>
<if test="hospitalId != null and hospitalId != ''">
AND d.hospital_id = ${hospitalId}
AND d.hospital_id = #{hospitalId}
</if>
<if test="doctorId != null and doctorId != ''">
AND d.doctor_id = ${doctorId}
AND d.doctor_id = #{doctorId}
</if>
</select>
</mapper>

View File

@ -36,13 +36,13 @@
)
</if>
<if test="hospitalId != null and hospitalId != ''">
AND d.hospital_id = ${hospitalId}
AND d.hospital_id = #{hospitalId}
</if>
<if test="doctorId != null and doctorId != ''">
AND d.doctor_id = ${doctorId}
AND d.doctor_id = #{doctorId}
</if>
<if test="labelIden != null and labelIden != ''">
AND l.app_iden = ${labelIden}
AND l.app_iden = #{labelIden}
</if>
<if test="order != null and !order.isEmpty()">
ORDER BY
@ -67,10 +67,10 @@
)
</if>
<if test="hospitalId != null and hospitalId != ''">
AND d.hospital_id = ${hospitalId}
AND d.hospital_id = #{hospitalId}
</if>
<if test="doctorId != null and doctorId != ''">
AND d.doctor_id = ${doctorId}
AND d.doctor_id = #{doctorId}
</if>
</select>
</mapper>

View File

@ -45,7 +45,7 @@
)
</if>
<if test="userId != null and userId != ''">
AND c.user_id = ${userId}
AND c.user_id = #{userId}
</if>
) AS result
JOIN case_exchange a ON result.exchange_id = a.exchange_id