|
@ -396,11 +396,10 @@ public class DoctorSchemeService {
|
|
// List<Patient> patients = patientDao.findAllSignPatientTeamcode(teamCode,doctorcode);
|
|
// List<Patient> patients = patientDao.findAllSignPatientTeamcode(teamCode,doctorcode);
|
|
|
|
|
|
List<PatientVO> patients = new ArrayList<>();
|
|
List<PatientVO> patients = new ArrayList<>();
|
|
String patientsql = "select p.*,b.deviceType as deviceType,group_concat(sp.label) as disease from wlyy_patient p " +
|
|
|
|
|
|
String patientsql = "select p.code,p.standard_status,p.disease_condition,group_concat(sp.label) as disease from wlyy_patient p " +
|
|
" LEFT JOIN wlyy_sign_family s on s.patient = p.code " +
|
|
" LEFT JOIN wlyy_sign_family s on s.patient = p.code " +
|
|
" RIGHT JOIN wlyy_sign_patient_label_info sp on sp.patient = p.code and sp.label_type = 3 and (sp.label = 1 or sp.label = 2) and sp.status =1" +
|
|
" RIGHT JOIN wlyy_sign_patient_label_info sp on sp.patient = p.code and sp.label_type = 3 and (sp.label = 1 or sp.label = 2) and sp.status =1" +
|
|
" LEFT JOIN (select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user) b on p.code = b.user " +
|
|
|
|
"WHERE s.status > 0 and s.admin_team_code ='"+teamCode+"' and (s.doctor = '"+doctorcode+"' or s.doctor_health ='"+doctorcode+"') GROUP BY p.code";
|
|
|
|
|
|
" WHERE s.status > 0 and s.admin_team_code ='"+teamCode+"' and (s.doctor = '"+doctorcode+"' or s.doctor_health ='"+doctorcode+"') GROUP BY p.code";
|
|
|
|
|
|
patients= jdbcTemplate.query(patientsql,new BeanPropertyRowMapper(PatientVO.class));
|
|
patients= jdbcTemplate.query(patientsql,new BeanPropertyRowMapper(PatientVO.class));
|
|
|
|
|