|
|
@ -30,6 +30,13 @@ |
|
|
<result column="first_name" jdbcType="VARCHAR" property="firstName" /> |
|
|
<result column="first_name" jdbcType="VARCHAR" property="firstName" /> |
|
|
<result column="adsc_flag" jdbcType="INTEGER" property="adscFlag" /> |
|
|
<result column="adsc_flag" jdbcType="INTEGER" property="adscFlag" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
WARNING - @mbg.generated |
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
|
|
--> |
|
|
|
|
|
<result column="authorized_device_category_type" jdbcType="LONGVARCHAR" property="authorizedDeviceCategoryType" /> |
|
|
|
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<!-- |
|
|
<!-- |
|
|
WARNING - @mbg.generated |
|
|
WARNING - @mbg.generated |
|
|
@ -105,6 +112,34 @@ |
|
|
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, adsc_flag |
|
|
modify_time, modifier_id, super_role, create_platform, last_name, first_name, adsc_flag |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
<sql id="Blob_Column_List"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
WARNING - @mbg.generated |
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
|
|
--> |
|
|
|
|
|
authorized_device_category_type |
|
|
|
|
|
</sql> |
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultMap="ResultMapWithBLOBs"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
WARNING - @mbg.generated |
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
|
|
--> |
|
|
|
|
|
select |
|
|
|
|
|
<if test="distinct"> |
|
|
|
|
|
distinct |
|
|
|
|
|
</if> |
|
|
|
|
|
'true' as QUERYID, |
|
|
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
|
|
, |
|
|
|
|
|
<include refid="Blob_Column_List" /> |
|
|
|
|
|
from basic_user |
|
|
|
|
|
<if test="_parameter != null"> |
|
|
|
|
|
<include refid="Example_Where_Clause" /> |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="orderByClause != null"> |
|
|
|
|
|
order by ${orderByClause} |
|
|
|
|
|
</if> |
|
|
|
|
|
</select> |
|
|
<select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultMap="BaseResultMap"> |
|
|
<!-- |
|
|
<!-- |
|
|
WARNING - @mbg.generated |
|
|
WARNING - @mbg.generated |
|
|
@ -124,13 +159,15 @@ |
|
|
order by ${orderByClause} |
|
|
order by ${orderByClause} |
|
|
</if> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs"> |
|
|
<!-- |
|
|
<!-- |
|
|
WARNING - @mbg.generated |
|
|
WARNING - @mbg.generated |
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
--> |
|
|
--> |
|
|
select |
|
|
select |
|
|
<include refid="Base_Column_List" /> |
|
|
<include refid="Base_Column_List" /> |
|
|
|
|
|
, |
|
|
|
|
|
<include refid="Blob_Column_List" /> |
|
|
from basic_user |
|
|
from basic_user |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</select> |
|
|
</select> |
|
|
@ -167,7 +204,8 @@ |
|
|
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) |
|
|
adsc_flag, authorized_device_category_type |
|
|
|
|
|
) |
|
|
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}, |
|
|
@ -175,7 +213,8 @@ |
|
|
#{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}) |
|
|
#{adscFlag,jdbcType=INTEGER}, #{authorizedDeviceCategoryType,jdbcType=LONGVARCHAR} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
<insert id="insertSelective" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -253,6 +292,9 @@ |
|
|
<if test="adscFlag != null"> |
|
|
<if test="adscFlag != null"> |
|
|
adsc_flag, |
|
|
adsc_flag, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="authorizedDeviceCategoryType != null"> |
|
|
|
|
|
authorized_device_category_type, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="userType != null"> |
|
|
<if test="userType != null"> |
|
|
@ -321,6 +363,9 @@ |
|
|
<if test="adscFlag != null"> |
|
|
<if test="adscFlag != null"> |
|
|
#{adscFlag,jdbcType=INTEGER}, |
|
|
#{adscFlag,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="authorizedDeviceCategoryType != null"> |
|
|
|
|
|
#{authorizedDeviceCategoryType,jdbcType=LONGVARCHAR}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.dongjian.datacenter.admin.model.BasicUserExample" resultType="java.lang.Long"> |
|
|
@ -409,11 +454,48 @@ |
|
|
<if test="record.adscFlag != null"> |
|
|
<if test="record.adscFlag != null"> |
|
|
adsc_flag = #{record.adscFlag,jdbcType=INTEGER}, |
|
|
adsc_flag = #{record.adscFlag,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.authorizedDeviceCategoryType != null"> |
|
|
|
|
|
authorized_device_category_type = #{record.authorizedDeviceCategoryType,jdbcType=LONGVARCHAR}, |
|
|
|
|
|
</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" /> |
|
|
</if> |
|
|
</if> |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
WARNING - @mbg.generated |
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
|
|
--> |
|
|
|
|
|
update basic_user |
|
|
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
|
|
user_type = #{record.userType,jdbcType=INTEGER}, |
|
|
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
|
|
username = #{record.username,jdbcType=VARCHAR}, |
|
|
|
|
|
login_name = #{record.loginName,jdbcType=VARCHAR}, |
|
|
|
|
|
`password` = #{record.password,jdbcType=VARCHAR}, |
|
|
|
|
|
salt = #{record.salt,jdbcType=VARCHAR}, |
|
|
|
|
|
email = #{record.email,jdbcType=VARCHAR}, |
|
|
|
|
|
mfa_secret = #{record.mfaSecret,jdbcType=VARCHAR}, |
|
|
|
|
|
mfa_bind = #{record.mfaBind,jdbcType=INTEGER}, |
|
|
|
|
|
mobile_number = #{record.mobileNumber,jdbcType=VARCHAR}, |
|
|
|
|
|
last_login_time = #{record.lastLoginTime,jdbcType=BIGINT}, |
|
|
|
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
|
|
|
expire_time = #{record.expireTime,jdbcType=BIGINT}, |
|
|
|
|
|
create_time = #{record.createTime,jdbcType=BIGINT}, |
|
|
|
|
|
creator_id = #{record.creatorId,jdbcType=BIGINT}, |
|
|
|
|
|
modify_time = #{record.modifyTime,jdbcType=BIGINT}, |
|
|
|
|
|
modifier_id = #{record.modifierId,jdbcType=BIGINT}, |
|
|
|
|
|
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}, |
|
|
|
|
|
authorized_device_category_type = #{record.authorizedDeviceCategoryType,jdbcType=LONGVARCHAR} |
|
|
|
|
|
<if test="_parameter != null"> |
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
|
|
</if> |
|
|
|
|
|
</update> |
|
|
<update id="updateByExample" parameterType="map"> |
|
|
<update id="updateByExample" parameterType="map"> |
|
|
<!-- |
|
|
<!-- |
|
|
WARNING - @mbg.generated |
|
|
WARNING - @mbg.generated |
|
|
@ -520,9 +602,43 @@ |
|
|
<if test="adscFlag != null"> |
|
|
<if test="adscFlag != null"> |
|
|
adsc_flag = #{adscFlag,jdbcType=INTEGER}, |
|
|
adsc_flag = #{adscFlag,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="authorizedDeviceCategoryType != null"> |
|
|
|
|
|
authorized_device_category_type = #{authorizedDeviceCategoryType,jdbcType=LONGVARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
WARNING - @mbg.generated |
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
|
|
--> |
|
|
|
|
|
update basic_user |
|
|
|
|
|
set user_type = #{userType,jdbcType=INTEGER}, |
|
|
|
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
|
|
username = #{username,jdbcType=VARCHAR}, |
|
|
|
|
|
login_name = #{loginName,jdbcType=VARCHAR}, |
|
|
|
|
|
`password` = #{password,jdbcType=VARCHAR}, |
|
|
|
|
|
salt = #{salt,jdbcType=VARCHAR}, |
|
|
|
|
|
email = #{email,jdbcType=VARCHAR}, |
|
|
|
|
|
mfa_secret = #{mfaSecret,jdbcType=VARCHAR}, |
|
|
|
|
|
mfa_bind = #{mfaBind,jdbcType=INTEGER}, |
|
|
|
|
|
mobile_number = #{mobileNumber,jdbcType=VARCHAR}, |
|
|
|
|
|
last_login_time = #{lastLoginTime,jdbcType=BIGINT}, |
|
|
|
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
|
|
|
expire_time = #{expireTime,jdbcType=BIGINT}, |
|
|
|
|
|
create_time = #{createTime,jdbcType=BIGINT}, |
|
|
|
|
|
creator_id = #{creatorId,jdbcType=BIGINT}, |
|
|
|
|
|
modify_time = #{modifyTime,jdbcType=BIGINT}, |
|
|
|
|
|
modifier_id = #{modifierId,jdbcType=BIGINT}, |
|
|
|
|
|
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}, |
|
|
|
|
|
authorized_device_category_type = #{authorizedDeviceCategoryType,jdbcType=LONGVARCHAR} |
|
|
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
|
|
</update> |
|
|
<update id="updateByPrimaryKey" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
<update id="updateByPrimaryKey" parameterType="com.dongjian.datacenter.admin.model.BasicUser"> |
|
|
<!-- |
|
|
<!-- |
|
|
WARNING - @mbg.generated |
|
|
WARNING - @mbg.generated |
|
|
|