|
@@ -11,6 +11,7 @@
|
|
|
<result column="number" jdbcType="BIGINT" property="number" />
|
|
<result column="number" jdbcType="BIGINT" property="number" />
|
|
|
<result column="lvl" jdbcType="INTEGER" property="lvl" />
|
|
<result column="lvl" jdbcType="INTEGER" property="lvl" />
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
|
|
+ <result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.goafanti.user.bo.UserPageHomeBo" id="UserPageHomeBo">
|
|
<resultMap type="com.goafanti.user.bo.UserPageHomeBo" id="UserPageHomeBo">
|
|
@@ -36,7 +37,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, mobile, password, nickname, email, create_time, number, lvl, type
|
|
|
|
|
|
|
+ id, mobile, password, nickname, email, create_time, number, lvl, type, aid
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -51,10 +52,10 @@
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.User">
|
|
<insert id="insert" parameterType="com.goafanti.common.model.User">
|
|
|
insert into user (id, mobile, password,
|
|
insert into user (id, mobile, password,
|
|
|
nickname, email, create_time,
|
|
nickname, email, create_time,
|
|
|
- number, lvl, type)
|
|
|
|
|
|
|
+ number, lvl, type, aid)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
|
#{nickname,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{nickname,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{number,jdbcType=BIGINT}, #{lvl,jdbcType=INTEGER},#{type,jdbcType=INTEGER})
|
|
|
|
|
|
|
+ #{number,jdbcType=BIGINT}, #{lvl,jdbcType=INTEGER},#{type,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.User">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.User">
|
|
|
insert into user
|
|
insert into user
|
|
@@ -86,6 +87,9 @@
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
type,
|
|
type,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="aid != null">
|
|
|
|
|
+ aid,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -115,6 +119,9 @@
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
#{type,jdbcType=INTEGER},
|
|
#{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="aid != null">
|
|
|
|
|
+ #{aid,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.User">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.User">
|
|
@@ -144,6 +151,9 @@
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
type = #{type,jdbcType=INTEGER}
|
|
type = #{type,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="aid != null">
|
|
|
|
|
+ aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -156,7 +166,8 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
number = #{number,jdbcType=BIGINT},
|
|
number = #{number,jdbcType=BIGINT},
|
|
|
lvl = #{lvl,jdbcType=INTEGER},
|
|
lvl = #{lvl,jdbcType=INTEGER},
|
|
|
- type = #{type,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
|
|
+ aid = #{aid,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|