Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
1dc73212
Commit
1dc73212
authored
Sep 03, 2021
by
jianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BASE
parent
7e82206c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
BaseController.java
...ava/com/zehong/common/core/controller/BaseController.java
+13
-1
No files found.
gassafety-common/src/main/java/com/zehong/common/core/controller/BaseController.java
View file @
1dc73212
...
@@ -85,7 +85,19 @@ public class BaseController
...
@@ -85,7 +85,19 @@ public class BaseController
rspData
.
setTotal
(
new
PageInfo
(
list
).
getTotal
());
rspData
.
setTotal
(
new
PageInfo
(
list
).
getTotal
());
return
rspData
;
return
rspData
;
}
}
/**
* 响应请求分页数据(解决totle)
*/
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
protected
TableDataInfo
getDataTable
(
PageInfo
<?>
page
)
{
TableDataInfo
rspData
=
new
TableDataInfo
();
rspData
.
setCode
(
HttpStatus
.
SUCCESS
);
rspData
.
setMsg
(
"查询成功"
);
rspData
.
setRows
(
page
.
getList
());
rspData
.
setTotal
(
page
.
getTotal
());
return
rspData
;
}
/**
/**
* 响应返回结果
* 响应返回结果
*
*
...
...
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