Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
26426cd4
Commit
26426cd4
authored
Mar 10, 2021
by
宋振民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:系统安全功能开发
parent
5e39eccd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
hs-admin/src/main/java/com/hs/admin/service/impl/UserServiceImpl.java
+1
-0
hs-admin/src/main/resources/mapper/SysUserMapper.xml
+3
-2
hs-api/src/main/resources/mapper/SysUserMapper.xml
+2
-1
No files found.
hs-admin/src/main/java/com/hs/admin/service/impl/UserServiceImpl.java
View file @
26426cd4
...
...
@@ -107,6 +107,7 @@ public class UserServiceImpl implements UserService {
sysUser
.
setUserCode
(
user
.
getUserCode
());
sysUser
.
setUserName
(
user
.
getUserName
());
sysUser
.
setPassword
(
AESUtil
.
encrypt
(
user
.
getPassword
()));
sysUser
.
setLastUpdatePwdTime
(
new
Date
());
sysUser
.
setIdcard
(
user
.
getIdcard
());
sysUser
.
setMobile
(
user
.
getMobile
());
sysUser
.
setSex
(
user
.
getSex
());
...
...
hs-admin/src/main/resources/mapper/SysUserMapper.xml
View file @
26426cd4
...
...
@@ -38,12 +38,12 @@
insert into sys_user (CREATE_DATE, CREATE_USERID, `STATE`,
USER_CODE, USER_NAME, `PASSWORD`,
IDCARD, SEX, MOBILE,
PAGE_COUNT, ERROR_COUNT, ERROR_TIME,
PAGE_COUNT, ERROR_COUNT, ERROR_TIME,
LAST_UPDATE_PWD_TIME,
LAST_TIME, LAST_IP,MAC_ADDRESS,IS_ADMIN)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{idcard,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
#{pageCount,jdbcType=DECIMAL}, #{errorCount,jdbcType=DECIMAL}, #{errorTime,jdbcType=TIMESTAMP},
#{pageCount,jdbcType=DECIMAL}, #{errorCount,jdbcType=DECIMAL}, #{errorTime,jdbcType=TIMESTAMP},
#{lastUpdatePwdTime,jdbcType=TIMESTAMP},
#{lastTime,jdbcType=TIMESTAMP}, #{lastIp,jdbcType=VARCHAR},'EO-D5-5E-6C-4D-7B',#{isAdmin,jdbcType=BOOLEAN})
</insert>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.hs.admin.model.SysUser"
>
...
...
@@ -60,6 +60,7 @@
PAGE_COUNT = #{pageCount,jdbcType=DECIMAL},
ERROR_COUNT = #{errorCount,jdbcType=DECIMAL},
ERROR_TIME = #{errorTime,jdbcType=TIMESTAMP},
LAST_UPDATE_PWD_TIME = #{lastUpdatePwdTime,jdbcType=TIMESTAMP},
LAST_TIME = #{lastTime,jdbcType=TIMESTAMP},
LAST_IP = #{lastIp,jdbcType=VARCHAR},
IS_ADMIN = #{isAdmin,jdbcType=VARCHAR},
...
...
hs-api/src/main/resources/mapper/SysUserMapper.xml
View file @
26426cd4
...
...
@@ -125,7 +125,8 @@
LAST_IP,
MAC_ADDRESS,
LAST_UPDATE_PWD_TIME,
LOCK_FLAG
LOCK_FLAG,
PWD_INIT
from SYS_USER
where USER_CODE = #{userCode,jdbcType=VARCHAR}
and `STATE` != 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