|
@@ -2540,6 +2540,7 @@ public class WxCorpInfoServiceImpl extends ServiceImpl<WxCorpInfoMapper, WxCorpI
|
|
|
|
|
|
if (respJson1.getInteger("errcode")==0){
|
|
if (respJson1.getInteger("errcode")==0){
|
|
log.info("转移成功");
|
|
log.info("转移成功");
|
|
|
|
+ break;
|
|
} else {
|
|
} else {
|
|
log.info("转移失败:"+respJson1.toJSONString());
|
|
log.info("转移失败:"+respJson1.toJSONString());
|
|
}
|
|
}
|
|
@@ -2555,6 +2556,7 @@ 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;
|
|
}
|
|
}
|
|
@@ -2609,14 +2611,19 @@ public class WxCorpInfoServiceImpl extends ServiceImpl<WxCorpInfoMapper, WxCorpI
|
|
JSONObject respJson1 = JSONObject.parseObject(body);
|
|
JSONObject respJson1 = JSONObject.parseObject(body);
|
|
if (respJson1.getInteger("errcode") == 0) {
|
|
if (respJson1.getInteger("errcode") == 0) {
|
|
log.info("转移成功");
|
|
log.info("转移成功");
|
|
|
|
+ log.info("handoverId为:"+handoverId+"的用户转移给用户:"+takeoverId+"成功");
|
|
iterator.remove(); // 直接移除已转移的用户
|
|
iterator.remove(); // 直接移除已转移的用户
|
|
break; // 退出内层循环,避免对同一用户重复请求
|
|
break; // 退出内层循环,避免对同一用户重复请求
|
|
} else {
|
|
} else {
|
|
log.info("转移失败:" + respJson1.toJSONString());
|
|
log.info("转移失败:" + respJson1.toJSONString());
|
|
|
|
+ log.info("handoverId为:"+handoverId+"的用户转移给用户:"+takeoverId+"失败了");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ else {
|
|
|
|
+ log.info("用户:"+item.getCorpwxUserid()+"成员详情激活状态为未激活");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|