mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-26 00:45:08 +08:00
fix user id is null
This commit is contained in:
@ -111,7 +111,7 @@ public class AdminUserServiceImpl implements AdminUserService {
|
|||||||
List<UserPostDO> userPostList = new ArrayList<>();
|
List<UserPostDO> userPostList = new ArrayList<>();
|
||||||
for (Long postId : postIds) {
|
for (Long postId : postIds) {
|
||||||
UserPostDO entity = new UserPostDO();
|
UserPostDO entity = new UserPostDO();
|
||||||
entity.setUserId(entity.getUserId());
|
entity.setUserId(user.getId());
|
||||||
entity.setPostId(postId);
|
entity.setPostId(postId);
|
||||||
userPostList.add(entity);
|
userPostList.add(entity);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user