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
8b120a02
Commit
8b120a02
authored
Mar 11, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
33f0de9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+36
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
8b120a02
...
...
@@ -222,6 +222,11 @@ public class StaffApiServiceImpl implements StaffApiService {
}
staffDepartmentRelatedService
.
del
(
related
);
staffService
.
delByuserid
(
relatedList
.
get
(
0
).
getStaffId
());
TabHaobanStaffDepartmentRelated
staffRelated
=
relatedList
.
get
(
0
);
if
(
StringUtils
.
isNotBlank
(
staffRelated
.
getClerkCode
())){
cleanGicClerk
(
staffRelated
.
getClerkCode
(),
related
.
getDepartmentId
());
}
//走修改流程
}
else
{
String
departmentIds
=
""
;
...
...
@@ -236,6 +241,33 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
}
private
void
cleanGicClerk
(
String
code
,
String
departmentId
){
if
(
StringUtils
.
isNotBlank
(
code
)){
TabHaobanDepartment
department
=
departmentService
.
selectById
(
departmentId
);
String
enterpriseId
=
""
;
if
(
department
.
getIsStore
()
==
0
){
com
.
gic
.
enterprise
.
api
.
dto
.
DepartmentDTO
dto
=
gicDepartmentService
.
getDeptment
(
department
.
getRelatedId
());
if
(
dto
==
null
){
StoreGroupDTO
group
=
storeGroupService
.
getStoreGroupById
(
department
.
getRelatedId
());
if
(
group
!=
null
){
enterpriseId
=
group
.
getEnterpriseId
();
}
}
else
{
enterpriseId
=
dto
.
getEnterpriseId
();
}
}
else
{
StoreDTO
store
=
storeService
.
getStore
(
department
.
getRelatedId
());
enterpriseId
=
store
.
getEnterpriseId
();
}
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByCodeNoStatus
(
enterpriseId
,
code
);
if
(
clerkDTO
!=
null
){
logger
.
info
(
"【员工修改】clerkDTO={}"
,
JSON
.
toJSONString
(
clerkDTO
));
clerkDTO
.
setPhoneNumber
(
"--"
);
clerkService
.
updateClerk
(
clerkDTO
);
}
}
}
@Override
public
void
wxGetAdd
(
String
userId
,
String
wxEnterpriseId
)
{
...
...
@@ -376,10 +408,10 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(!
departmentIds
.
contains
(
tab1
.
getDepartmentId
())){
StaffDepartmentRelatedDTO
related
=
EntityUtil
.
changeEntityByJSON
(
StaffDepartmentRelatedDTO
.
class
,
tab1
);
staffDepartmentRelatedService
.
del
(
related
);
//
if(org.apache.commons.lang3.StringUtils.isNoneBlank(tab1.getClerkCode())){
// //TODO 通知gic解绑
//
//
}
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNoneBlank
(
tab1
.
getClerkCode
())){
cleanGicClerk
(
tab1
.
getClerkCode
(),
tab1
.
getDepartmentId
());
}
}
}
...
...
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