Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
b5e5ce19
Commit
b5e5ce19
authored
Sep 14, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zuhuduan' of
http://192.168.60.201/root/dsk-operate-sys
into zuhuduan
parents
4b99a10c
cf85bf5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
SysUserServiceImpl.java
.../java/com/dsk/system/service/impl/SysUserServiceImpl.java
+2
-0
No files found.
dsk-system/src/main/java/com/dsk/system/service/impl/SysUserServiceImpl.java
View file @
b5e5ce19
...
@@ -2,6 +2,7 @@ package com.dsk.system.service.impl;
...
@@ -2,6 +2,7 @@ package com.dsk.system.service.impl;
import
cn.dev33.satoken.secure.BCrypt
;
import
cn.dev33.satoken.secure.BCrypt
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.util.ArrayUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
...
@@ -274,6 +275,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
...
@@ -274,6 +275,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
public
int
insertUser
(
SysUser
user
)
{
public
int
insertUser
(
SysUser
user
)
{
String
password
=
PasswordUtils
.
generatePwd
(
8
);
String
password
=
PasswordUtils
.
generatePwd
(
8
);
user
.
setPassword
(
BCrypt
.
hashpw
(
password
));
user
.
setPassword
(
BCrypt
.
hashpw
(
password
));
user
.
setCreateTime
(
new
DateTime
());
// 新增用户信息
// 新增用户信息
int
rows
=
baseMapper
.
insert
(
user
);
int
rows
=
baseMapper
.
insert
(
user
);
if
(
rows
>
0
)
{
if
(
rows
>
0
)
{
...
...
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