Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
298fe0ec
Commit
298fe0ec
authored
Mar 29, 2021
by
wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户
parent
7592ef71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
TUserController.java
...nergy/chnmuseum/party/web/controller/TUserController.java
+13
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TUserController.java
View file @
298fe0ec
...
@@ -599,6 +599,19 @@ public class TUserController extends BaseController {
...
@@ -599,6 +599,19 @@ public class TUserController extends BaseController {
}
}
}
}
if
(
StringUtils
.
isNoneBlank
(
user
.
getOrgId
()))
{
user
.
setOrgId
(
user
.
getOrgId
());
ew
.
eq
(
"is_deleted"
,
0
);
ew
.
eq
(
"type"
,
"3"
);
ew
.
eq
(
"org_id"
,
user
.
getOrgId
());
List
<
TUser
>
list
=
this
.
userService
.
list
(
ew
);
if
(
list
!=
null
&&
list
.
size
()>
1
&&
list
.
get
(
0
)!=
null
)
{
resultMap
.
put
(
"resultCode"
,
200
);
resultMap
.
put
(
"message"
,
"每个单位只能有一个机顶盒账号!"
);
return
ResponseEntity
.
status
(
HttpStatus
.
BAD_REQUEST
).
body
(
resultMap
);
}
}
byte
[]
passwordSalt
=
SecureRandomSaltService
.
generateSalt
();
byte
[]
passwordSalt
=
SecureRandomSaltService
.
generateSalt
();
byte
[]
passwordHash
=
SHA256PasswordEncryptionService
byte
[]
passwordHash
=
SHA256PasswordEncryptionService
.
createPasswordHash
(
user
.
getPassword
(),
passwordSalt
);
.
createPasswordHash
(
user
.
getPassword
(),
passwordSalt
);
...
...
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