|
@@ -12,6 +12,8 @@
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="login_time" jdbcType="TIMESTAMP" property="loginTime" />
|
|
<result column="login_time" jdbcType="TIMESTAMP" property="loginTime" />
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
+ <result column="comp_id" jdbcType="BIGINT" property="compId" />
|
|
|
|
+ <result column="comp_name" jdbcType="VARCHAR" property="compName" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
@@ -72,7 +74,8 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, username, password, icon, email, nick_name, note, create_time, login_time, status
|
|
|
|
|
|
+ id, username, password, icon, email, nick_name, note, create_time, login_time, status,
|
|
|
|
+ comp_id, comp_name
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.hwrj.cloud.admin.model.UmsAdminExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.hwrj.cloud.admin.model.UmsAdminExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -110,12 +113,12 @@
|
|
</selectKey>
|
|
</selectKey>
|
|
insert into ums_admin (username, password, icon,
|
|
insert into ums_admin (username, password, icon,
|
|
email, nick_name, note,
|
|
email, nick_name, note,
|
|
- create_time, login_time, status
|
|
|
|
- )
|
|
|
|
|
|
+ create_time, login_time, status,
|
|
|
|
+ comp_id, comp_name)
|
|
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR},
|
|
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR},
|
|
#{email,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR},
|
|
#{email,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR},
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{loginTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}
|
|
|
|
- )
|
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{loginTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
|
|
|
+ #{compId,jdbcType=BIGINT}, #{compName,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.UmsAdmin">
|
|
<insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.UmsAdmin">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -150,6 +153,12 @@
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
status,
|
|
status,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="compId != null">
|
|
|
|
+ comp_id,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="compName != null">
|
|
|
|
+ comp_name,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="username != null">
|
|
<if test="username != null">
|
|
@@ -179,6 +188,12 @@
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
#{status,jdbcType=INTEGER},
|
|
#{status,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="compId != null">
|
|
|
|
+ #{compId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="compName != null">
|
|
|
|
+ #{compName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.hwrj.cloud.admin.model.UmsAdminExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.hwrj.cloud.admin.model.UmsAdminExample" resultType="java.lang.Long">
|
|
@@ -220,6 +235,12 @@
|
|
<if test="record.status != null">
|
|
<if test="record.status != null">
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.compId != null">
|
|
|
|
+ comp_id = #{record.compId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.compName != null">
|
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
|
+ </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" />
|
|
@@ -236,7 +257,9 @@
|
|
note = #{record.note,jdbcType=VARCHAR},
|
|
note = #{record.note,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
login_time = #{record.loginTime,jdbcType=TIMESTAMP},
|
|
login_time = #{record.loginTime,jdbcType=TIMESTAMP},
|
|
- status = #{record.status,jdbcType=INTEGER}
|
|
|
|
|
|
+ status = #{record.status,jdbcType=INTEGER},
|
|
|
|
+ comp_id = #{record.compId,jdbcType=BIGINT},
|
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -271,6 +294,12 @@
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
status = #{status,jdbcType=INTEGER},
|
|
status = #{status,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="compId != null">
|
|
|
|
+ comp_id = #{compId,jdbcType=BIGINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="compName != null">
|
|
|
|
+ comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
@@ -284,7 +313,9 @@
|
|
note = #{note,jdbcType=VARCHAR},
|
|
note = #{note,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
login_time = #{loginTime,jdbcType=TIMESTAMP},
|
|
login_time = #{loginTime,jdbcType=TIMESTAMP},
|
|
- status = #{status,jdbcType=INTEGER}
|
|
|
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
|
+ comp_id = #{compId,jdbcType=BIGINT},
|
|
|
|
+ comp_name = #{compName,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
</mapper>
|
|
</mapper>
|