Commit 1490974d by qwmqiuwenmin

fix

parent e61c9834
......@@ -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());
......@@ -244,6 +244,7 @@ public class MessageApiServiceImpl implements MessageApiService {
staff.setActiveFlag(1);
}
if(qywxCallBackDTO.getChangeType().equals(WxEditType.ADDUSER.getCode())){
staff.setActiveFlag(0);
this.addUser(qywxCallBackDTO, staff);
} else if(qywxCallBackDTO.getChangeType().equals(WxEditType.UPDATEUSER.getCode())){
TabHaobanStaff oldStaff = this.staffService.selectByUserIdAndEnterpriseId(qywxCallBackDTO.getUserid(),enterprise.getWxEnterpriseId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment