Commit 144894b6 by guojuxing

管理员详情字段添加:密码生成类型

parent c581c3b6
......@@ -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
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment