Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
Overview
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
dataplatform
AppTag
Commits
3f939d39
Commit
3f939d39
authored
Nov 15, 2018
by
wangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix page
parent
7bc72ca8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
azkaban.zip
azkaban.zip
+0
-0
ResultController.java
...java/com/mobvista/apptag/controller/ResultController.java
+1
-1
TagController.java
...in/java/com/mobvista/apptag/controller/TagController.java
+1
-1
UserController.java
...n/java/com/mobvista/apptag/controller/UserController.java
+1
-1
No files found.
azkaban.zip
View file @
3f939d39
No preview for this file type
src/main/java/com/mobvista/apptag/controller/ResultController.java
View file @
3f939d39
...
...
@@ -87,7 +87,7 @@ public class ResultController {
@ResponseBody
public
PageUtil
list
(
@SessionAttribute
(
WebSecurityConfig
.
SESSION_KEY
)
String
username
,
@RequestBody
Query
query
)
throws
IOException
{
PageHelper
.
startPage
(
query
.
getOffset
()
+
1
,
query
.
getLimit
());
PageHelper
.
startPage
(
query
.
getOffset
()
/
10
+
1
,
query
.
getLimit
());
List
<
TagResult
>
results
=
resultService
.
list
(
username
);
int
total
=
resultDao
.
count
(
username
);
PageUtil
pageUtil
=
new
PageUtil
(
results
,
total
);
...
...
src/main/java/com/mobvista/apptag/controller/TagController.java
View file @
3f939d39
...
...
@@ -140,7 +140,7 @@ public class TagController {
@ResponseBody
public
PageUtil
list
(
@RequestBody
Query
query
,
@RequestParam
(
name
=
"tag"
,
required
=
false
,
defaultValue
=
"0"
)
int
tag
)
{
PageHelper
.
startPage
(
query
.
getOffset
()
+
1
,
query
.
getLimit
());
PageHelper
.
startPage
(
query
.
getOffset
()
/
10
+
1
,
query
.
getLimit
());
List
<
Tag
>
tags
=
tagDao
.
list
(
tag
);
int
total
=
tagDao
.
count
(
tag
);
PageUtil
pageUtil
=
new
PageUtil
(
tags
,
total
);
...
...
src/main/java/com/mobvista/apptag/controller/UserController.java
View file @
3f939d39
...
...
@@ -116,7 +116,7 @@ public class UserController {
@PostMapping
(
"/user/list"
)
@ResponseBody
public
PageUtil
list
(
@SessionAttribute
(
WebSecurityConfig
.
SESSION_KEY
)
String
username
,
@RequestBody
Query
query
)
{
PageHelper
.
startPage
(
query
.
getOffset
()
+
1
,
query
.
getLimit
());
PageHelper
.
startPage
(
query
.
getOffset
()
/
10
+
1
,
query
.
getLimit
());
List
<
User
>
users
=
userDao
.
list
();
int
total
=
userDao
.
count
();
PageUtil
pageUtil
=
new
PageUtil
(
users
,
total
);
...
...
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