Commit 47f5cd58 by xugaojun

修复查询企业问题

parent 148142a1
......@@ -94,6 +94,8 @@ public class MessageApiServiceImpl implements MessageApiService {
private SecretSettingService secretSettingService;
@Autowired
private WxApplicationApiService wxApplicationApiService;
@Autowired
private WxApplicationService wxApplicationService;
@Override
public void gicMessageReceive(GicMessageDTO gicMessageDTO) {
......@@ -213,12 +215,12 @@ public class MessageApiServiceImpl implements MessageApiService {
log.info("成员为空");
return;
}
TabHaobanWxEnterprise enterprise = this.enterpriseService.getEnterpriseBycorpId(qywxCallBackDTO.getAuthCorpId());
if (enterprise == null) {
TabHaobanWxApplication wxApplication = wxApplicationService.selectByCorpId(qywxCallBackDTO.getAuthCorpId());
if (Objects.isNull(wxApplication)) {
log.info("授权企业不存在,{}", qywxCallBackDTO.getAuthCorpId());
return;
}
String wxEnterpriseId = enterprise.getWxEnterpriseId();
String wxEnterpriseId = wxApplication.getWxEnterpriseId();
String changeType = qywxCallBackDTO.getChangeType();
if (changeType.equals(WxEditType.ADD_USER.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