Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
d453b589
Commit
d453b589
authored
Oct 20, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加初始化数据库脚本
parent
c38fbefe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
.../java/com/mortals/xhx/module/user/web/UserController.java
+28
-0
portal-manager/src/test/java/com/mortals/httpclient/user/UserController.http
...test/java/com/mortals/httpclient/user/UserController.http
+2
-14
No files found.
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
View file @
d453b589
...
...
@@ -19,6 +19,7 @@ import com.mortals.xhx.module.role.service.RoleUserService;
import
com.mortals.xhx.module.user.model.UserEntityExt
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.poi.ss.formula.functions.T
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -236,4 +237,31 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
return
Rest
.
fail
(
"同步用户站点授权异常!"
);
}
}
@PostMapping
({
"listPage"
})
@UnAuth
public
Rest
<
Object
>
listPage
(
@RequestBody
UserEntity
query
)
{
Rest
<
Object
>
ret
=
new
Rest
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
Context
context
=
this
.
getContext
();
String
busiDesc
=
"查询"
+
this
.
getModuleDesc
();
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
PageInfo
pageInfo
=
this
.
buildPageInfo
(
query
);
Result
<
UserEntity
>
result
=
this
.
getService
().
find
(
query
,
pageInfo
,
context
);
model
.
put
(
"data"
,
result
.
getList
());
model
.
put
(
"pageInfo"
,
result
.
getPageInfo
());
this
.
parsePageInfo
(
model
,
result
.
getPageInfo
());
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
}
catch
(
Exception
e
)
{
code
=
-
1
;
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
e
);
}
ret
.
setCode
(
code
);
ret
.
setData
(
model
);
ret
.
setMsg
(
model
.
get
(
"message_info"
)
==
null
?
""
:
model
.
remove
(
"message_info"
).
toString
());
return
ret
;
}
}
\ No newline at end of file
portal-manager/src/test/java/com/mortals/httpclient/user/UserController.http
View file @
d453b589
###用户信息业务列表
POST {{baseUrl}}/user/list
Authorization: {{authToken}}
Content-Type: application/json
{
"page":1,
"size":10,
"roleId":"4",
"orConditionList":[
{
"loginName":"test1"
},
{
"realName":"111"
},
{
"mobile":"13281114856"
}
]
"size":10
}
...
...
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