|
|
@@ -391,10 +391,12 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
}
|
|
|
|
|
|
private void updateChatgptUser(GroupsRelation groupsRelation, User user, ChatgptUser chatgptUser) {
|
|
|
- chatgptUser.setName(user.getNickname());
|
|
|
- chatgptUser.setImg(getWxImg(user.getHeadimgurl(), user));
|
|
|
- chatgptUser.setExpireTime(groupsRelation.getExpiryTime());
|
|
|
- chatgptUserMapper.updateById(chatgptUser);
|
|
|
+ chatgptUserMapper.update(null, Wrappers.lambdaUpdate(ChatgptUser.class)
|
|
|
+ .set(ChatgptUser::getName, user.getNickname())
|
|
|
+ .set(ChatgptUser::getImg, getWxImg(user.getHeadimgurl(), user))
|
|
|
+ .set(ChatgptUser::getExpireTime, groupsRelation.getExpiryTime())
|
|
|
+ .eq(ChatgptUser::getId, chatgptUser.getId())
|
|
|
+ .eq(ChatgptUser::getRelationId, chatgptUser.getRelationId()));
|
|
|
}
|
|
|
|
|
|
/**
|