|
|
@@ -148,7 +148,7 @@
|
|
|
c.finished as finished,
|
|
|
c.monitor_start_time as monitor_start_time,
|
|
|
c.config_person as config_person
|
|
|
- FROM (SELECT `name`,gender,CODE,tenant_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
|
|
|
order by c.monitor_start_time desc;
|
|
|
</select>
|