修改了疾病标签的搜索1
This commit is contained in:
parent
0675a7ea21
commit
ac161b5bd4
@ -68,13 +68,13 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="hospitalId != null and hospitalId != ''">
|
<if test="hospitalId != null and hospitalId != ''">
|
||||||
AND d.hospital_id = ${hospitalId}
|
AND d.hospital_id = #{hospitalId}
|
||||||
</if>
|
</if>
|
||||||
<if test="doctorId != null and doctorId != ''">
|
<if test="doctorId != null and doctorId != ''">
|
||||||
AND d.doctor_id = ${doctorId}
|
AND d.doctor_id = #{doctorId}
|
||||||
</if>
|
</if>
|
||||||
<if test="labelIden != null and labelIden != ''">
|
<if test="labelIden != null and labelIden != ''">
|
||||||
AND l.app_iden = ${labelIden}
|
AND l.app_iden = #{labelIden}
|
||||||
</if>
|
</if>
|
||||||
) AS result
|
) AS result
|
||||||
JOIN case_clinical_article a ON a.article_id = result.article_id
|
JOIN case_clinical_article a ON a.article_id = result.article_id
|
||||||
@ -101,10 +101,10 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="hospitalId != null and hospitalId != ''">
|
<if test="hospitalId != null and hospitalId != ''">
|
||||||
AND d.hospital_id = ${hospitalId}
|
AND d.hospital_id = #{hospitalId}
|
||||||
</if>
|
</if>
|
||||||
<if test="doctorId != null and doctorId != ''">
|
<if test="doctorId != null and doctorId != ''">
|
||||||
AND d.doctor_id = ${doctorId}
|
AND d.doctor_id = #{doctorId}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -36,13 +36,13 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="hospitalId != null and hospitalId != ''">
|
<if test="hospitalId != null and hospitalId != ''">
|
||||||
AND d.hospital_id = ${hospitalId}
|
AND d.hospital_id = #{hospitalId}
|
||||||
</if>
|
</if>
|
||||||
<if test="doctorId != null and doctorId != ''">
|
<if test="doctorId != null and doctorId != ''">
|
||||||
AND d.doctor_id = ${doctorId}
|
AND d.doctor_id = #{doctorId}
|
||||||
</if>
|
</if>
|
||||||
<if test="labelIden != null and labelIden != ''">
|
<if test="labelIden != null and labelIden != ''">
|
||||||
AND l.app_iden = ${labelIden}
|
AND l.app_iden = #{labelIden}
|
||||||
</if>
|
</if>
|
||||||
<if test="order != null and !order.isEmpty()">
|
<if test="order != null and !order.isEmpty()">
|
||||||
ORDER BY
|
ORDER BY
|
||||||
@ -67,10 +67,10 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="hospitalId != null and hospitalId != ''">
|
<if test="hospitalId != null and hospitalId != ''">
|
||||||
AND d.hospital_id = ${hospitalId}
|
AND d.hospital_id = #{hospitalId}
|
||||||
</if>
|
</if>
|
||||||
<if test="doctorId != null and doctorId != ''">
|
<if test="doctorId != null and doctorId != ''">
|
||||||
AND d.doctor_id = ${doctorId}
|
AND d.doctor_id = #{doctorId}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
AND c.user_id = ${userId}
|
AND c.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
) AS result
|
) AS result
|
||||||
JOIN case_exchange a ON result.exchange_id = a.exchange_id
|
JOIN case_exchange a ON result.exchange_id = a.exchange_id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user