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
89d75236
Commit
89d75236
authored
Jun 30, 2023
by
zhangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5e6579b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+4
-1
No files found.
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
89d75236
...
...
@@ -152,13 +152,16 @@ 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
));
//底层接口写死了pageSize为10,这里前端只要5条
// 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
);
return
new
TableDataInfo
(
body
.
getPageSize
()
<=
list
.
size
()
?
list
.
subList
(
0
,
body
.
getPageSize
()
)
:
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