|
@@ -9,13 +9,14 @@
|
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="number" jdbcType="BIGINT" property="number" />
|
|
<result column="number" jdbcType="BIGINT" property="number" />
|
|
|
|
|
+ <result column="lvl" jdbcType="INTEGER" property="lvl" />
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, mobile, password, nickname, email, create_time, number, type
|
|
|
|
|
|
|
+ id, mobile, password, nickname, email, create_time, number, lvl, type
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -30,10 +31,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, type)
|
|
|
|
|
|
|
+ number, lvl, type)
|
|
|
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}, #{type,jdbcType=INTEGER})
|
|
|
|
|
|
|
+ #{number,jdbcType=BIGINT}, #{lvl,jdbcType=INTEGER},#{type,jdbcType=INTEGER})
|
|
|
</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
|
|
@@ -59,6 +60,9 @@
|
|
|
<if test="number != null">
|
|
<if test="number != null">
|
|
|
number,
|
|
number,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lvl != null">
|
|
|
|
|
+ lvl,
|
|
|
|
|
+ </if>
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
type,
|
|
type,
|
|
|
</if>
|
|
</if>
|
|
@@ -85,6 +89,9 @@
|
|
|
<if test="number != null">
|
|
<if test="number != null">
|
|
|
#{number,jdbcType=BIGINT},
|
|
#{number,jdbcType=BIGINT},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lvl != null">
|
|
|
|
|
+ #{lvl,jdbcType=BIGINT},
|
|
|
|
|
+ </if>
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
#{type,jdbcType=INTEGER},
|
|
#{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -111,8 +118,11 @@
|
|
|
<if test="number != null">
|
|
<if test="number != null">
|
|
|
number = #{number,jdbcType=BIGINT},
|
|
number = #{number,jdbcType=BIGINT},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lvl != null">
|
|
|
|
|
+ lvl = #{lvl,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ type = #{type,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -125,6 +135,7 @@
|
|
|
email = #{email,jdbcType=VARCHAR},
|
|
email = #{email,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
number = #{number,jdbcType=BIGINT},
|
|
number = #{number,jdbcType=BIGINT},
|
|
|
|
|
+ lvl = #{lvl,jdbcType=INTEGER},
|
|
|
type = #{type,jdbcType=INTEGER}
|
|
type = #{type,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|