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
11b2cb09
Commit
11b2cb09
authored
Apr 17, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
411621e7
02343245
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+1
-1
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+18
-18
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
11b2cb09
...
...
@@ -250,7 +250,7 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
staffDepartmentRelatedService
.
del
(
related
);
staffService
.
delByuserid
(
relatedList
.
get
(
0
).
getStaffId
());
//
staffService.delByuserid(relatedList.get(0).getStaffId());
TabHaobanStaffDepartmentRelated
staffRelated
=
relatedList
.
get
(
0
);
if
(
StringUtils
.
isNotBlank
(
staffRelated
.
getClerkCode
())){
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
11b2cb09
...
...
@@ -258,24 +258,24 @@ public class ClerkController extends WebBaseController{
@HttpLimit
@RequestMapping
(
"/staff-add"
)
public
HaobanResponse
staffAdd
(
StaffDTO
staffDTO
,
String
storeId
,
String
clerkCode
)
{
String
wxEnterpriseId
=
staffDTO
.
getWxEnterpriseId
();
String
staffName
=
staffDTO
.
getStaffName
();
String
phoneNumber
=
staffDTO
.
getPhoneNumber
();
String
nationcode
=
staffDTO
.
getNationCode
();
String
postion
=
staffDTO
.
getPostion
();
Integer
sex
=
staffDTO
.
getSex
();
staffDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
if
(
StringUtils
.
isBlank
(
staffName
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10004
);
}
StaffDTO
staff
=
staffApiService
.
selectByNationcodeAndPhoneNumber
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
staff
!=
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10005
);
}
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
storeId
,
clerkCode
,
sex
,
staffName
,
phoneNumber
,
nationcode
,
postion
);
if
(!
flag
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10010
);
}
//
String wxEnterpriseId = staffDTO.getWxEnterpriseId();
//
String staffName = staffDTO.getStaffName();
//
String phoneNumber = staffDTO.getPhoneNumber();
//
String nationcode = staffDTO.getNationCode();
//
String postion = staffDTO.getPostion();
//
Integer sex = staffDTO.getSex();
//
staffDTO.setWxEnterpriseId(wxEnterpriseId);
//
if(StringUtils.isBlank(staffName)) {
//
return resultResponse(HaoBanErrCode.ERR_10004);
//
}
//
StaffDTO staff = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId,nationcode,phoneNumber);
//
if(staff != null) {
//
return resultResponse(HaoBanErrCode.ERR_10005);
//
}
//
boolean flag = syncHaobanToGicServiceApi.syncClerkToGicClerkAdd(storeId, clerkCode, sex, staffName, phoneNumber, nationcode, postion);
//
if(!flag){
//
return resultResponse(HaoBanErrCode.ERR_10010);
//
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
...
...
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