Commit a9878b56 by qwmqiuwenmin

Merge branch 'developer_repair_contact20200408' into 'developer'

fix

See merge request !27
parents b0e51d53 25630aa7
...@@ -155,12 +155,9 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -155,12 +155,9 @@ 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(application != null && application.getApplicationType() == 1){
if(dto.getChangeType().endsWith("party")){ if(dto.getChangeType().endsWith("party")){
this.dealDepartment(dto); this.dealDepartment(dto);
}else { }else {
...@@ -169,7 +166,6 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -169,7 +166,6 @@ public class MessageApiServiceImpl implements MessageApiService {
} }
} }
} }
}
private void dealDepartment(QywxCallBackDTO qywxCallBackDTO){ private void dealDepartment(QywxCallBackDTO qywxCallBackDTO){
DepartmentDTO departmentDTO = new DepartmentDTO(); DepartmentDTO departmentDTO = new DepartmentDTO();
......
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