Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cneeds-server
Overview
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
zhangzr
cneeds-server
Commits
5e295728
Commit
5e295728
authored
Mar 09, 2020
by
zzrdark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加分页查询
parent
b8493227
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
35 deletions
+28
-35
workspace.xml
.idea/workspace.xml
+17
-32
UserClient.java
...java/com/mx/cneeds/server/datashow/client/UserClient.java
+1
-1
SystemController.java
...x/cneeds/server/datashow/web/system/SystemController.java
+10
-2
No files found.
.idea/workspace.xml
View file @
5e295728
...
...
@@ -2,32 +2,9 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"58efcb75-622d-40c1-b8e0-10cd2fb456b4"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/FuncDto.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-common-pojo/src/main/java/com/mx/cneeds/common/dto/PageDto.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-common-utils/src/main/java/com/mx/cneeds/common/annotation/DataFilter.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/UserClient.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/common/DataFilterAspect.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/config/MybatisPlusConfig.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/db/cneeds_server.sql"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/db/cneeds_server.sql"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/SysDeptDao.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/SysDeptDao.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/SysRoleDeptDao.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/SysRoleDeptDao.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/SysUserRoleDao.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/SysUserRoleDao.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/SysDeptDao.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/SysDeptDao.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/SysRoleDeptDao.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/SysRoleDeptDao.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/SysUserRoleDao.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-data/src/main/resources/mapper/SysUserRoleDao.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-utils/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-utils/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-common-utils/src/main/java/com/mx/cneeds/common/pager/Query.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-common-utils/src/main/java/com/mx/cneeds/common/pager/Query.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/user/UserController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/UserController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/SysDeptService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/SysDeptService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/SysRoleDeptService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/SysRoleDeptService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/SysUserRoleService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/SysUserRoleService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysDeptServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysDeptServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysRoleDeptServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysRoleDeptServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysUserRoleServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/service/impl/SysUserRoleServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/web/SysFuncController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-user/src/main/java/com/mx/cneeds/server/user/web/SysFuncController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/UserClient.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/UserClient.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -280,7 +257,7 @@
<workItem
from=
"1583320312435"
duration=
"9970000"
/>
<workItem
from=
"1583395022330"
duration=
"616000"
/>
<workItem
from=
"1583395719361"
duration=
"15264000"
/>
<workItem
from=
"1583723774754"
duration=
"2
1319
000"
/>
<workItem
from=
"1583723774754"
duration=
"2
2931
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"1.修改不需要web服务 2.增加一个logupload"
>
<created>
1578451117064
</created>
...
...
@@ -324,7 +301,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1583325337781
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"7"
/>
<task
id=
"LOCAL-00007"
summary=
"1.增加数据库数据 2.增加数据权限拦截 3.增加分页插件 4.增加系统模块查询"
>
<created>
1583752269520
</created>
<option
name=
"number"
value=
"00007"
/>
<option
name=
"presentableId"
value=
"LOCAL-00007"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1583752269522
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"8"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
@@ -351,7 +335,8 @@
<MESSAGE
value=
"添加数据库表文档"
/>
<MESSAGE
value=
"1.修改项目结构 2.更改数据库连接 3.增加测试docker部署"
/>
<MESSAGE
value=
"1.修改项目结构 2.登陆 3.等等"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"1.修改项目结构 2.登陆 3.等等"
/>
<MESSAGE
value=
"1.增加数据库数据 2.增加数据权限拦截 3.增加分页插件 4.增加系统模块查询"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"1.增加数据库数据 2.增加数据权限拦截 3.增加分页插件 4.增加系统模块查询"
/>
</component>
<component
name=
"WindowStateProjectService"
>
<state
x=
"552"
y=
"178"
key=
"#Project_Structure"
timestamp=
"1583316360973"
>
...
...
@@ -374,10 +359,10 @@
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"690"
y=
"266"
key=
"#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583224455231"
/>
<state
x=
"463"
y=
"112"
key=
"CommitChangelistDialog2"
timestamp=
"1583
325330372
"
>
<state
x=
"463"
y=
"112"
key=
"CommitChangelistDialog2"
timestamp=
"1583
752264430
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"463"
y=
"112"
key=
"CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583
325330372
"
/>
<state
x=
"463"
y=
"112"
key=
"CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583
752264430
"
/>
<state
x=
"740"
y=
"275"
key=
"FileChooserDialogImpl"
timestamp=
"1583737037918"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
...
...
@@ -442,10 +427,10 @@
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"438"
y=
"166"
width=
"1352"
height=
"708"
key=
"SettingsEditor/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583725437328"
/>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1583
325340355
"
>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1583
752451682
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583
325340355
"
/>
<state
x=
"552"
y=
"253"
key=
"Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1583
752451682
"
/>
<state
x=
"752"
y=
"437"
key=
"com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2"
timestamp=
"1583724603426"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
...
...
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/client/UserClient.java
View file @
5e295728
...
...
@@ -17,5 +17,5 @@ import org.springframework.web.bind.annotation.RequestParam;
public
interface
UserClient
{
@PostMapping
(
"/sys/func/list"
)
PageDto
funcList
();
PageDto
funcList
(
@RequestParam
Integer
page
,
@RequestParam
(
"limit"
)
Integer
pageSize
);
}
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/web/system/SystemController.java
View file @
5e295728
...
...
@@ -7,6 +7,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
...
...
@@ -24,8 +25,15 @@ public class SystemController {
private
UserClient
userClient
;
@PostMapping
(
"/module/list"
)
public
R
funcList
(){
PageDto
pageDto
=
userClient
.
funcList
();
public
R
funcList
(
@RequestParam
Integer
page
,
@RequestParam
Integer
pageSize
){
if
(
page
==
null
&&
page
==
0
){
page
=
1
;
}
if
(
pageSize
==
null
&&
pageSize
==
0
){
pageSize
=
10
;
}
PageDto
pageDto
=
userClient
.
funcList
(
page
,
pageSize
);
return
new
R
().
put
(
"data"
,
pageDto
);
}
...
...
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