Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
feccc210
Commit
feccc210
authored
Mar 26, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码格式及log优化
parent
015803cb
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
75 deletions
+111
-75
HelloController.java
...group/xyqb/controller/external/index/HelloController.java
+10
-3
AppController.java
...antgroup/xyqb/controller/external/user/AppController.java
+95
-67
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+5
-5
AuthInfoController.java
...up/xyqb/controller/internal/login/AuthInfoController.java
+1
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/index/HelloController.java
View file @
feccc210
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
.
index
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.util.IPUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
/**
* Created by xuran on 2017/7/12.
*/
@RestController
@Slf4j
@RequestMapping
(
"/hello"
)
public
class
HelloController
{
@RequestMapping
(
"/hello"
)
public
String
hello
(){
public
String
hello
(
HttpServletRequest
request
)
{
String
ip
=
IPUtil
.
getRemoteIP
(
request
);
if
(
ip
.
startsWith
(
"192.168.12."
)){
log
.
error
(
"测试:"
,
new
Exception
(
"Sentry捕获异常"
));
}
return
"ok"
;
}
}
src/main/java/cn/quantgroup/xyqb/controller/external/user/AppController.java
View file @
feccc210
This diff is collapsed.
Click to expand it.
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
feccc210
...
...
@@ -672,11 +672,11 @@ public class InnerController implements IBaseController {
return
null
;
}
UserAssociationModel
bean
=
new
UserAssociationModel
();
bean
.
setId
(
user
.
getId
());
bean
.
setUuid
(
user
.
getUuid
());
bean
.
setRegisterFrom
(
user
.
getRegisteredFrom
());
UserDetail
userDetail
=
userDetailService
.
findByUserId
(
user
.
getId
());
if
(!
Objects
.
isNull
(
userDetail
))
{
bean
.
setId
(
userDetail
.
getUserId
());
bean
.
setPhoneNo
(
userDetail
.
getPhoneNo
());
bean
.
setName
(
userDetail
.
getName
());
bean
.
setIdNo
(
userDetail
.
getIdNo
());
...
...
@@ -687,7 +687,7 @@ public class InnerController implements IBaseController {
if
(!
Objects
.
isNull
(
userBtRegister
))
{
bean
.
setMerchantId
(
userBtRegister
.
getRegisterBtMerchantId
());
}
UserExtInfo
extInfo
=
userExtInfoService
.
findByUserId
(
user
Detail
.
getUser
Id
());
UserExtInfo
extInfo
=
userExtInfoService
.
findByUserId
(
user
.
get
Id
());
if
(!
Objects
.
isNull
(
extInfo
))
{
if
(
null
==
extInfo
.
getEducationEnum
())
{
bean
.
setEducationEnum
(
cn
.
quantgroup
.
user
.
enums
.
EducationEnum
.
UNKNOWN
.
getName
());
...
...
@@ -705,11 +705,11 @@ public class InnerController implements IBaseController {
bean
.
setMarryStatus
(
extInfo
.
getMarryStatus
().
getDescription
());
}
}
Address
address
=
addressService
.
findByUserId
(
user
Detail
.
getUser
Id
());
Address
address
=
addressService
.
findByUserId
(
user
.
get
Id
());
if
(!
Objects
.
isNull
(
address
))
{
bean
.
putAddressList
(
Arrays
.
asList
(
address
));
}
List
<
Contact
>
contacts
=
contactService
.
findByUserId
(
user
Detail
.
getUser
Id
(),
true
);
List
<
Contact
>
contacts
=
contactService
.
findByUserId
(
user
.
get
Id
(),
true
);
if
(!
Objects
.
isNull
(
address
))
{
bean
.
putContactList
(
contacts
);
}
...
...
@@ -720,7 +720,7 @@ public class InnerController implements IBaseController {
@RequestMapping
(
"/user-association/search/userId"
)
public
JsonResult
findUserAssociationModelByUserId
(
Long
userId
)
{
if
(
Objects
.
isNull
(
userId
)
||
userId
<
1
)
{
return
JsonResult
.
buildErrorStateResult
(
"
"
,
""
);
return
JsonResult
.
buildErrorStateResult
(
"
params invalid"
,
null
);
}
UserAssociationModel
bean
=
null
;
User
user
=
userService
.
findById
(
userId
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/login/AuthInfoController.java
View file @
feccc210
...
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 查询已登录信息
* Created by Miraculous on 2016/12/30.
*/
@RestController
...
...
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