|
@@ -2,6 +2,7 @@ package com.example.service.impl;
|
|
|
|
|
|
import com.example.constant.MessageConstant;
|
|
|
import com.example.constant.StatusConstant;
|
|
|
+import com.example.context.BaseContext;
|
|
|
import com.example.dto.PasswordDTO;
|
|
|
import com.example.dto.UserDTO;
|
|
|
import com.example.dto.UserLoginDTO;
|
|
@@ -90,7 +91,7 @@ public class UserServiceImpl implements UserService {
|
|
|
*/
|
|
|
@Override
|
|
|
public void update(PasswordDTO passwordDTO) {
|
|
|
- Long id = passwordDTO.getId();
|
|
|
+ Long id = BaseContext.getCurrentId();
|
|
|
String newPassword = passwordDTO.getNewPassword();
|
|
|
String oldPassword = passwordDTO.getOldPassword();
|
|
|
System.out.println(newPassword);
|