From dcf2a0295c0a6ff919207e3f99718e0629d9c20d Mon Sep 17 00:00:00 2001 From: byung eun park Date: Thu, 29 Aug 2019 17:26:37 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=20=EC=84=9C=EB=B9=84?= =?UTF-8?q?=EC=8A=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../totopia/server/modules/user/service/UserService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/totopia/server/modules/user/service/UserService.java b/src/main/java/com/totopia/server/modules/user/service/UserService.java index e74d090..14cf1f0 100644 --- a/src/main/java/com/totopia/server/modules/user/service/UserService.java +++ b/src/main/java/com/totopia/server/modules/user/service/UserService.java @@ -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());