| 
					
				 | 
			
			
				@@ -12,7 +12,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.kmall.admin; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.util.HtmlUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.http.HttpRequest; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.http.HttpUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.alibaba.fastjson.JSON; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.HashMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 名称:Test <br> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,18 +31,28 @@ import org.springframework.web.util.HtmlUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class Test { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static void main(String[] args) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //Integer使用equals判断 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Integer a = 127; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Integer b = 127; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        System.out.println(a == b); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Integer c = 129; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Integer d = 129; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        System.out.println(c == d); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map params = new HashMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        Map header = new HashMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        header.put("Content-Type", "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<String> skuList = new ArrayList<String>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        skuList.add("ISGDKK175117"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        skuList.add("ISTH01000185"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params.put("skuList",skuList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        String result = HttpUtil.URLPost("http://127.0.0.1:8080/oms-controller-mgt/pdProductRecord/hsCodeMapBySkuList",header, params, "UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        System.out.println(c.equals(d)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        System.out.println(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        System.out.println(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        String result = HttpUtil.post("http://127.0.0.1:8080/oms-controller-mgt/pdProductRecord/hsCodeMapBySkuList", JSON.toJSONString(params)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        HttpRequest post = HttpUtil.createPost(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String result = HttpUtil.get("http://127.0.0.1:8080/oms-controller-mgt/pdProductRecord/hsCodeMapBySkuList?skuList=" + skuList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<String,Map> map = JSON.parseObject(result, Map.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<String,String> isgdkk175117 = map.get("ISGDKK175117"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.out.println(isgdkk175117.get("cusGoodsName")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.out.println(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        System.out.println(HtmlUtils.htmlUnescape("Baby&Children")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |