|
@ -688,12 +688,12 @@ public class DataHandingService {
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
|
|
|
//wlyy_patient_device取出对应的device_sn和doctor
|
|
|
String patientDeviceSql ="SELECT device_sn,doctor,doctor_name FROM `wlyy_patient_device` WHERE doctor IS NOT NULL and doctor = '' and category_code IN('1','2') GROUP BY device_sn";
|
|
|
String patientDeviceSql ="SELECT device_sn,doctor,doctor_name FROM `wlyy_patient_device` WHERE doctor IS NOT NULL and doctor <> '' and category_code IN('1','2') GROUP BY device_sn";
|
|
|
List<Map<String,Object>> patientDeviceList = jdbcTemplate.queryForList(patientDeviceSql);
|
|
|
String patientDeviceLogSql ="SELECT s.* FROM" +
|
|
|
"(SELECT device_sn, operator doctor, operator_name doctor_name FROM" +
|
|
|
" wlyy_patient_device_log WHERE device_sn NOT IN (SELECT device_sn FROM wlyy_patient_device WHERE" +
|
|
|
" category_code IN ('1', '2') AND doctor IS NOT NULL GROUP BY device_sn )" +
|
|
|
" category_code IN ('1', '2') AND doctor IS NOT NULL and doctor <> '' GROUP BY device_sn )" +
|
|
|
" AND category_code IN ('1', '2')" +
|
|
|
" AND operate_code = 1" +
|
|
|
" AND is_del = 1" +
|