|
@ -2058,7 +2058,9 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> findMonitorPatientsByDoctor(String doctor,String topicItem){
|
|
|
|
|
|
public JSONObject findMonitorPatientsByDoctor(String doctor,String topicItem,Integer page,Integer pageSize,Integer detail){
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
String sql = " SELECT DISTINCT p.id,p.name,p.residential_area residentialArea,p.photo,p.idcard,p.mobile, " +
|
|
String sql = " SELECT DISTINCT p.id,p.name,p.residential_area residentialArea,p.photo,p.idcard,p.mobile, " +
|
|
" p.openid,p.sex,p.pad_imei padImei " +
|
|
" p.openid,p.sex,p.pad_imei padImei " +
|
|
" from base_patient p , base_service_package_sign_record sr,base_service_package_record r,base_team_member m " +
|
|
" from base_patient p , base_service_package_sign_record sr,base_service_package_record r,base_team_member m " +
|
|
@ -2071,7 +2073,9 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
if ("preventLost".equals(topicItem)){//有绑定围栏的居民
|
|
if ("preventLost".equals(topicItem)){//有绑定围栏的居民
|
|
filter += " and EXISTS (select 1 from wlyy_patient_safe_area sf where sf.patient = p.id and sf.del=1 and sf.manage_status=1) ";
|
|
filter += " and EXISTS (select 1 from wlyy_patient_safe_area sf where sf.patient = p.id and sf.del=1 and sf.manage_status=1) ";
|
|
}
|
|
}
|
|
return jdbcTemplate.queryForList(sql+filter);
|
|
|
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql+filter);
|
|
|
|
result.put("patientList",list);
|
|
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|