| 
					
				 | 
			
			
				@ -352,7 +352,8 @@ public class EmergencyAssistanceEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                   @ApiParam(value = "误报警类型 字典emergency_cancel的code", name = "emergencyCancel", required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                   @RequestParam(value = "emergencyCancel", defaultValue = "4") Integer emergencyCancel){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = assistanceService.errorWarning(orderId,emergencyCancel,getUID()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String uid = permissionService.getUID(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = assistanceService.errorWarning(orderId,emergencyCancel,uid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (result.getIntValue("resultFlag") == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return ObjEnvelop.getError(result.getString("resultMsg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -371,6 +372,11 @@ public class EmergencyAssistanceEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name="message",value = "发送内容")@RequestParam(value = "message")String message, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name="session_id",value = "im会话对应id")@RequestParam(value = "session_id")String session_id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject param = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            param.put("doctorId",doctor); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(permissionService.noPermission(1,param)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return ObjEnvelop.getError("该操作没有权限"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return ObjEnvelop.getSuccess("success",assistanceService.doctorSendMessageLog(doctor,type,session_id,message)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }catch (Exception e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return failedObjEnvelopException2(e); 
			 |