|
@@ -56,8 +56,10 @@ public class InfoSynchronizer {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 同步用户信息
|
|
* 同步用户信息
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param userId 用户ID
|
|
|
*/
|
|
*/
|
|
|
- public void syncUserInfo() {
|
|
|
|
|
|
|
+ public void syncUserInfo(Long userId) {
|
|
|
LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_INFO, mBizType, mStrClassName
|
|
LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_INFO, mBizType, mStrClassName
|
|
|
, "开始同步用户信息,开始滚动拉取数据");
|
|
, "开始同步用户信息,开始滚动拉取数据");
|
|
|
long begin = System.currentTimeMillis();
|
|
long begin = System.currentTimeMillis();
|
|
@@ -81,6 +83,10 @@ public class InfoSynchronizer {
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ //遍历用户
|
|
|
|
|
+ //todo 用户角色信息获取
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//转换用户对象
|
|
//转换用户对象
|
|
|
List<PersonnelInfo> dates = users.stream()
|
|
List<PersonnelInfo> dates = users.stream()
|
|
|
.map(MiddlePlatformUser::toPersonnelInfo).collect(Collectors.toList());
|
|
.map(MiddlePlatformUser::toPersonnelInfo).collect(Collectors.toList());
|