Commit 60068981 by 徐高华

异常

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