|
|
@@ -71,7 +71,12 @@
|
|
|
FROM
|
|
|
biz_reasearch_queue_clinic brqc
|
|
|
LEFT JOIN biz_clinic_room bcr ON brqc.clinic_room_id = bcr.id
|
|
|
- where brqc.queue_id = #{query.queueId}
|
|
|
+ <where>
|
|
|
+ and brqc.queue_id = #{query.queueId}
|
|
|
+ <if test="query.condition != null">
|
|
|
+ and bcr.patient_name like concat('%',#{query.condition},'%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
order by brqc.create_time desc
|
|
|
</select>
|
|
|
|