Browse Source

器件实现层多余方法删除

hejq 9 years ago
parent
commit
ab8afaa046

+ 0 - 7
src/main/java/com/uas/platform/b2b/service/impl/ComponentServiceImpl.java

@@ -47,14 +47,7 @@ public class ComponentServiceImpl implements ComponentService {
 	@Override
 	public List<Component> findByCode(String code) throws Exception {
         HttpUtil.Response res = HttpUtil.sendGetRequest(conf.getB2c() + "/api/product/component/byCode/" + code, null);
-		if(res.getStatusCode() != 200) throw new Exception("数据查询失败");
 		return JSONObject.parseArray(res.getResponseText(), Component.class);
 	}
 
-	public static void main(String args[]) throws Exception {
-		String url = "http://192.168.253.60:9090/platform-b2c/api/product/component/HXB15H4G160AF-13KT";
-		com.uas.platform.core.util.HttpUtil.Response response = com.uas.platform.core.util.HttpUtil.sendGetRequest(url ,null);
-		System.out.println(response.getResponseText());
-	}
-
 }