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

身份者号竟然有我为空的

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