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
f4bf9ac5
Commit
f4bf9ac5
authored
Apr 02, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
84337baf
a7b08fe1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+6
-9
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
f4bf9ac5
...
...
@@ -230,7 +230,7 @@ public class MessageApiServiceImpl implements MessageApiService {
TabHaobanWxEnterprise
enterprise
=
this
.
enterpriseService
.
getEnterpriseBycorpId
(
qywxCallBackDTO
.
getAuthCorpId
());
if
(
enterprise
!=
null
){
staff
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
staff
.
setActiveFlag
(
0
);
//
staff.setActiveFlag(0);
staff
.
setPhoneNumber
(
qywxCallBackDTO
.
getMobile
());
staff
.
setNickName
(
qywxCallBackDTO
.
getAlias
());
staff
.
setSex
(
qywxCallBackDTO
.
getGender
());
...
...
@@ -243,16 +243,10 @@ public class MessageApiServiceImpl implements MessageApiService {
if
(
qywxCallBackDTO
.
getStatus
()
!=
null
&&
qywxCallBackDTO
.
getStatus
()
==
1
){
staff
.
setActiveFlag
(
1
);
}
Integer
status
=
qywxCallBackDTO
.
getStatus
();
if
(
status
!=
null
&&
status
==
1
){
staff
.
setActiveFlag
(
1
);
}
if
(
qywxCallBackDTO
.
getStatus
()
!=
null
&&
qywxCallBackDTO
.
getStatus
()
==
1
){
staff
.
setActiveFlag
(
1
);
}
else
{
if
(
qywxCallBackDTO
.
getChangeType
().
equals
(
WxEditType
.
ADDUSER
.
getCode
())){
if
(
staff
.
getActiveFlag
()
==
null
){
staff
.
setActiveFlag
(
0
);
}
if
(
qywxCallBackDTO
.
getChangeType
().
equals
(
WxEditType
.
ADDUSER
.
getCode
())){
this
.
addUser
(
qywxCallBackDTO
,
staff
);
}
else
if
(
qywxCallBackDTO
.
getChangeType
().
equals
(
WxEditType
.
UPDATEUSER
.
getCode
())){
TabHaobanStaff
oldStaff
=
this
.
staffService
.
selectByUserIdAndEnterpriseId
(
qywxCallBackDTO
.
getUserid
(),
enterprise
.
getWxEnterpriseId
());
...
...
@@ -275,6 +269,9 @@ public class MessageApiServiceImpl implements MessageApiService {
if
(
staff
.
getSex
()
==
null
){
staff
.
setSex
(
oldStaff
.
getSex
());
}
if
(
staff
.
getActiveFlag
()
==
null
){
staff
.
setActiveFlag
(
oldStaff
.
getActiveFlag
());
}
// this.staffService.updateByPrimaryKey(staff);
// this.staffDepartmentRelatedService.delByUserid(qywxCallBackDTO.getUserid());
// this.addUserDepart(qywxCallBackDTO, oldStaff.getStaffId(), enterprise.getWxEnterpriseId());
...
...
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