회원 서비스 수정
This commit is contained in:
parent
dc4ee16af8
commit
dcf2a0295c
|
@ -101,13 +101,13 @@ public class UserService {
|
|||
}
|
||||
|
||||
if (!newNickname.equals("") && !newNickname.equals(existNickname)) {
|
||||
existEntity.setNickname(existEntity.getNickname());
|
||||
existEntity.setNickname(newNickname);
|
||||
}
|
||||
if (!newPhone.equals("") && !newPhone.equals(existPhone)) {
|
||||
existEntity.setPhone(existEntity.getPhone());
|
||||
existEntity.setPhone(newPhone);
|
||||
}
|
||||
if (!newEmail.equals("") && !newEmail.equals(existEmail)) {
|
||||
existEntity.setEmail(existEntity.getEmail());
|
||||
existEntity.setEmail(newEmail);
|
||||
}
|
||||
|
||||
if (!newPassword.equals("") && !this.passwordEncoder.matches(newPassword,existPassword)) {
|
||||
|
@ -115,7 +115,7 @@ public class UserService {
|
|||
existEntity.setLastResetTime(new Date());
|
||||
}
|
||||
if (!newDescriptions.equals("") && !newDescriptions.equals(existDescriptions)) {
|
||||
existEntity.setDescriptions(existEntity.getDescriptions());
|
||||
existEntity.setDescriptions(newDescriptions);
|
||||
}
|
||||
|
||||
existEntity.setUpdatedAt(new Date());
|
||||
|
|
Loading…
Reference in New Issue
Block a user