Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
cfdd6abc
Commit
cfdd6abc
authored
Jun 30, 2023
by
zhangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
37085d2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
application-dev.yml
dsk-admin/src/main/resources/application-dev.yml
+6
-6
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+7
-1
No files found.
dsk-admin/src/main/resources/application-dev.yml
View file @
cfdd6abc
...
...
@@ -194,11 +194,11 @@ xss:
dsk
:
open
:
# endPoint: sandbox.openapi.jiansheku.com
# accessKeyId: aec7b3ff2e8b48e7
9a7e2c463ce21912
# accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
# protocol: https
endPoint
:
120.27.13.145:8865
# endPoint: 120.27.13.145:8865
# accessKeyId: aec7b3ff2y2q8x6t4
9a7e2c463ce21912
# accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
# protocol: http
endPoint
:
openapi.jiansheku.com
accessKeyId
:
aec7b3ff2y2q8x6t49a7e2c463ce21912
accessKeySecret
:
ee8a53c7ea04eb3ac311406c8f56f95b
protocol
:
http
protocol
:
http
s
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
cfdd6abc
...
...
@@ -152,7 +152,13 @@ public class EnterpriseService {
public
TableDataInfo
dynamicPage
(
EnterpriseDynamicPageBody
body
)
throws
Exception
{
if
(
body
.
isVaildCid
())
return
new
TableDataInfo
(
new
ArrayList
<>(),
0
);
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/dynamic"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
return
dskOpenApiUtil
.
responsePage
(
map
);
Integer
code
=
MapUtils
.
getInteger
(
map
,
"code"
,
300
);
Map
data
=
MapUtils
.
getMap
(
map
,
"data"
,
null
);
if
(
200
!=
code
)
throw
new
RuntimeException
();
Integer
count
=
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
);
List
<
Object
>
list
=
CommonUtils
.
assertAsArray
(
MapUtils
.
getObject
(
data
,
"list"
,
""
));
return
new
TableDataInfo
(
5
>=
list
.
size
()
?
list
.
subList
(
0
,
5
)
:
list
,
count
);
}
public
R
icInfo
(
EnterpriseIcInfoBody
body
)
throws
Exception
{
...
...
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