Commit 6d9bbe74 authored by xiaoguang.xu's avatar xiaoguang.xu

身份者号竟然有我为空的

parent 571f3893
...@@ -68,10 +68,13 @@ public class SyncHashController { ...@@ -68,10 +68,13 @@ public class SyncHashController {
log.info("查询用户需要的时间 : {}ms", started.elapsed(TimeUnit.MILLISECONDS)); log.info("查询用户需要的时间 : {}ms", started.elapsed(TimeUnit.MILLISECONDS));
List<UserHashMapping> userHashMappings = new ArrayList<>(); List<UserHashMapping> userHashMappings = new ArrayList<>();
userDetails.forEach(userDetail -> { userDetails.forEach(userDetail -> {
UserHashMapping userHashMapping = new UserHashMapping(); String idNo = userDetail.getIdNo();
userHashMapping.setUserId(userDetail.getUserId()); if (idNo != null) {
userHashMapping.setIdNoMd5(MD5Util.build(userDetail.getIdNo())); UserHashMapping userHashMapping = new UserHashMapping();
userHashMappings.add(userHashMapping); userHashMapping.setUserId(userDetail.getUserId());
userHashMapping.setIdNoMd5(MD5Util.build(userDetail.getIdNo()));
userHashMappings.add(userHashMapping);
}
}); });
log.info("遍历计算md5&crc32需要的时间 : {}ms", started.elapsed(TimeUnit.MILLISECONDS)); log.info("遍历计算md5&crc32需要的时间 : {}ms", started.elapsed(TimeUnit.MILLISECONDS));
started = started.reset().start(); started = started.reset().start();
......
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