Commit ae8c9aaf by 墨竹

fix:企微同步通讯录处理部门bug

parent be13e8c5
...@@ -44,6 +44,15 @@ import java.util.stream.Collectors; ...@@ -44,6 +44,15 @@ import java.util.stream.Collectors;
@Service("messageApiService") @Service("messageApiService")
public class MessageApiServiceImpl implements MessageApiService { public class MessageApiServiceImpl implements MessageApiService {
private static final Logger log = LogManager.getLogger(MessageApiServiceImpl.class); private static final Logger log = LogManager.getLogger(MessageApiServiceImpl.class);
/**
* 自建
*/
private static final String SELF_APP = "selfSuiteId";
/**
* 客户联系
*/
private static final String CONTACT_APP = "contactSuiteId";
@Autowired @Autowired
private DepartmentService departmentService; private DepartmentService departmentService;
@Autowired @Autowired
...@@ -116,6 +125,11 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -116,6 +125,11 @@ public class MessageApiServiceImpl implements MessageApiService {
public void dealWxMessage(String param) { public void dealWxMessage(String param) {
QywxCallBackDTO dto = JSON.parseObject(param, QywxCallBackDTO.class); QywxCallBackDTO dto = JSON.parseObject(param, QywxCallBackDTO.class);
log.info("【成员部门同步回调处理】dto={}", JSON.toJSONString(param)); log.info("【成员部门同步回调处理】dto={}", JSON.toJSONString(param));
String suiteId = dto.getSuiteId();
if (CONTACT_APP.equals(suiteId) || SELF_APP.equals(suiteId)) {
log.info("自建和客户联系回调不处理");
return;
}
//处理成员 //处理成员
dealQywxUser(dto); dealQywxUser(dto);
//处理部门 //处理部门
......
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