Commit a9878b56 by qwmqiuwenmin

Merge branch 'developer_repair_contact20200408' into 'developer'

fix

See merge request !27
parents b0e51d53 25630aa7
...@@ -155,18 +155,14 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -155,18 +155,14 @@ public class MessageApiServiceImpl implements MessageApiService {
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));
if(dto != null){ if(dto != null){
String siteId = dto.getSuiteId();
String corpId = dto.getAuthCorpId(); String corpId = dto.getAuthCorpId();
TabHaobanWxEnterprise enterprise = this.enterpriseService.getEnterpriseBycorpId(corpId); TabHaobanWxEnterprise enterprise = this.enterpriseService.getEnterpriseBycorpId(corpId);
if(enterprise != null){ if(enterprise != null){
TabHaobanWxApplication application = wxApplicationService.selectBySiteIdAndWxEnterpriseId(siteId, enterprise.getWxEnterpriseId()); if(dto.getChangeType().endsWith("party")){
if(application != null && application.getApplicationType() == 1){ this.dealDepartment(dto);
if(dto.getChangeType().endsWith("party")){ }else {
this.dealDepartment(dto); this.dealUser(dto);
}else { }
this.dealUser(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