|  | @ -47,6 +47,7 @@ import org.springframework.data.redis.core.StringRedisTemplate;
 | 
	
		
			
				|  |  | import org.springframework.http.HttpEntity;
 | 
	
		
			
				|  |  | import org.springframework.http.HttpHeaders;
 | 
	
		
			
				|  |  | import org.springframework.http.HttpMethod;
 | 
	
		
			
				|  |  | import org.springframework.http.MediaType;
 | 
	
		
			
				|  |  | import org.springframework.jdbc.core.JdbcTemplate;
 | 
	
		
			
				|  |  | import org.springframework.stereotype.Component;
 | 
	
		
			
				|  |  | import org.springframework.transaction.annotation.Transactional;
 | 
	
	
		
			
				|  | @ -1199,16 +1200,17 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public com.alibaba.fastjson.JSONObject getX1Locations(String deviceSn,String time_begin){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String url =AqgConfig.X1_locations;
 | 
	
		
			
				|  |  |         MultiValueMap<String, String> param = new LinkedMultiValueMap<>();
 | 
	
		
			
				|  |  |         param.add("device", deviceSn);
 | 
	
		
			
				|  |  |         param.add("depth", "1");
 | 
	
		
			
				|  |  |         param.add("rows_per_page", "300");
 | 
	
		
			
				|  |  |         String url = AqgConfig.X1_locations+"?device="+deviceSn+"&depth="+1+"&rows_per_page="+300;
 | 
	
		
			
				|  |  |         if (StringUtils.isNotBlank(time_begin)){
 | 
	
		
			
				|  |  |             param.add("time_begin", time_begin);
 | 
	
		
			
				|  |  |             url += "&time_begin="+time_begin;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         HttpEntity<com.alibaba.fastjson.JSONObject> response = httpClientUtil.aqgCookieHttp(url, param, HttpMethod.GET, getCookie());
 | 
	
		
			
				|  |  |         return response.getBody();
 | 
	
		
			
				|  |  |         Map<String,Object> headers = new HashMap<>();
 | 
	
		
			
				|  |  |         headers.put("Accept", MediaType.APPLICATION_JSON.toString());
 | 
	
		
			
				|  |  |         headers.put("Cookie", getCookie());
 | 
	
		
			
				|  |  |         String  responseStr = httpClientUtil.get(url,"utf-8",headers);
 | 
	
		
			
				|  |  |         com.alibaba.fastjson.JSONObject result = JSON.parseObject(responseStr);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         return result;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public com.alibaba.fastjson.JSONObject getSleepDeviceInfo(String deviceSn){
 |