Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
b92d5ab1
Commit
b92d5ab1
authored
Mar 10, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑时密码不能修改
parent
ca144c25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
UserModelVo.java
...antgroup/cashloanflowboss/api/user/model/UserModelVo.java
+0
-1
UserServiceImpl.java
...up/cashloanflowboss/api/user/service/UserServiceImpl.java
+3
-3
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/user/model/UserModelVo.java
View file @
b92d5ab1
...
...
@@ -29,7 +29,6 @@ public class UserModelVo {
/**
* 密码
*/
@NotEmpty
(
message
=
"用户密码不能为空"
)
private
String
password
;
/**
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/user/service/UserServiceImpl.java
View file @
b92d5ab1
...
...
@@ -271,7 +271,7 @@ public class UserServiceImpl implements UserService {
return
Result
.
buildFail
(
"不存在相应的用户,不能更新"
);
}
User
exist
=
userRepository
.
getOne
(
id
);
String
password
=
exist
.
getPassword
();
String
existUsername
=
exist
.
getUsername
();
String
username
=
userModelVo
.
getUsername
();
if
(!
existUsername
.
equals
(
username
))
{
...
...
@@ -291,7 +291,7 @@ public class UserServiceImpl implements UserService {
BeanUtils
.
copyProperties
(
userModelVo
,
exist
);
exist
.
setPassword
(
password
);
Long
channelId
=
exist
.
getChannelId
();
//渠道检查
...
...
@@ -304,7 +304,7 @@ public class UserServiceImpl implements UserService {
exist
.
setChannelName
(
configuration
.
getChannelName
());
}
exist
.
setPassword
(
MD5Tools
.
md5
(
userModelVo
.
getPassword
()));
//
exist.setPassword(MD5Tools.md5(userModelVo.getPassword()));
exist
.
setRoles
(
Collections
.
singletonList
(
role
));
exist
.
setUpdateTime
(
new
Date
());
userRepository
.
save
(
exist
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment