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
df3ac4e7
Commit
df3ac4e7
authored
Jul 30, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤销对/user_detail/search_list接口入参的过度校验,保证客服使用该功能时所得结果与实际数据的一致性
parent
c2b7160a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+3
-10
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
df3ac4e7
...
@@ -580,7 +580,7 @@ public class InnerController implements IBaseController {
...
@@ -580,7 +580,7 @@ public class InnerController implements IBaseController {
}
}
/**
/**
* 按照姓名、份证号或手机号查询用户实名信息 - 精确查询
* 按照姓名、份证号或手机号查询用户实名信息 - 精确查询
,供客服用,不限制入参正确性
* @param name - 姓名
* @param name - 姓名
* @param phoneNo - 手机号
* @param phoneNo - 手机号
* @param idNo - 身份证号
* @param idNo - 身份证号
...
@@ -594,15 +594,8 @@ public class InnerController implements IBaseController {
...
@@ -594,15 +594,8 @@ public class InnerController implements IBaseController {
if
(
StringUtils
.
isBlank
(
name
)
&&
StringUtils
.
isBlank
(
phoneNo
)
&&
StringUtils
.
isBlank
(
idNo
))
{
if
(
StringUtils
.
isBlank
(
name
)
&&
StringUtils
.
isBlank
(
phoneNo
)
&&
StringUtils
.
isBlank
(
idNo
))
{
return
JsonResult
.
buildErrorStateResult
(
"至少必须满足一个条件不为空"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"至少必须满足一个条件不为空"
,
null
);
}
}
int
idNoFullSize
=
18
;
List
<
UserDetailVO
>
userDetails
=
userDetailService
.
searchUserDetailList
(
name
,
phoneNo
,
idNo
);
boolean
nameValid
=
StringUtils
.
isBlank
(
name
)
||
ValidationUtil
.
validateChinese
(
name
);
return
JsonResult
.
buildSuccessResult
(
"success"
,
userDetails
);
boolean
phoneNoValid
=
StringUtils
.
isBlank
(
phoneNo
)
||
ValidationUtil
.
validatePhoneNo
(
phoneNo
);
boolean
idNoValid
=
StringUtils
.
isBlank
(
idNo
)
||
Objects
.
equals
(
idNo
.
length
(),
idNoFullSize
);
if
(
nameValid
&&
phoneNoValid
&&
idNoValid
){
List
<
UserDetailVO
>
userDetails
=
userDetailService
.
searchUserDetailList
(
name
,
phoneNo
,
idNo
);
return
JsonResult
.
buildSuccessResult
(
"success"
,
userDetails
);
}
return
JsonResult
.
buildErrorStateResult
(
"查询条件不规范!"
,
null
);
}
}
/**
/**
...
...
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