|
|
|
@ -25,6 +25,9 @@ |
|
|
|
<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" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<!-- |
|
|
|
@ -99,7 +102,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 |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultMap="BaseResultMap"> |
|
|
|
<!-- |
|
|
|
@ -161,14 +164,16 @@ |
|
|
|
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 |
|
|
|
) |
|
|
|
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} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
|
@ -235,6 +240,15 @@ |
|
|
|
<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> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="userType != null"> |
|
|
|
@ -291,6 +305,15 @@ |
|
|
|
<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> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultType="java.lang.Long"> |
|
|
|
@ -367,6 +390,15 @@ |
|
|
|
<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> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
@ -396,7 +428,10 @@ |
|
|
|
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} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
@ -462,6 +497,15 @@ |
|
|
|
<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> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
@ -488,7 +532,10 @@ |
|
|
|
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} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |