Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
self-service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
self-service
Commits
8fa4f312
Commit
8fa4f312
authored
Feb 20, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改从应用集市获取应用数据
parent
6920c400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
sst-manager/src/main/java/com/mortals/xhx/module/apps/service/impl/AppsInfoServiceImpl.java
...als/xhx/module/apps/service/impl/AppsInfoServiceImpl.java
+23
-1
No files found.
sst-manager/src/main/java/com/mortals/xhx/module/apps/service/impl/AppsInfoServiceImpl.java
View file @
8fa4f312
package
com.mortals.xhx.module.apps.service.impl
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.pdu.RespData
;
import
com.mortals.xhx.common.pdu.app.AppPdu
;
...
...
@@ -73,6 +75,26 @@ public class AppsInfoServiceImpl extends AbstractCRUDServiceImpl<AppsInfoDao, Ap
}
}
@Override
public
Result
<
AppsInfoEntity
>
find
(
AppsInfoEntity
entity
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
AppPdu
appPdu
=
new
AppPdu
();
appPdu
.
setSiteId
(
entity
.
getSiteId
());
appPdu
.
setSize
(
999
);
Rest
<
RespData
<
List
<
AppPdu
>>>
rest
=
appFeign
.
list
(
appPdu
);
Result
result
=
new
Result
();
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
List
<
AppsInfoEntity
>
appsInfoEntities
=
new
ArrayList
<>();
for
(
AppPdu
pdu:
rest
.
getData
().
getData
()){
appsInfoEntities
.
add
(
conversion
(
pdu
));
}
result
.
setPageInfo
(
rest
.
getData
().
getPageInfo
());
result
.
setList
(
appsInfoEntities
);
return
result
;
}
else
{
return
result
;
}
}
@Override
public
AppsInfoEntity
get
(
Long
id
)
throws
AppException
{
Rest
<
AppPdu
>
rest
=
appFeign
.
info
(
id
);
...
...
@@ -93,7 +115,7 @@ public class AppsInfoServiceImpl extends AbstractCRUDServiceImpl<AppsInfoDao, Ap
appsInfoEntity
.
setName
(
pdu
.
getAppName
());
appsInfoEntity
.
setDescribe
(
pdu
.
getSummary
());
appsInfoEntity
.
setIcon
(
pdu
.
getAppIconPath
());
appsInfoEntity
.
setUrl
(
pdu
.
get
Url
());
appsInfoEntity
.
setUrl
(
pdu
.
get
ServiceApi
());
return
appsInfoEntity
;
}
}
\ No newline at end of file
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