|  |  | @ -24,13 +24,15 @@ import java.util.Map; | 
			
		
	
		
		
			
				
					
					|  |  |  | public class AsyncDiDlHelper { |  |  |  | public class AsyncDiDlHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Value("${UDI_SERVER_URL}") |  |  |  |     @Value("${UDI_SERVER_URL}") | 
			
		
	
		
		
			
				
					
					|  |  |  |     private String udiUrl; |  |  |  |     private String udiUrl; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     HttpClient httpClient; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public List<ProductInfoEntity> dlByTime(String udiUrl, int page, int limit, String updateTime) { |  |  |  |     public List<ProductInfoEntity> dlByTime(String udiUrl, int page, int limit, String updateTime) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); |  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("page", page); |  |  |  |         paramMap.put("page", page); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("limit", limit); |  |  |  |         paramMap.put("limit", limit); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("updateTime", updateTime); |  |  |  |         paramMap.put("updateTime", updateTime); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String response = HttpClient.mipsGet(udiUrl + "/udidl/udiwms/syncUdi", paramMap); |  |  |  |         String response = httpClient.mipsGetUdiHead(udiUrl + "/udidl/udiwms/syncUdi", paramMap); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BaseResponse<List<ProductInfoEntity>> udiDlDeviceResponse = |  |  |  |             BaseResponse<List<ProductInfoEntity>> udiDlDeviceResponse = | 
			
		
	
		
		
			
				
					
					|  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { |  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -51,7 +53,7 @@ public class AsyncDiDlHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("page", page); |  |  |  |         paramMap.put("page", page); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("limit", limit); |  |  |  |         paramMap.put("limit", limit); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("updateTime", updateTime); |  |  |  |         paramMap.put("updateTime", updateTime); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String response = HttpClient.mipsGet(udiUrl + "/udidl/udiwms/syncCompany", paramMap); |  |  |  |         String response = httpClient.mipsGetUdiHead(udiUrl + "/udidl/udiwms/syncCompany", paramMap); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BaseResponse<List<UdiCompanyEntity>> baseResponse = |  |  |  |             BaseResponse<List<UdiCompanyEntity>> baseResponse = | 
			
		
	
		
		
			
				
					
					|  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<UdiCompanyEntity>>>() { |  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<UdiCompanyEntity>>>() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -70,7 +72,7 @@ public class AsyncDiDlHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public List<ProductInfoEntity> dlByDi(String deviceId) { |  |  |  |     public List<ProductInfoEntity> dlByDi(String deviceId) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); |  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("deviceId", deviceId); |  |  |  |         paramMap.put("deviceId", deviceId); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String response = HttpClient.mipsGet(udiUrl + "/udidl/device/serchDlByDi", paramMap); |  |  |  |         String response = httpClient.mipsGetUdiHead(udiUrl + "/udidl/device/serchDlByDi", paramMap); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = |  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = | 
			
		
	
		
		
			
				
					
					|  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { |  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -92,7 +94,7 @@ public class AsyncDiDlHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse<List<ProductInfoEntity>> dlByDiRes(String deviceId) { |  |  |  |     public BaseResponse<List<ProductInfoEntity>> dlByDiRes(String deviceId) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); |  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("deviceId", deviceId); |  |  |  |         paramMap.put("deviceId", deviceId); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String response = HttpClient.mipsGet(udiUrl + "/udidl/device/serchDlByDi", paramMap); |  |  |  |         String response = httpClient.mipsGetUdiHead(udiUrl + "/udidl/device/serchDlByDi", paramMap); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = |  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = | 
			
		
	
		
		
			
				
					
					|  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { |  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -108,7 +110,7 @@ public class AsyncDiDlHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse<List<ProductInfoEntity>> dlLastVersionByDi(String deviceId) { |  |  |  |     public BaseResponse<List<ProductInfoEntity>> dlLastVersionByDi(String deviceId) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); |  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("deviceId", deviceId); |  |  |  |         paramMap.put("deviceId", deviceId); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String response = HttpClient.mipsGet(udiUrl + "/udidl/device/dlLastVersionByDi", paramMap); |  |  |  |         String response = httpClient.mipsGetUdiHead(udiUrl + "/udidl/device/dlLastVersionByDi", paramMap); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = |  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = | 
			
		
	
		
		
			
				
					
					|  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { |  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -131,7 +133,7 @@ public class AsyncDiDlHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); |  |  |  |         Map<String, Object> paramMap = new HashMap<>(16); | 
			
		
	
		
		
			
				
					
					|  |  |  |         paramMap.put("uuid", uuid); |  |  |  |         paramMap.put("uuid", uuid); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String response = HttpClient.mipsGet(udiUrl + "/udidl/device/searchDlByUuid", paramMap); |  |  |  |         String response = httpClient.mipsGetUdiHead(udiUrl + "/udidl/device/searchDlByUuid", paramMap); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = |  |  |  |             BaseResponse<List<ProductInfoEntity>> baseResponse = | 
			
		
	
		
		
			
				
					
					|  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { |  |  |  |                     JSONObject.parseObject(response, new TypeReference<BaseResponse<List<ProductInfoEntity>>>() { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |