|
|
@ -28,6 +28,7 @@ |
|
|
<result column="create_platform" jdbcType="INTEGER" property="createPlatform" /> |
|
|
<result column="create_platform" jdbcType="INTEGER" property="createPlatform" /> |
|
|
<result column="last_name" jdbcType="VARCHAR" property="lastName" /> |
|
|
<result column="last_name" jdbcType="VARCHAR" property="lastName" /> |
|
|
<result column="first_name" jdbcType="VARCHAR" property="firstName" /> |
|
|
<result column="first_name" jdbcType="VARCHAR" property="firstName" /> |
|
|
|
|
|
<result column="adsc_flag" jdbcType="INTEGER" property="adscFlag" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -102,7 +103,7 @@ |
|
|
--> |
|
|
--> |
|
|
id, user_type, company_id, username, login_name, `password`, salt, email, mfa_secret, |
|
|
id, user_type, company_id, username, login_name, `password`, salt, email, mfa_secret, |
|
|
mfa_bind, mobile_number, last_login_time, flag, expire_time, create_time, creator_id, |
|
|
mfa_bind, mobile_number, last_login_time, flag, expire_time, create_time, creator_id, |
|
|
modify_time, modifier_id, super_role, create_platform, last_name, first_name |
|
|
modify_time, modifier_id, super_role, create_platform, last_name, first_name, adsc_flag |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.dongjian.dashboard.back.model.BasicUserExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.dongjian.dashboard.back.model.BasicUserExample" resultMap="BaseResultMap"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -165,16 +166,16 @@ |
|
|
mobile_number, last_login_time, flag, |
|
|
mobile_number, last_login_time, flag, |
|
|
expire_time, create_time, creator_id, |
|
|
expire_time, create_time, creator_id, |
|
|
modify_time, modifier_id, super_role, |
|
|
modify_time, modifier_id, super_role, |
|
|
create_platform, last_name, first_name |
|
|
create_platform, last_name, first_name, |
|
|
) |
|
|
adsc_flag) |
|
|
values (#{userType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, |
|
|
values (#{userType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, |
|
|
#{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR}, |
|
|
#{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR}, |
|
|
#{email,jdbcType=VARCHAR}, #{mfaSecret,jdbcType=VARCHAR}, #{mfaBind,jdbcType=INTEGER}, |
|
|
#{email,jdbcType=VARCHAR}, #{mfaSecret,jdbcType=VARCHAR}, #{mfaBind,jdbcType=INTEGER}, |
|
|
#{mobileNumber,jdbcType=VARCHAR}, #{lastLoginTime,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER}, |
|
|
#{mobileNumber,jdbcType=VARCHAR}, #{lastLoginTime,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER}, |
|
|
#{expireTime,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, |
|
|
#{expireTime,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, |
|
|
#{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT}, #{superRole,jdbcType=INTEGER}, |
|
|
#{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT}, #{superRole,jdbcType=INTEGER}, |
|
|
#{createPlatform,jdbcType=INTEGER}, #{lastName,jdbcType=VARCHAR}, #{firstName,jdbcType=VARCHAR} |
|
|
#{createPlatform,jdbcType=INTEGER}, #{lastName,jdbcType=VARCHAR}, #{firstName,jdbcType=VARCHAR}, |
|
|
) |
|
|
#{adscFlag,jdbcType=INTEGER}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.dongjian.dashboard.back.model.BasicUser"> |
|
|
<insert id="insertSelective" parameterType="com.dongjian.dashboard.back.model.BasicUser"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -249,6 +250,9 @@ |
|
|
<if test="firstName != null"> |
|
|
<if test="firstName != null"> |
|
|
first_name, |
|
|
first_name, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="adscFlag != null"> |
|
|
|
|
|
adsc_flag, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="userType != null"> |
|
|
<if test="userType != null"> |
|
|
@ -314,6 +318,9 @@ |
|
|
<if test="firstName != null"> |
|
|
<if test="firstName != null"> |
|
|
#{firstName,jdbcType=VARCHAR}, |
|
|
#{firstName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="adscFlag != null"> |
|
|
|
|
|
#{adscFlag,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.dongjian.dashboard.back.model.BasicUserExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.dongjian.dashboard.back.model.BasicUserExample" resultType="java.lang.Long"> |
|
|
@ -399,6 +406,9 @@ |
|
|
<if test="record.firstName != null"> |
|
|
<if test="record.firstName != null"> |
|
|
first_name = #{record.firstName,jdbcType=VARCHAR}, |
|
|
first_name = #{record.firstName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.adscFlag != null"> |
|
|
|
|
|
adsc_flag = #{record.adscFlag,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -431,7 +441,8 @@ |
|
|
super_role = #{record.superRole,jdbcType=INTEGER}, |
|
|
super_role = #{record.superRole,jdbcType=INTEGER}, |
|
|
create_platform = #{record.createPlatform,jdbcType=INTEGER}, |
|
|
create_platform = #{record.createPlatform,jdbcType=INTEGER}, |
|
|
last_name = #{record.lastName,jdbcType=VARCHAR}, |
|
|
last_name = #{record.lastName,jdbcType=VARCHAR}, |
|
|
first_name = #{record.firstName,jdbcType=VARCHAR} |
|
|
first_name = #{record.firstName,jdbcType=VARCHAR}, |
|
|
|
|
|
adsc_flag = #{record.adscFlag,jdbcType=INTEGER} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -506,6 +517,9 @@ |
|
|
<if test="firstName != null"> |
|
|
<if test="firstName != null"> |
|
|
first_name = #{firstName,jdbcType=VARCHAR}, |
|
|
first_name = #{firstName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="adscFlag != null"> |
|
|
|
|
|
adsc_flag = #{adscFlag,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
@ -535,7 +549,8 @@ |
|
|
super_role = #{superRole,jdbcType=INTEGER}, |
|
|
super_role = #{superRole,jdbcType=INTEGER}, |
|
|
create_platform = #{createPlatform,jdbcType=INTEGER}, |
|
|
create_platform = #{createPlatform,jdbcType=INTEGER}, |
|
|
last_name = #{lastName,jdbcType=VARCHAR}, |
|
|
last_name = #{lastName,jdbcType=VARCHAR}, |
|
|
first_name = #{firstName,jdbcType=VARCHAR} |
|
|
first_name = #{firstName,jdbcType=VARCHAR}, |
|
|
|
|
|
adsc_flag = #{adscFlag,jdbcType=INTEGER} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |