|
@ -4040,7 +4040,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
PatientVO p = new PatientVO();
|
|
|
List<PatientVO> plist = new ArrayList<>();
|
|
|
if(sign.get("patient") != null){
|
|
|
String patientsql = "select a.*,b. as deviceType,c.disease as disease from wlyy_patient a" +
|
|
|
String patientsql = "select a.*,b.deviceType as deviceType,c.disease as disease from wlyy_patient a" +
|
|
|
" left join (select user,group_concat(category_code) deviceType FROM wlyy_patient_device GROUP BY user) b on a.code = b.user" +
|
|
|
" left join (select patient,group_concat(label) disease from wlyy_sign_patient_label_info where label_type = 3 and status=1 " +
|
|
|
" and (label = 1 or label = 2) and patient = '"+sign.get("patient").toString()+"' GROUP BY patient) c on a.code = c.patient" +
|