...
|
...
|
@@ -22,12 +22,13 @@ |
|
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
|
<result column="skup_forbid_type" property="skupForbidType" jdbcType="VARCHAR" />
|
|
|
<result column="skup_allow_type" property="skupAllowType" jdbcType="VARCHAR" />
|
|
|
<result column="business_client" property="businessClient" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id,coupon_token,coupon_name,coupon_amount,coupon_type,coupon_num,use_num,send_num,
|
|
|
use_limit_type,use_limit_value,product_limit_type,product_limit_value,start_time,
|
|
|
end_time,status,create_time,pid,remark,skup_forbid_type,skup_allow_type
|
|
|
end_time,status,create_time,pid,remark,skup_forbid_type,skup_allow_type,business_client
|
|
|
</sql>
|
|
|
<insert id="insertOrUpdate" useGeneratedKeys="true" keyProperty="param.id">
|
|
|
insert into coupon(id,coupon_token,coupon_name,coupon_amount,coupon_type,coupon_num,use_num,send_num,
|
...
|
...
|
@@ -70,14 +71,14 @@ |
|
|
use_limit_value,
|
|
|
</if>
|
|
|
product_limit_type,
|
|
|
start_time,end_time,status,create_time,pid,remark,skup_forbid_type,skup_allow_type)
|
|
|
start_time,end_time,status,create_time,pid,remark,skup_forbid_type,skup_allow_type, business_client)
|
|
|
values(#{param.couponToken},#{param.couponName},#{param.couponAmount},#{param.couponType}
|
|
|
,#{param.couponNum},#{param.useNum},#{param.sendNum},#{param.useLimitType},
|
|
|
<if test="param.useLimitType == 2">
|
|
|
#{param.useLimitValue},
|
|
|
</if>
|
|
|
#{param.productLimitType},
|
|
|
#{param.startTime},#{param.endTime},#{param.status},#{param.createTime},#{param.pid},#{param.remark},#{param.skupForbidType},#{param.skupAllowType})
|
|
|
#{param.startTime},#{param.endTime},#{param.status},#{param.createTime},#{param.pid},#{param.remark},#{param.skupForbidType},#{param.skupAllowType},#{param.businessClient})
|
|
|
</insert>
|
|
|
<update id="updateByCouponSaveUpdateReq">
|
|
|
update coupon
|
...
|
...
|
|