Commit 8d2f6ba3 by fudahua

没数据的时候不同步

parent 328432bd
......@@ -533,11 +533,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
SecretSettingDTO secretSetting = secretSettingService.getSecretSetting(wxEnterpriseDTO.getWxEnterpriseId(), SecretTypeEnum.HAOBAN_HELP.getVal());
if (null == secretSetting||secretSetting.getCheckFlag()==0) {
logger.info("没有配置secret");
unlockTask(wxEnterpriseId);
return ;
}
List<com.gic.wechat.api.dto.qywx.DepartmentDTO> list = qywxDepartmentApiService.listSelfDepartment(wxEnterpriseDTO.getCorpid(), secretSetting.getSecretVal(), 1);
if (CollectionUtils.isEmpty(list)) {
logger.info("没有数据同步");
unlockTask(wxEnterpriseId);
return;
}
List<TabHaobanPreDealLog> dealLogList = list.stream().map(dto -> {
......
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