Commit d4642e9d authored by 赵啸非's avatar 赵啸非

添加资源自动刷新获取

parent 3e93d758
...@@ -411,6 +411,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE ...@@ -411,6 +411,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
item.setCreateUserId(1L); item.setCreateUserId(1L);
item.setCreateUserName("系统管理员"); item.setCreateUserName("系统管理员");
item.setCreateTime(new Date()); item.setCreateTime(new Date());
item.setId(item.getId());
return item; return item;
} else { } else {
//更新用户列表 //更新用户列表
...@@ -421,7 +422,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE ...@@ -421,7 +422,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
return item; return item;
} }
}).collect(Collectors.toList()); }).collect(Collectors.toList());
Map<Boolean, List<UserEntity>> saveUpdateCollect = saveUpdateUserList.stream().collect(Collectors.partitioningBy(x -> x.getId() == null)); Map<Boolean, List<UserEntity>> saveUpdateCollect = saveUpdateUserList.stream().collect(Collectors.partitioningBy(x -> x.getUpdateUserId() == null));
if (!ObjectUtils.isEmpty(saveUpdateCollect.get(true))) { if (!ObjectUtils.isEmpty(saveUpdateCollect.get(true))) {
//需要新增的用户 //需要新增的用户
log.info("需要新增用户数量:{}", saveUpdateCollect.get(true).size()); log.info("需要新增用户数量:{}", saveUpdateCollect.get(true).size());
......
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