|  | @ -322,6 +322,13 @@ public class EmergencyAssistanceService extends BaseJpaService<EmergencyAssistan
 | 
	
		
			
				|  |  |             tmp.put("name","系统预警");
 | 
	
		
			
				|  |  |             tmp.put("status",0);
 | 
	
		
			
				|  |  |             tmp.put(statusName,"未读");
 | 
	
		
			
				|  |  |             if (assistanceDO.getOrderSource()==2){
 | 
	
		
			
				|  |  |                 Map<String,Object> tmp2 = new HashMap<>();
 | 
	
		
			
				|  |  |                 tmp2.put("name","电话通知");
 | 
	
		
			
				|  |  |                 tmp2.put("status",0);
 | 
	
		
			
				|  |  |                 tmp2.put(statusName,"未呼叫");
 | 
	
		
			
				|  |  |                 arr.add(tmp2);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             SystemMessageDO messageDO = systemMessageDao.findByRelationCodeAndReceiver(assistanceDO.getId(),patientId);
 | 
	
		
			
				|  |  |             if (messageDO != null){
 | 
	
		
			
				|  |  |                 if (StringUtils.isNotBlank(messageDO.getIsRead())){
 | 
	
	
		
			
				|  | @ -526,15 +533,15 @@ public class EmergencyAssistanceService extends BaseJpaService<EmergencyAssistan
 | 
	
		
			
				|  |  |     public JSONObject existApplyStatus(String patient){
 | 
	
		
			
				|  |  |         JSONObject result = new JSONObject();
 | 
	
		
			
				|  |  |         JSONObject tmpObj = new JSONObject();
 | 
	
		
			
				|  |  |         EmergencyAssistanceDO assistanceDO = emergencyAssistanceDao.findByProxyPatientAndStatus(patient,1);
 | 
	
		
			
				|  |  |         if (assistanceDO==null){
 | 
	
		
			
				|  |  |         List<EmergencyAssistanceDO> assistanceDO = emergencyAssistanceDao.findByProxyPatientAndStatus(patient,1);
 | 
	
		
			
				|  |  |         if (assistanceDO.size()==0){
 | 
	
		
			
				|  |  |             tmpObj.put("exist","false");
 | 
	
		
			
				|  |  |             result.put(ResponseContant.resultFlag, ResponseContant.success);
 | 
	
		
			
				|  |  |             result.put(ResponseContant.resultMsg,tmpObj);
 | 
	
		
			
				|  |  |             return result;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         else {
 | 
	
		
			
				|  |  |             JSONObject detail  = getOrderDetail(assistanceDO.getId(),null);
 | 
	
		
			
				|  |  |             JSONObject detail  = getOrderDetail(assistanceDO.get(0).getId(),null);
 | 
	
		
			
				|  |  |             tmpObj.put("exist","true");
 | 
	
		
			
				|  |  |             tmpObj.put("assistanceDO",detail.getJSONObject("resultMsg"));
 | 
	
		
			
				|  |  |             result.put(ResponseContant.resultFlag, ResponseContant.success);
 |