Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
7b9b9efa
Commit
7b9b9efa
authored
Sep 01, 2021
by
xugaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加导购:修改字段校验逻辑
parent
4c14d9f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+10
-2
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+2
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
7b9b9efa
...
...
@@ -249,12 +249,20 @@ public class ClerkController extends WebBaseController{
String
nationcode
=
staffDTO
.
getNationCode
();
String
postion
=
staffDTO
.
getPostion
();
Integer
sex
=
staffDTO
.
getSex
();
if
(
StringUtils
.
isAnyBlank
(
staffName
,
commitName
))
{
if
(
StringUtils
.
isAnyBlank
(
staffName
,
commitName
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10004
);
}
if
(!
GooglePhoneNumberUtil
.
checkPhoneNumber
(
phoneNumber
,
nationcode
)){
if
(
StringUtils
.
isEmpty
(
clerkCode
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_111116
);
}
if
(
StringUtils
.
isNotEmpty
(
phoneNumber
)
&&
!
GooglePhoneNumberUtil
.
checkPhoneNumber
(
phoneNumber
,
nationcode
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_10012
);
}
// 导购code校验-字母和数字
if
(!
clerkCode
.
matches
(
"[a-zA-Z0-9]"
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10023
);
}
if
(
version
==
null
){
StaffDTO
staff
=
staffApiService
.
selectByNationcodeAndPhoneNumber
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
staff
!=
null
)
{
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
7b9b9efa
...
...
@@ -218,6 +218,8 @@ public enum HaoBanErrCode {
ERR_10022
(
10022
,
"已有刷新在执行中,请不要重复刷新"
),
ERR_10023
(
10023
,
"code格式不正确"
),
ERR_11122
(
11122
,
"手机号已存在"
),
ERR_11123
(
11123
,
"请到好办端刷新企业微信好友"
),
...
...
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