|
|
@@ -135,6 +135,9 @@
|
|
|
from bus_clinic as c
|
|
|
left join bus_patient
|
|
|
as p on c.patient_id = p.id
|
|
|
+ <if test="query.liquid!=null and query.liquid == true">
|
|
|
+ join bus_infusion_history as i on c.id = p.infusion_id
|
|
|
+ </if>
|
|
|
<where>
|
|
|
<if test="query.liquid!=null and query.liquid == true">
|
|
|
and c.finished= 1 and i.is_undo = 1
|