Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDPIMS-SDK
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengfunan
TDPIMS-SDK
Commits
baf1e950
Commit
baf1e950
authored
Jul 18, 2023
by
zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b56158ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
QuerySamples.java
...main/java/com/tongda/tdpimssdk/examples/QuerySamples.java
+2
-1
RemoteQueryHelper.java
...n/java/com/tongda/tdpimssdk/remote/RemoteQueryHelper.java
+1
-1
No files found.
src/main/java/com/tongda/tdpimssdk/examples/QuerySamples.java
View file @
baf1e950
...
...
@@ -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
.
query
AssetAppViewPath
(
"Product-1126119026813042688"
);
List
<
Entity
>
le2
=
rqh
.
fetch
AssetAppViewPath
(
"Product-1126119026813042688"
);
System
.
out
.
println
(
"-------------------------------------------"
+
"\n"
+
"SDK queryAssetAppViewPath:"
+
"\n"
+
...
...
src/main/java/com/tongda/tdpimssdk/remote/RemoteQueryHelper.java
View file @
baf1e950
...
...
@@ -66,7 +66,7 @@ public class RemoteQueryHelper {
* @param id
* @return
*/
public
List
<
Entity
>
query
AssetAppViewPath
(
String
id
){
public
List
<
Entity
>
fetch
AssetAppViewPath
(
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment