|
@ -289,9 +289,9 @@ public class DetectionPlatformService {
|
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> getOrderListWarning(){
|
|
|
String sql = " select CONCAT(o.serve_lat,',',o.serve_lon) latLon,'紧急呼叫' as serverDesc,o.org_code orgCode,o.device_sn from base_emergency_assistance_order o where `status`=1 " +
|
|
|
String sql = " select o.id as order_id,o.patient,o.patient_name patientName,CONCAT(o.serve_lat,',',o.serve_lon) latLon,'20' as orderType,'紧急呼叫' as serverDesc,o.org_code orgCode,o.device_sn from base_emergency_assistance_order o where `status`=1 " +
|
|
|
" UNION All " +
|
|
|
" select CONCAT(o.serve_lat,',',o.serve_lon) latLon,o.serve_desc serverDesc,o.hospital orgCode,o.device_sn from base_security_monitoring_order o where `status`=1 ";
|
|
|
" select o.id as order_id,o.patient,o.patient_name patientName,CONCAT(o.serve_lat,',',o.serve_lon) latLon,'22' as orderType,o.serve_desc serverDesc,o.hospital orgCode,o.device_sn from base_security_monitoring_order o where `status`=1 ";
|
|
|
List<Map<String,Object>> orderPoints2 = jdbcTemplate.queryForList(sql);
|
|
|
for (Map<String,Object> tmp:orderPoints2){
|
|
|
if (null!=tmp.get("device_sn")){
|