Commit 498ce87a by 墨竹

feat:默认同意授权配置

parent 5f080391
......@@ -31,7 +31,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
@Service
public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
......@@ -119,6 +118,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
secretSetting.setSecretVal(permanentCode);
secretSettingService.saveSecretSetting(secretSetting);
}
agreeExternalUseridFlag(wxEnterpriseId,1);
log.info("企业微信授权处理完成");
}
......@@ -328,8 +328,8 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
@Override
public void agreeExternalUseridFlag(String wxEnterpriseId, Integer openFlag) {
log.info("是否同意授权转换external_userid,运维操作:wxEnterpriseId:{}", wxEnterpriseId);
WxEnterpriseDTO wxEnterpriseDTO1 = wxEnterpriseService.selectById(wxEnterpriseId);
if (wxEnterpriseDTO1 == null) {
WxEnterpriseDTO wxEnterpriseDTOOld = wxEnterpriseService.selectById(wxEnterpriseId);
if (wxEnterpriseDTOOld == null) {
return;
}
WxEnterpriseDTO wxEnterpriseDTO = new WxEnterpriseDTO();
......
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