Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
5b2da448
Commit
5b2da448
authored
Sep 29, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改后台下单代码
parent
e084b590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
PublicController.java
.../github/wxiaoqi/security/admin/rest/PublicController.java
+22
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/PublicController.java
View file @
5b2da448
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
rest
;
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
rest
;
import
cn.hutool.core.util.StrUtil
;
import
com.github.wxiaoqi.security.admin.biz.*
;
import
com.github.wxiaoqi.security.admin.biz.*
;
import
com.github.wxiaoqi.security.admin.entity.*
;
import
com.github.wxiaoqi.security.admin.entity.*
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
...
@@ -40,6 +41,10 @@ public class PublicController {
...
@@ -40,6 +41,10 @@ public class PublicController {
@Autowired
@Autowired
private
AppUserDetailBiz
detailBiz
;
private
AppUserDetailBiz
detailBiz
;
@Autowired
private
AppUserLoginBiz
appUserLoginBiz
;
@Autowired
@Autowired
private
BaseUserMemberBiz
userMemberBiz
;
private
BaseUserMemberBiz
userMemberBiz
;
...
@@ -85,6 +90,23 @@ public class PublicController {
...
@@ -85,6 +90,23 @@ public class PublicController {
return
ObjectRestResponse
.
succ
(
getAppUserInfoById
(
id
));
return
ObjectRestResponse
.
succ
(
getAppUserInfoById
(
id
));
}
}
@RequestMapping
(
value
=
"/app/userinfo-by-username"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
ObjectRestResponse
<
AppUserDTO
>
userDetailByUsername
(
String
name
)
throws
Exception
{
AppUserLogin
appUserLogin
;
if
(
StrUtil
.
isNotBlank
(
name
))
{
throw
new
BaseException
(
ResultCode
.
NOTEXIST_CODE
,
new
HashSet
<
String
>()
{{
add
(
"用户名不存在!"
);}});
}
else
{
appUserLogin
=
appUserLoginBiz
.
selectOne
(
new
AppUserLogin
(){{
setUsername
(
name
);}});
if
(
null
==
appUserLogin
)
{
throw
new
BaseException
(
ResultCode
.
NOTEXIST_CODE
,
new
HashSet
<
String
>()
{{
add
(
"用户名不存在!"
);}});
}
}
return
ObjectRestResponse
.
succ
(
getAppUserInfoById
(
appUserLogin
.
getId
()));
}
private
AppUserDTO
getAppUserInfoById
(
Integer
userid
)
throws
IllegalAccessException
,
InvocationTargetException
{
private
AppUserDTO
getAppUserInfoById
(
Integer
userid
)
throws
IllegalAccessException
,
InvocationTargetException
{
AppUserDTO
userDTO
=
new
AppUserDTO
();
AppUserDTO
userDTO
=
new
AppUserDTO
();
//获取用户基础信息
//获取用户基础信息
...
...
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