|
@@ -2556,11 +2556,9 @@ public class WxCorpInfoServiceImpl extends ServiceImpl<WxCorpInfoMapper, WxCorpI
|
|
@Override
|
|
@Override
|
|
@Async("taskExecutor")
|
|
@Async("taskExecutor")
|
|
public void getUserByCompanyIdAndTransferLicenseBatch(Integer companyId, List<String> takeoverIdList) throws Exception {
|
|
public void getUserByCompanyIdAndTransferLicenseBatch(Integer companyId, List<String> takeoverIdList) throws Exception {
|
|
- log.info("要接受转移的人的corpwxUserid:"+takeoverIdList.toString());
|
|
|
|
if (takeoverIdList.isEmpty()) {
|
|
if (takeoverIdList.isEmpty()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
String providerAccessToken = getProviderAccessToken();
|
|
String providerAccessToken = getProviderAccessToken();
|
|
String url = "https://qyapi.weixin.qq.com/cgi-bin/license/get_active_info_by_user?provider_access_token=" + providerAccessToken;
|
|
String url = "https://qyapi.weixin.qq.com/cgi-bin/license/get_active_info_by_user?provider_access_token=" + providerAccessToken;
|
|
|
|
|
|
@@ -2610,12 +2608,9 @@ public class WxCorpInfoServiceImpl extends ServiceImpl<WxCorpInfoMapper, WxCorpI
|
|
if (body != null) {
|
|
if (body != null) {
|
|
JSONObject respJson1 = JSONObject.parseObject(body);
|
|
JSONObject respJson1 = JSONObject.parseObject(body);
|
|
if (respJson1.getInteger("errcode") == 0) {
|
|
if (respJson1.getInteger("errcode") == 0) {
|
|
- log.info("转移成功");
|
|
|
|
- log.info("handoverId为:"+handoverId+"的用户转移给用户:"+takeoverId+"成功");
|
|
|
|
iterator.remove(); // 直接移除已转移的用户
|
|
iterator.remove(); // 直接移除已转移的用户
|
|
break; // 退出内层循环,避免对同一用户重复请求
|
|
break; // 退出内层循环,避免对同一用户重复请求
|
|
} else {
|
|
} else {
|
|
- log.info("转移失败:" + respJson1.toJSONString());
|
|
|
|
log.info("handoverId为:"+handoverId+"的用户转移给用户:"+takeoverId+"失败了");
|
|
log.info("handoverId为:"+handoverId+"的用户转移给用户:"+takeoverId+"失败了");
|
|
}
|
|
}
|
|
}
|
|
}
|