| 
					
				 | 
			
			
				@ -319,10 +319,14 @@ public class EmergencyAssistanceService extends BaseJpaService<EmergencyAssistan 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Map<String,Object> tmp = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tmp.put("name","系统预警"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tmp.put("status",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tmp.put(statusName,"未读"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            SystemMessageDO messageDO = systemMessageDao.findByRelationCodeAndReceiver(assistanceDO.getId(),patientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (messageDO != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (StringUtils.isNotBlank(messageDO.getIsRead())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    tmp.put("status",Integer.parseInt(messageDO.getIsRead())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (Integer.parseInt(messageDO.getIsRead())==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        tmp.put(statusName,"已读"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            arr.add(tmp); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -347,8 +351,10 @@ public class EmergencyAssistanceService extends BaseJpaService<EmergencyAssistan 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Map<String,Object> tmp = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tmp.put("name","系统预警"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tmp.put("status",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            tmp.put("statusName","未响应"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (emergencyWarnDoctorResponseDao.findByDoctorAndOrderId(doctorDO.getId(),assistanceDO.getId())!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                tmp.put("status",1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                tmp.put("statusName","已响应"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            arr.add(tmp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            noticeObj.put("response",arr); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -726,13 +732,17 @@ public class EmergencyAssistanceService extends BaseJpaService<EmergencyAssistan 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(ResponseContant.resultMsg,failMsg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        EmergencyAssistanceDO assistanceDO = emergencyAssistanceDao.findByPatientAndStatus(patient,1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (assistanceDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            assistanceDO.setServeAddress(patientAddress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            assistanceDO.setServeLat(patientLat); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            assistanceDO.setServeLon(patientLon); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            emergencyAssistanceDao.save(assistanceDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return getOrderDetail(assistanceDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<EmergencyAssistanceDO> assistanceDO = emergencyAssistanceDao.findByPatientAndStatus(patient,1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (assistanceDO.size()>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            for (EmergencyAssistanceDO tmp:assistanceDO){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                tmp.setServeAddress(patientAddress); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                tmp.setServeLat(patientLat); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                tmp.setServeLon(patientLon); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                emergencyAssistanceDao.save(tmp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(ResponseContant.resultFlag, ResponseContant.success); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(ResponseContant.resultMsg,"查询成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put(ResponseContant.resultFlag, ResponseContant.success); 
			 |