@ -25,6 +25,10 @@
<result column= "modify_time" jdbcType= "BIGINT" property= "modifyTime" />
<result column= "modifier_id" jdbcType= "BIGINT" property= "modifierId" />
<result column= "super_role" jdbcType= "INTEGER" property= "superRole" />
<result column= "create_platform" jdbcType= "INTEGER" property= "createPlatform" />
<result column= "last_name" jdbcType= "VARCHAR" property= "lastName" />
<result column= "first_name" jdbcType= "VARCHAR" property= "firstName" />
<result column= "adsc_flag" jdbcType= "INTEGER" property= "adscFlag" />
</resultMap>
<sql id= "Example_Where_Clause" >
<!--
@ -99,7 +103,7 @@
-->
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,
modify_time, modifier_id, super_role
modify_time, modifier_id, super_role, create_platform, last_name, first_name, adsc_flag
</sql>
<select id= "selectByExample" parameterType= "com.techsor.datacenter.business.model.BasicUserExample" resultMap= "BaseResultMap" >
<!--
@ -161,15 +165,17 @@
email, mfa_secret, mfa_bind,
mobile_number, last_login_time, flag,
expire_time, create_time, creator_id,
modify_time, modifier_id, super_role
)
modify_time, modifier_id, super_role,
create_platform, last_name, first_name,
adsc_flag)
values (#{userType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR},
#{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{mfaSecret,jdbcType=VARCHAR}, #{mfaBind,jdbcType=INTEGER},
#{mobileNumber,jdbcType=VARCHAR}, #{lastLoginTime,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER},
#{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},
#{adscFlag,jdbcType=INTEGER})
</insert>
<insert id= "insertSelective" parameterType= "com.techsor.datacenter.business.model.BasicUser" >
<!--
@ -235,6 +241,18 @@
<if test= "superRole != null" >
super_role,
</if>
<if test= "createPlatform != null" >
create_platform,
</if>
<if test= "lastName != null" >
last_name,
</if>
<if test= "firstName != null" >
first_name,
</if>
<if test= "adscFlag != null" >
adsc_flag,
</if>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "userType != null" >
@ -291,6 +309,18 @@
<if test= "superRole != null" >
#{superRole,jdbcType=INTEGER},
</if>
<if test= "createPlatform != null" >
#{createPlatform,jdbcType=INTEGER},
</if>
<if test= "lastName != null" >
#{lastName,jdbcType=VARCHAR},
</if>
<if test= "firstName != null" >
#{firstName,jdbcType=VARCHAR},
</if>
<if test= "adscFlag != null" >
#{adscFlag,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id= "countByExample" parameterType= "com.techsor.datacenter.business.model.BasicUserExample" resultType= "java.lang.Long" >
@ -367,6 +397,18 @@
<if test= "record.superRole != null" >
super_role = #{record.superRole,jdbcType=INTEGER},
</if>
<if test= "record.createPlatform != null" >
create_platform = #{record.createPlatform,jdbcType=INTEGER},
</if>
<if test= "record.lastName != null" >
last_name = #{record.lastName,jdbcType=VARCHAR},
</if>
<if test= "record.firstName != null" >
first_name = #{record.firstName,jdbcType=VARCHAR},
</if>
<if test= "record.adscFlag != null" >
adsc_flag = #{record.adscFlag,jdbcType=INTEGER},
</if>
</set>
<if test= "_parameter != null" >
<include refid= "Update_By_Example_Where_Clause" />
@ -396,7 +438,11 @@
creator_id = #{record.creatorId,jdbcType=BIGINT},
modify_time = #{record.modifyTime,jdbcType=BIGINT},
modifier_id = #{record.modifierId,jdbcType=BIGINT},
super_role = #{record.superRole,jdbcType=INTEGER}
super_role = #{record.superRole,jdbcType=INTEGER},
create_platform = #{record.createPlatform,jdbcType=INTEGER},
last_name = #{record.lastName,jdbcType=VARCHAR},
first_name = #{record.firstName,jdbcType=VARCHAR},
adsc_flag = #{record.adscFlag,jdbcType=INTEGER}
<if test= "_parameter != null" >
<include refid= "Update_By_Example_Where_Clause" />
</if>
@ -462,6 +508,18 @@
<if test= "superRole != null" >
super_role = #{superRole,jdbcType=INTEGER},
</if>
<if test= "createPlatform != null" >
create_platform = #{createPlatform,jdbcType=INTEGER},
</if>
<if test= "lastName != null" >
last_name = #{lastName,jdbcType=VARCHAR},
</if>
<if test= "firstName != null" >
first_name = #{firstName,jdbcType=VARCHAR},
</if>
<if test= "adscFlag != null" >
adsc_flag = #{adscFlag,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
@ -488,7 +546,11 @@
creator_id = #{creatorId,jdbcType=BIGINT},
modify_time = #{modifyTime,jdbcType=BIGINT},
modifier_id = #{modifierId,jdbcType=BIGINT},
super_role = #{superRole,jdbcType=INTEGER}
super_role = #{superRole,jdbcType=INTEGER},
create_platform = #{createPlatform,jdbcType=INTEGER},
last_name = #{lastName,jdbcType=VARCHAR},
first_name = #{firstName,jdbcType=VARCHAR},
adsc_flag = #{adscFlag,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>