|
@ -8,6 +8,7 @@ import com.yihu.wlyy.entity.doctor.scheme.DoctorSchemeBloodPressure;
|
|
|
import com.yihu.wlyy.entity.doctor.scheme.DoctorSchemeBloodSugger;
|
|
|
import com.yihu.wlyy.entity.doctor.scheme.vo.DoctorSchemeBloodPressureVO;
|
|
|
import com.yihu.wlyy.entity.doctor.scheme.vo.DoctorSchemeBloodSuggerVO;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.entity.patient.PatientSchemeList;
|
|
|
import com.yihu.wlyy.entity.patient.vo.PatientVO;
|
|
|
import com.yihu.wlyy.health.repository.DevicePatientHealthIndexDao;
|
|
@ -395,7 +396,7 @@ public class DoctorSchemeService {
|
|
|
// List<Patient> patients = patientDao.findAllSignPatientTeamcode(teamCode,doctorcode);
|
|
|
|
|
|
List<PatientVO> patients = new ArrayList<>();
|
|
|
String patientsql = "select p.*,b.deviceType as deviceType,group_concat(sp.label) diseaseType from wlyy_patient p " +
|
|
|
String patientsql = "select p.*,b.deviceType as deviceType,group_concat(sp.label) as disease from wlyy_patient p " +
|
|
|
" 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" +
|
|
|
" LEFT JOIN (select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user) b on p.code = b.user " +
|