Commit e00def26 by 陶光胜

企业微信取消授权回调处理

parent cfedc4b8
...@@ -22,6 +22,7 @@ public class QywxCallBackDTO implements Serializable{ ...@@ -22,6 +22,7 @@ public class QywxCallBackDTO implements Serializable{
private String newUserid; private String newUserid;
private String mobile; private String mobile;
private String position; private String position;
private Integer status; //激活状态:1=激活或关注, 2=禁用, 4=未激活
private Integer id; private Integer id;
private String departmentName; private String departmentName;
...@@ -182,4 +183,12 @@ public class QywxCallBackDTO implements Serializable{ ...@@ -182,4 +183,12 @@ public class QywxCallBackDTO implements Serializable{
public void setPosition(String position) { public void setPosition(String position) {
this.position = position; this.position = position;
} }
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
} }
...@@ -169,6 +169,11 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -169,6 +169,11 @@ public class MessageApiServiceImpl implements MessageApiService {
staff.setStaffName(qywxCallBackDTO.getUserName()); staff.setStaffName(qywxCallBackDTO.getUserName());
staff.setWxUserId(qywxCallBackDTO.getUserid()); staff.setWxUserId(qywxCallBackDTO.getUserid());
staff.setPostion(qywxCallBackDTO.getPosition()); staff.setPostion(qywxCallBackDTO.getPosition());
if(qywxCallBackDTO.getStatus() != null && qywxCallBackDTO.getStatus() == 1){
staff.setActiveFlag(1);
} else {
staff.setActiveFlag(0);
}
if(qywxCallBackDTO.getChangeType().equals(WxEditType.ADDUSER.getCode())){ if(qywxCallBackDTO.getChangeType().equals(WxEditType.ADDUSER.getCode())){
this.addUser(qywxCallBackDTO, staff); this.addUser(qywxCallBackDTO, staff);
} else if(qywxCallBackDTO.getChangeType().equals(WxEditType.UPDATEUSER.getCode())){ } else if(qywxCallBackDTO.getChangeType().equals(WxEditType.UPDATEUSER.getCode())){
......
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