Commit 78c132e68dd823bf059ae0fbe817eedeb22f619d
1 parent
5fc11019
fix user id is null
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java
| ... | ... | @@ -111,7 +111,7 @@ public class AdminUserServiceImpl implements AdminUserService { |
| 111 | 111 | List<UserPostDO> userPostList = new ArrayList<>(); |
| 112 | 112 | for (Long postId : postIds) { |
| 113 | 113 | UserPostDO entity = new UserPostDO(); |
| 114 | - entity.setUserId(entity.getUserId()); | |
| 114 | + entity.setUserId(user.getId()); | |
| 115 | 115 | entity.setPostId(postId); |
| 116 | 116 | userPostList.add(entity); |
| 117 | 117 | } | ... | ... |