|
|
@ -182,6 +182,12 @@ public class UserInfoController implements UserInfoControllerApi { |
|
|
|
UserInfoEntity userInfo = vo.getUserInfoEntity(); |
|
|
|
UserInfoEntity userInfo = vo.getUserInfoEntity(); |
|
|
|
Integer userId = userInfo.getUserId(); |
|
|
|
Integer userId = userInfo.getUserId(); |
|
|
|
String password = userInfo.getPassword(); |
|
|
|
String password = userInfo.getPassword(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//验证账号是否存在
|
|
|
|
|
|
|
|
int num = userInfoService.queryAccountExist(userInfo.getAccount()); |
|
|
|
|
|
|
|
if (num >= 1){ |
|
|
|
|
|
|
|
return R.error(500,"更新失败,账号不能重复"); |
|
|
|
|
|
|
|
} |
|
|
|
String userPassword = userInfoService.queryPasword(userId); |
|
|
|
String userPassword = userInfoService.queryPasword(userId); |
|
|
|
if (userPassword.equals(password)==true){ |
|
|
|
if (userPassword.equals(password)==true){ |
|
|
|
return R.error(400,"false,the password is the same!!!"); |
|
|
|
return R.error(400,"false,the password is the same!!!"); |
|
|
|