...
|
...
|
@@ -12,9 +12,10 @@ |
|
|
<result column="nickname" property="nickname" jdbcType="VARCHAR" />
|
|
|
<result column="phone" property="phone" jdbcType="VARCHAR" />
|
|
|
<result column="year" property="year" jdbcType="VARCHAR" />
|
|
|
<result column="email" property="email" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
uid, order_num, buy_num, order_amount, kilo, score, beat, nickname, phone, year
|
|
|
uid, order_num, buy_num, order_amount, kilo, score, beat, nickname, phone, year,email
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -30,11 +31,11 @@ |
|
|
insert into app_year_member_bill (uid, order_num, buy_num,
|
|
|
order_amount, kilo, score,
|
|
|
beat, nickname, phone,
|
|
|
year)
|
|
|
year,email)
|
|
|
values (#{uid,jdbcType=INTEGER}, #{orderNum,jdbcType=INTEGER}, #{buyNum,jdbcType=INTEGER},
|
|
|
#{orderAmount,jdbcType=INTEGER}, #{kilo,jdbcType=INTEGER}, #{score,jdbcType=INTEGER},
|
|
|
#{beat,jdbcType=INTEGER}, #{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
|
|
|
#{year,jdbcType=VARCHAR})
|
|
|
#{year,jdbcType=VARCHAR},#{email,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.activity.dal.model.AppYearMemberBill" >
|
|
|
insert into app_year_member_bill
|
...
|
...
|
@@ -69,6 +70,9 @@ |
|
|
<if test="year != null" >
|
|
|
year,
|
|
|
</if>
|
|
|
<if test="email != null" >
|
|
|
email,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="uid != null" >
|
...
|
...
|
@@ -101,6 +105,9 @@ |
|
|
<if test="year != null" >
|
|
|
#{year,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="email != null" >
|
|
|
#{email,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.activity.dal.model.AppYearMemberBill" >
|
...
|
...
|
@@ -133,6 +140,9 @@ |
|
|
<if test="year != null" >
|
|
|
year = #{year,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="email != null" >
|
|
|
email = #{email,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
@@ -146,7 +156,8 @@ |
|
|
beat = #{beat,jdbcType=INTEGER},
|
|
|
nickname = #{nickname,jdbcType=VARCHAR},
|
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
|
year = #{year,jdbcType=VARCHAR}
|
|
|
year = #{year,jdbcType=VARCHAR},
|
|
|
email = #{email,jdbcType=VARCHAR}
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="selectByUidAndYear" resultMap="BaseResultMap">
|
...
|
...
|
|