|
@@ -16,6 +16,7 @@
|
|
|
<result column="note" jdbcType="VARCHAR" property="note" />
|
|
|
<result column="publish_count" jdbcType="INTEGER" property="publishCount" />
|
|
|
<result column="use_count" jdbcType="INTEGER" property="useCount" />
|
|
|
+ <result column="receive_count" jdbcType="INTEGER" property="receiveCount" />
|
|
|
<result column="enable_time" jdbcType="TIMESTAMP" property="enableTime" />
|
|
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
|
|
<result column="member_level" jdbcType="INTEGER" property="memberLevel" />
|
|
@@ -80,7 +81,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, type, name, platform, count, amount, per_limit, min_point, start_time, end_time,
|
|
|
- use_type, note, publish_count, use_count, enable_time, code, member_level
|
|
|
+ use_type, note, publish_count, use_count, receive_count, enable_time, code, member_level
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -120,14 +121,14 @@
|
|
|
count, amount, per_limit,
|
|
|
min_point, start_time, end_time,
|
|
|
use_type, note, publish_count,
|
|
|
- use_count, enable_time, code,
|
|
|
- member_level)
|
|
|
+ use_count, receive_count, enable_time,
|
|
|
+ code, member_level)
|
|
|
values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR},
|
|
|
#{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{perLimit,jdbcType=INTEGER},
|
|
|
#{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
|
#{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, #{publishCount,jdbcType=INTEGER},
|
|
|
- #{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, #{code,jdbcType=VARCHAR},
|
|
|
- #{memberLevel,jdbcType=INTEGER})
|
|
|
+ #{useCount,jdbcType=INTEGER}, #{receiveCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP},
|
|
|
+ #{code,jdbcType=VARCHAR}, #{memberLevel,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCoupon">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -174,6 +175,9 @@
|
|
|
<if test="useCount != null">
|
|
|
use_count,
|
|
|
</if>
|
|
|
+ <if test="receiveCount != null">
|
|
|
+ receive_count,
|
|
|
+ </if>
|
|
|
<if test="enableTime != null">
|
|
|
enable_time,
|
|
|
</if>
|
|
@@ -224,6 +228,9 @@
|
|
|
<if test="useCount != null">
|
|
|
#{useCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="receiveCount != null">
|
|
|
+ #{receiveCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="enableTime != null">
|
|
|
#{enableTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -286,6 +293,9 @@
|
|
|
<if test="record.useCount != null">
|
|
|
use_count = #{record.useCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.receiveCount != null">
|
|
|
+ receive_count = #{record.receiveCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.enableTime != null">
|
|
|
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -316,6 +326,7 @@
|
|
|
note = #{record.note,jdbcType=VARCHAR},
|
|
|
publish_count = #{record.publishCount,jdbcType=INTEGER},
|
|
|
use_count = #{record.useCount,jdbcType=INTEGER},
|
|
|
+ receive_count = #{record.receiveCount,jdbcType=INTEGER},
|
|
|
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
|
|
|
code = #{record.code,jdbcType=VARCHAR},
|
|
|
member_level = #{record.memberLevel,jdbcType=INTEGER}
|
|
@@ -365,6 +376,9 @@
|
|
|
<if test="useCount != null">
|
|
|
use_count = #{useCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="receiveCount != null">
|
|
|
+ receive_count = #{receiveCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="enableTime != null">
|
|
|
enable_time = #{enableTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -392,6 +406,7 @@
|
|
|
note = #{note,jdbcType=VARCHAR},
|
|
|
publish_count = #{publishCount,jdbcType=INTEGER},
|
|
|
use_count = #{useCount,jdbcType=INTEGER},
|
|
|
+ receive_count = #{receiveCount,jdbcType=INTEGER},
|
|
|
enable_time = #{enableTime,jdbcType=TIMESTAMP},
|
|
|
code = #{code,jdbcType=VARCHAR},
|
|
|
member_level = #{memberLevel,jdbcType=INTEGER}
|