Commit 14007a04 authored by 赵啸非's avatar 赵啸非

添加更新用户钉钉id任务

parent e301b93d
...@@ -96,11 +96,11 @@ public class SyncUserTaskImpl implements ITaskExcuteService { ...@@ -96,11 +96,11 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
userEntity.setUpdateTime(new Date()); userEntity.setUpdateTime(new Date());
userEntity.setUpdateUserId(1L); userEntity.setUpdateUserId(1L);
return userEntity; return userEntity;
}).collect(Collectors.toList()); }).filter(f->!ObjectUtils.isEmpty(f.getDingUserId())).collect(Collectors.toList());
if(!ObjectUtils.isEmpty(updateUserList)){ if(!ObjectUtils.isEmpty(updateUserList)){
log.info("更新用户钉钉id信息数量:{}",updateUserList.size()); log.info("更新用户钉钉id信息数量:{}",updateUserList.size());
userService.update(updateUserList); userService.getUserDao().updateBatch(updateUserList);
} }
} catch (Exception e) { } catch (Exception e) {
log.error("同步人事异常", e); log.error("同步人事异常", e);
......
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