|
@ -4487,6 +4487,7 @@ public class ImService {
|
|
|
"FROM wlyy_outpatient op LEFT JOIN wlyy_consult a ON a.relation_code = op.id \n" +
|
|
|
" LEFT join wlyy_consult_team b on a.id = b.consult" +
|
|
|
" LEFT JOIN base_patient d on op.patient = d.id " +
|
|
|
" LEFT JOIN wlyy_outpatient_hospitalization oh on op.id= oh.outpatient_id " +
|
|
|
" WHERE 1=1 ";
|
|
|
if (status == 1) {
|
|
|
sql += " and op.status = 0";
|