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
5c9a378c
Commit
5c9a378c
authored
Apr 12, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加访问log
parent
e97e0bdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+17
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
5c9a378c
...
@@ -236,6 +236,7 @@ public class InnerController implements IBaseController {
...
@@ -236,6 +236,7 @@ public class InnerController implements IBaseController {
/**
/**
* 保存用户详细信息
* 保存用户详细信息
*/
*/
@LogHttpCaller
@RequestMapping
(
"/user_detail/save"
)
@RequestMapping
(
"/user_detail/save"
)
public
JsonResult
saveUserDetail
(
Long
userId
,
String
phoneNo
,
String
name
,
String
idNo
,
public
JsonResult
saveUserDetail
(
Long
userId
,
String
phoneNo
,
String
name
,
String
idNo
,
String
email
,
String
qq
,
Long
id
)
{
String
email
,
String
qq
,
Long
id
)
{
...
@@ -387,6 +388,7 @@ public class InnerController implements IBaseController {
...
@@ -387,6 +388,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
userFullInfoOptional
.
get
());
return
JsonResult
.
buildSuccessResult
(
null
,
userFullInfoOptional
.
get
());
}
}
@LogHttpCaller
@RequestMapping
(
"/user_detail/update/qq"
)
@RequestMapping
(
"/user_detail/update/qq"
)
public
JsonResult
updateUserQQ
(
String
qq
,
Long
userId
)
{
public
JsonResult
updateUserQQ
(
String
qq
,
Long
userId
)
{
if
(
StringUtils
.
isEmpty
(
qq
)
||
userId
==
null
||
userId
==
0L
)
{
if
(
StringUtils
.
isEmpty
(
qq
)
||
userId
==
null
||
userId
==
0L
)
{
...
@@ -409,6 +411,7 @@ public class InnerController implements IBaseController {
...
@@ -409,6 +411,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
ContactRet
.
contacts2ContactRets
(
contacts
));
return
JsonResult
.
buildSuccessResult
(
null
,
ContactRet
.
contacts2ContactRets
(
contacts
));
}
}
@LogHttpCaller
@RequestMapping
(
"/contact/save/contacts"
)
@RequestMapping
(
"/contact/save/contacts"
)
public
JsonResult
save2Contact
(
Long
userId
,
@RequestParam
(
value
=
"contacts"
)
String
contactsStr
)
{
public
JsonResult
save2Contact
(
Long
userId
,
@RequestParam
(
value
=
"contacts"
)
String
contactsStr
)
{
if
(
Objects
.
isNull
(
userId
)
||
StringUtils
.
isBlank
(
contactsStr
))
{
if
(
Objects
.
isNull
(
userId
)
||
StringUtils
.
isBlank
(
contactsStr
))
{
...
@@ -431,6 +434,7 @@ public class InnerController implements IBaseController {
...
@@ -431,6 +434,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"保存成功"
,
ContactRet
.
contacts2ContactRets
(
result
));
return
JsonResult
.
buildSuccessResult
(
"保存成功"
,
ContactRet
.
contacts2ContactRets
(
result
));
}
}
@LogHttpCaller
@RequestMapping
(
"/contact/update/contact"
)
@RequestMapping
(
"/contact/update/contact"
)
public
JsonResult
updateContact
(
@RequestParam
Long
contactId
,
@RequestParam
(
required
=
false
)
String
name
,
public
JsonResult
updateContact
(
@RequestParam
Long
contactId
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
phoneNo
,
@RequestParam
(
required
=
false
)
String
phoneNo
,
...
@@ -464,6 +468,7 @@ public class InnerController implements IBaseController {
...
@@ -464,6 +468,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"修改联系人成功"
,
contact
);
return
JsonResult
.
buildSuccessResult
(
"修改联系人成功"
,
contact
);
}
}
@LogHttpCaller
@RequestMapping
(
"/address/search/user_id"
)
@RequestMapping
(
"/address/search/user_id"
)
public
JsonResult
findAddressByUserId
(
Long
userId
)
{
public
JsonResult
findAddressByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
...
@@ -476,6 +481,7 @@ public class InnerController implements IBaseController {
...
@@ -476,6 +481,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
AddressRet
.
address2AddressRet
(
address
));
return
JsonResult
.
buildSuccessResult
(
null
,
AddressRet
.
address2AddressRet
(
address
));
}
}
@LogHttpCaller
@RequestMapping
(
"/address/save"
)
@RequestMapping
(
"/address/save"
)
public
JsonResult
saveAddress
(
public
JsonResult
saveAddress
(
Long
userId
,
Long
provinceCode
,
Long
cityCode
,
String
city
,
Long
userId
,
Long
provinceCode
,
Long
cityCode
,
String
city
,
...
@@ -833,6 +839,7 @@ public class InnerController implements IBaseController {
...
@@ -833,6 +839,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
null
==
wechatUserInfo
?
null
:
wechatUserInfo
.
getOpenId
());
return
JsonResult
.
buildSuccessResult
(
null
,
null
==
wechatUserInfo
?
null
:
wechatUserInfo
.
getOpenId
());
}
}
@LogHttpCaller
@RequestMapping
(
"/user/disable"
)
@RequestMapping
(
"/user/disable"
)
public
JsonResult
disableUser
(
Long
userId
)
{
public
JsonResult
disableUser
(
Long
userId
)
{
if
(
null
==
userId
||
0L
==
userId
)
{
if
(
null
==
userId
||
0L
==
userId
)
{
...
@@ -858,6 +865,7 @@ public class InnerController implements IBaseController {
...
@@ -858,6 +865,7 @@ public class InnerController implements IBaseController {
* @param phoneNo
* @param phoneNo
* @return
* @return
*/
*/
@LogHttpCaller
@RequestMapping
(
"/flush/cache"
)
@RequestMapping
(
"/flush/cache"
)
public
JsonResult
flushCache
(
String
phoneNo
)
{
public
JsonResult
flushCache
(
String
phoneNo
)
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
...
@@ -873,6 +881,7 @@ public class InnerController implements IBaseController {
...
@@ -873,6 +881,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"用户缓存信息已经删除"
,
null
);
return
JsonResult
.
buildSuccessResult
(
"用户缓存信息已经删除"
,
null
);
}
}
@LogHttpCaller
@RequestMapping
(
"/user/spouse/save"
)
@RequestMapping
(
"/user/spouse/save"
)
public
JsonResult
saveSpouse
(
Long
userId
,
MaritalStatus
status
,
String
spousePhone
,
String
spouseName
)
{
public
JsonResult
saveSpouse
(
Long
userId
,
MaritalStatus
status
,
String
spousePhone
,
String
spouseName
)
{
if
(
userId
==
null
||
userId
==
0
)
{
if
(
userId
==
null
||
userId
==
0
)
{
...
@@ -914,6 +923,7 @@ public class InnerController implements IBaseController {
...
@@ -914,6 +923,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
UserSpouseRet
.
getUserSpouseRet
(
userSpouse
));
return
JsonResult
.
buildSuccessResult
(
null
,
UserSpouseRet
.
getUserSpouseRet
(
userSpouse
));
}
}
@LogHttpCaller
@RequestMapping
(
"/user/findByPhones"
)
@RequestMapping
(
"/user/findByPhones"
)
public
JsonResult
getUserIdByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
public
JsonResult
getUserIdByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
...
@@ -940,6 +950,7 @@ public class InnerController implements IBaseController {
...
@@ -940,6 +950,7 @@ public class InnerController implements IBaseController {
* @param userPhones
* @param userPhones
* @return
* @return
*/
*/
@LogHttpCaller
@RequestMapping
(
"/uuid/findByPhones"
)
@RequestMapping
(
"/uuid/findByPhones"
)
public
JsonResult
getUuidsByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
public
JsonResult
getUuidsByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
...
@@ -949,6 +960,7 @@ public class InnerController implements IBaseController {
...
@@ -949,6 +960,7 @@ public class InnerController implements IBaseController {
/**
/**
* 重置密码接口,供内部人员使用(例如绝影)
* 重置密码接口,供内部人员使用(例如绝影)
*/
*/
@LogHttpCaller
@RequestMapping
(
"/user/password/reset/{key}/{phone}"
)
@RequestMapping
(
"/user/password/reset/{key}/{phone}"
)
public
JsonResult
resetPassword
(
@PathVariable
(
"key"
)
String
key
,
@PathVariable
(
"phone"
)
String
phone
)
{
public
JsonResult
resetPassword
(
@PathVariable
(
"key"
)
String
key
,
@PathVariable
(
"phone"
)
String
phone
)
{
LOGGER
.
info
(
"密码重置请求,phone:[{}]"
,
phone
);
LOGGER
.
info
(
"密码重置请求,phone:[{}]"
,
phone
);
...
@@ -1044,6 +1056,7 @@ public class InnerController implements IBaseController {
...
@@ -1044,6 +1056,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
userRet
);
return
JsonResult
.
buildSuccessResult
(
null
,
userRet
);
}
}
@LogHttpCaller
@RequestMapping
(
"/user/register"
)
@RequestMapping
(
"/user/register"
)
public
JsonResult
register
(
String
phoneNo
,
String
password
,
Long
channelId
)
{
public
JsonResult
register
(
String
phoneNo
,
String
password
,
Long
channelId
)
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
...
@@ -1071,6 +1084,7 @@ public class InnerController implements IBaseController {
...
@@ -1071,6 +1084,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
userList
);
return
JsonResult
.
buildSuccessResult
(
null
,
userList
);
}
}
@LogHttpCaller
@RequestMapping
(
"/forbiddenUserWeChat"
)
@RequestMapping
(
"/forbiddenUserWeChat"
)
public
JsonResult
forbiddenUserWeChat
(
@RequestParam
Long
userId
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
public
JsonResult
forbiddenUserWeChat
(
@RequestParam
Long
userId
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
if
(
StringUtils
.
isBlank
(
reason
)
||
null
==
userId
||
userId
<=
0
)
{
if
(
StringUtils
.
isBlank
(
reason
)
||
null
==
userId
||
userId
<=
0
)
{
...
@@ -1089,6 +1103,7 @@ public class InnerController implements IBaseController {
...
@@ -1089,6 +1103,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"用户禁用微信成功"
,
affectedRows
);
return
JsonResult
.
buildSuccessResult
(
"用户禁用微信成功"
,
affectedRows
);
}
}
@LogHttpCaller
@RequestMapping
(
"/updateIdCard"
)
@RequestMapping
(
"/updateIdCard"
)
public
JsonResult
updateIdCard
(
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
idNo
,
public
JsonResult
updateIdCard
(
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
idNo
,
@RequestParam
String
phoneNo
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
@RequestParam
String
phoneNo
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
...
@@ -1115,6 +1130,7 @@ public class InnerController implements IBaseController {
...
@@ -1115,6 +1130,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"修改用户身份证号或姓名成功"
,
affectedRows
);
return
JsonResult
.
buildSuccessResult
(
"修改用户身份证号或姓名成功"
,
affectedRows
);
}
}
@LogHttpCaller
@RequestMapping
(
"/forbiddenUserOrNot"
)
@RequestMapping
(
"/forbiddenUserOrNot"
)
public
JsonResult
forbiddenUserOrNot
(
@RequestParam
String
phoneNo
,
@RequestParam
Boolean
enable
,
public
JsonResult
forbiddenUserOrNot
(
@RequestParam
String
phoneNo
,
@RequestParam
Boolean
enable
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
...
@@ -1268,6 +1284,7 @@ public class InnerController implements IBaseController {
...
@@ -1268,6 +1284,7 @@ public class InnerController implements IBaseController {
* @param phoneNo
* @param phoneNo
* @return
* @return
*/
*/
@LogHttpCaller
@RequestMapping
(
"/user/enable"
)
@RequestMapping
(
"/user/enable"
)
public
JsonResult
isEnable
(
String
phoneNo
)
{
public
JsonResult
isEnable
(
String
phoneNo
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
...
...
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