Commit 9a2170e4 authored by 赵啸非's avatar 赵啸非

优化用户同步更新所属站点代码

parent c95fe372
......@@ -288,9 +288,10 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
if (!ObjectUtils.isEmpty(userEntityList)) {
userEntityList.stream().forEach(userEntity -> {
userEntity.setSiteIds(siteIds);
this.dao.update(userEntity);
updateRedisUserSession(userEntity);
});
this.dao.updateBatch(userEntityList);
//this.dao.updateBatch(userEntityList);
}
} else {
log.info("获取用户站点列表树数据失败:" + apiResp.getString("msg"));
......
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