Commit c42aa1bb by 徐高华

Merge branch 'feature/xgh/bug/0609' into 'master'

异常

See merge request !2939
parents 81938625 60068981
......@@ -1430,15 +1430,20 @@ public class StaffApiServiceImpl implements StaffApiService {
if(CollUtil.isNotEmpty(wxEnterpriseList)){
for (String wxEnterpriseId : wxEnterpriseList){
logger.info("开始刷新:{}",wxEnterpriseId);
String taskId = dealSyncOperationApiService.createQywxTask(wxEnterpriseId, "后门同步企业微信架构", "定时同步处理", "后门同步企业微信架构");
if (StringUtils.isBlank(taskId)) {
logger.info("企业微信id:{},创建异步任务异常!",wxEnterpriseId);
return com.gic.api.base.commons.ServiceResponse.failure("-9999","创建异步任务失败!");
}
String ret = dealSyncOperationApiService.dealQywxDepartment(taskId, wxEnterpriseId);
if (null != ret) {
logger.info("企业微信id:{},异常信息返回:{}",wxEnterpriseId,ret);
try {
String taskId = dealSyncOperationApiService.createQywxTask(wxEnterpriseId, "后门同步企业微信架构", "定时同步处理", "后门同步企业微信架构");
if (StringUtils.isBlank(taskId)) {
logger.info("企业微信id:{},创建异步任务异常!",wxEnterpriseId);
return com.gic.api.base.commons.ServiceResponse.failure("-9999","创建异步任务失败!");
}
String ret = dealSyncOperationApiService.dealQywxDepartment(taskId, wxEnterpriseId);
if (null != ret) {
logger.info("企业微信id:{},异常信息返回:{}",wxEnterpriseId,ret);
}
}catch (Exception e) {
logger.info("异常={}",wxEnterpriseId);
}
}
}
return null;
......
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