회원 서비스 수정

This commit is contained in:
byung eun park 2019-08-29 17:26:37 +09:00
parent dc4ee16af8
commit dcf2a0295c

View File

@ -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());