Commit baf1e950 authored by zhang's avatar zhang

update

parent b56158ae
......@@ -21,6 +21,7 @@ public class QuerySamples {
rsh.serverPort=8080;
rsh.dbName="TXPIMDB";
//初始化远程查询对象
RemoteQueryHelper rqh = new RemoteQueryHelper(rsh);
CatalogRoot cr = rqh.fetchAssetTemplates();
......@@ -79,7 +80,7 @@ public class QuerySamples {
System.out.println("\t" + a.getLabel() + ", " + a.getId());
}
List<Entity> le2 = rqh.queryAssetAppViewPath("Product-1126119026813042688");
List<Entity> le2 = rqh.fetchAssetAppViewPath("Product-1126119026813042688");
System.out.println(
"-------------------------------------------" + "\n" +
"SDK queryAssetAppViewPath:" + "\n" +
......
......@@ -66,7 +66,7 @@ public class RemoteQueryHelper {
* @param id
* @return
*/
public List<Entity> queryAssetAppViewPath(String id){
public List<Entity> fetchAssetAppViewPath(String id){
String url="http://"+ this.rsh.serverIP +":"+ this.rsh.serverPort+"/pims/asset/business/path?dbName="+ this.rsh.dbName+"&id="+id;
String response=PimHttpUtil.sendGet(this.rsh.saToken,url);
String s=resultUtil(response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment