|
@@ -149,7 +149,7 @@
|
|
|
c.monitor_start_time as monitor_start_time,
|
|
c.monitor_start_time as monitor_start_time,
|
|
|
c.config_person as config_person
|
|
c.config_person as config_person
|
|
|
FROM (SELECT `name`,gender,CODE,tenant_id,id FROM bus_patient WHERE bus_patient.`alarm`=2 ) AS p
|
|
FROM (SELECT `name`,gender,CODE,tenant_id,id FROM bus_patient WHERE bus_patient.`alarm`=2 ) AS p
|
|
|
- join (SELECT * FROM bus_clinic WHERE finished=0 and monitor_type=1) AS c ON c.`patient_code`=p.code
|
|
|
|
|
|
|
+ join (SELECT * FROM bus_clinic WHERE finished=0 and monitor_type=1) AS c ON c.`patient_id`=p.id
|
|
|
order by c.monitor_start_time desc;
|
|
order by c.monitor_start_time desc;
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -433,7 +433,6 @@
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
) as c on p.id=c.patient_id
|
|
) as c on p.id=c.patient_id
|
|
|
- -- ) as c on p.code=c.patient_code
|
|
|
|
|
<where>
|
|
<where>
|
|
|
<if test="alarmValue!=null">
|
|
<if test="alarmValue!=null">
|
|
|
and p.alarm=#{alarmValue}
|
|
and p.alarm=#{alarmValue}
|