fix user id is null

pull/2/head
安贞 2022-03-31 13:18:37 +08:00
parent 5fc1101900
commit 78c132e68d
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class AdminUserServiceImpl implements AdminUserService {
List<UserPostDO> userPostList = new ArrayList<>();
for (Long postId : postIds) {
UserPostDO entity = new UserPostDO();
entity.setUserId(entity.getUserId());
entity.setUserId(user.getId());
entity.setPostId(postId);
userPostList.add(entity);
}