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
QianQiXiang
haoban-manage3.0
Commits
66c7eb03
Commit
66c7eb03
authored
Jun 02, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
0c70171b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+3
-6
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
66c7eb03
...
...
@@ -326,7 +326,7 @@ public class ClerkController extends WebBaseController{
//新增店员
@HttpLimit
@RequestMapping
(
"/staff-add"
)
public
HaobanResponse
staffAdd
(
StaffDTO
staffDTO
,
String
storeId
,
String
clerkCode
,
Integer
version
)
{
public
HaobanResponse
staffAdd
(
StaffDTO
staffDTO
,
String
storeId
,
String
clerkCode
,
String
commitName
,
Integer
version
)
{
String
wxEnterpriseId
=
staffDTO
.
getWxEnterpriseId
();
String
staffName
=
staffDTO
.
getStaffName
();
...
...
@@ -334,12 +334,9 @@ public class ClerkController extends WebBaseController{
String
nationcode
=
staffDTO
.
getNationCode
();
String
postion
=
staffDTO
.
getPostion
();
Integer
sex
=
staffDTO
.
getSex
();
if
(
StringUtils
.
is
Blank
(
staff
Name
))
{
if
(
StringUtils
.
is
AnyBlank
(
staffName
,
phoneNumber
,
commit
Name
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10004
);
}
if
(
StringUtils
.
isBlank
(
phoneNumber
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_10014
);
}
if
(!
GooglePhoneNumberUtil
.
checkPhoneNumber
(
phoneNumber
,
nationcode
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_10012
);
}
...
...
@@ -365,7 +362,7 @@ public class ClerkController extends WebBaseController{
//需要审核
StaffDTO
staff
=
staffApiService
.
selectById
(
staffDTO
.
getStaffId
());
AuditDTO
audit
=
new
AuditDTO
();
audit
.
setCommitStaffName
(
staff
Name
);
audit
.
setCommitStaffName
(
commit
Name
);
audit
.
setCommitStaffId
(
staffDTO
.
getStaffId
());
audit
.
setCommitStaffImg
(
staff
.
getHeadImg
());
audit
.
setCommitStoreId
(
storeId
);
...
...
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