Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
144894b6
Commit
144894b6
authored
Sep 04, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理员详情字段添加:密码生成类型
parent
c581c3b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
TabSysUser.java
...service/src/main/java/com/gic/auth/entity/TabSysUser.java
+14
-0
TabSysUserMapper.xml
...th-service/src/main/resources/mapper/TabSysUserMapper.xml
+16
-4
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabSysUser.java
View file @
144894b6
...
...
@@ -66,6 +66,11 @@ public class TabSysUser {
*/
private
Integer
loginType
=
0
;
/**
* 1:自动生成 2:自定义密码
*/
private
Integer
passwordType
;
public
Integer
getUserId
()
{
return
userId
;
}
...
...
@@ -161,4 +166,12 @@ public class TabSysUser {
public
void
setLoginType
(
Integer
loginType
)
{
this
.
loginType
=
loginType
;
}
public
Integer
getPasswordType
()
{
return
passwordType
;
}
public
void
setPasswordType
(
Integer
passwordType
)
{
this
.
passwordType
=
passwordType
;
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabSysUserMapper.xml
View file @
144894b6
...
...
@@ -14,10 +14,11 @@
<result
column=
"phone_area_code"
jdbcType=
"VARCHAR"
property=
"phoneAreaCode"
/>
<result
column=
"user_group_ids"
jdbcType=
"VARCHAR"
property=
"userGroupIds"
/>
<result
column=
"login_type"
jdbcType=
"INTEGER"
property=
"loginType"
/>
<result
column=
"password_type"
jdbcType=
"INTEGER"
property=
"passwordType"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
user_id, user_name, phone_number, password, super_admin, status, create_time, update_time,
enterprise_id, phone_area_code, user_group_ids, login_type
enterprise_id, phone_area_code, user_group_ids, login_type
, password_type
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -33,12 +34,13 @@
insert into tab_sys_user (user_id, user_name, phone_number,
password, super_admin, status,
create_time, update_time, enterprise_id,
phone_area_code, user_group_ids, login_type
phone_area_code, user_group_ids, login_type
, password_type
)
values (#{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{superAdmin,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER},
#{phoneAreaCode,jdbcType=VARCHAR}, #{userGroupIds,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER}
#{phoneAreaCode,jdbcType=VARCHAR}, #{userGroupIds,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER},
#{passwordType,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabSysUser"
>
...
...
@@ -80,6 +82,9 @@
<if
test=
"loginType != null"
>
login_type,
</if>
<if
test=
"passwordType != null"
>
password_type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
...
...
@@ -118,6 +123,9 @@
<if
test=
"loginType != null"
>
#{loginType,jdbcType=INTEGER},
</if>
<if
test=
"passwordType != null"
>
#{passwordType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.auth.entity.TabSysUser"
>
...
...
@@ -156,6 +164,9 @@
<if
test=
"loginType != null"
>
login_type = #{loginType,jdbcType=INTEGER},
</if>
<if
test=
"passwordType != null"
>
password_type = #{passwordType,jdbcType=INTEGER},
</if>
</set>
where user_id = #{userId,jdbcType=INTEGER}
</update>
...
...
@@ -171,7 +182,8 @@
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
phone_area_code = #{phoneAreaCode,jdbcType=VARCHAR},
user_group_ids = #{userGroupIds,jdbcType=VARCHAR},
login_type = #{loginType,jdbcType=INTEGER}
login_type = #{loginType,jdbcType=INTEGER},
password_type = #{passwordType,jdbcType=INTEGER}
where user_id = #{userId,jdbcType=INTEGER}
</update>
...
...
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