| 
					
				 | 
			
			
				@ -96,7 +96,21 @@ public class IotAnalyzerController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            params.put("measure_time",info.get("testtime") == null? "":info.get("testtime").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            params.put("sn",info.get("devicesn") == null? "":info.get("devicesn").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            str = dataInputService.inputBodySignsData(params.toString(),accessToken); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Map res = new HashMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //体征信息上传成功后,同步到厦门I健康 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            data.put("id",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            boolean synFlag = dataInputService.synXMIjk(data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(synFlag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                res.put("statusCode", "00"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                res.put("desc", info.get("devicesn") + "体征信息上传厦门I健康成功。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                res.put("statusCode", "02"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                res.put("desc", info.get("devicesn") +  "体征信息上传厦门I健康失败。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            strResult = objectMapper.writeValueAsString(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info(strResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            /*str = dataInputService.inputBodySignsData(params.toString(),accessToken); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = JSONObject.parseObject(str); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (StringUtils.endsWithIgnoreCase(ConstantUtils.FAIL,result.getString("response"))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Map res = new HashMap(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -125,13 +139,13 @@ public class IotAnalyzerController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                strResult = objectMapper.writeValueAsString(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                logger.info(strResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return strResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Map res = new HashMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            res.put("statusCode", "03"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            res.put("desc", "体征信息上传失败。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            res.put("desc", "服务异常,体征信息上传失败。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            strResult = objectMapper.writeValueAsString(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.error(strResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return strResult; 
			 |