|
|
|
@@ -19,6 +19,7 @@ |
|
|
|
<result column="sale_price" jdbcType="INTEGER" property="salePrice"/> |
|
|
|
<result column="freight_price" jdbcType="INTEGER" property="freightPrice"/> |
|
|
|
<result column="use_price" jdbcType="INTEGER" property="usePrice"/> |
|
|
|
<result column="use_limit_frequency" jdbcType="INTEGER" property="useLimitFrequency"/> |
|
|
|
<result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> |
|
|
|
<result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> |
|
|
|
<result column="send_type" jdbcType="INTEGER" property="sendType"/> |
|
|
|
@@ -97,6 +98,7 @@ |
|
|
|
<result column="sale_price" jdbcType="INTEGER" property="salePrice"/> |
|
|
|
<result column="freight_price" jdbcType="INTEGER" property="freightPrice"/> |
|
|
|
<result column="use_price" jdbcType="INTEGER" property="usePrice"/> |
|
|
|
<result column="use_limit_frequency" jdbcType="INTEGER" property="useLimitFrequency"/> |
|
|
|
<result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> |
|
|
|
<result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> |
|
|
|
<result column="send_type" jdbcType="INTEGER" property="sendType"/> |
|
|
|
@@ -140,7 +142,7 @@ |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
c.`id`,c.`coupon_id`,c.`version`,c.`tenant_id`,c.`parent_tenant_id`,c.`make_merchant_id`,c.`brand`,c.`type`,c.`cover_img`,c.`cover_picture`,c.`detail_picture`, |
|
|
|
c.`title`,c.`sub_title`,c.`item_group`,c.`sale_price`,c.`freight_price`,c.`use_price`,c.`use_limit_rule`,c.`use_limit_quantity`,c.`send_type`,c.`create_coupon_password_finished`, |
|
|
|
c.`title`,c.`sub_title`,c.`item_group`,c.`sale_price`,c.`freight_price`,c.`use_price`,c.`use_limit_frequency`,c.`use_limit_rule`,c.`use_limit_quantity`,c.`send_type`,c.`create_coupon_password_finished`, |
|
|
|
c.`sold_start_time`,c.`sold_end_time`,c.`valid_type`,c.`valid_start_date`,c.`valid_end_date`,c.`valid_days`,c.`detail`,c.`price`,c.tail_price,c.orig_price,c.`unit`,c.`remain_inventory`,c.`inventory`, |
|
|
|
c.`remark`,c.`status`,c.`create_date`,c.`update_date`,c.`business`,c.`sub_business`,c.`support_transfer`,c.`subsidy_num`,c.`subsidy_type`,c.`is_after_set_price`,c.`card_score_rule`, |
|
|
|
c.`press_limit_num`, c.`press_limit_hours`,c.`press_pay_reduce_stock`,c.`press_support_is_new`, c.`auto_refund`,c.`credit_price`,c.`credit_refund`,c.`put_apply_status`,c.`stock_apply_status`,c.`cancle_apply_status`, |
|
|
|
@@ -197,6 +199,10 @@ |
|
|
|
and `use_price` = #{usePrice} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != useLimitFrequency "> |
|
|
|
and `use_limit_frequency` = #{useLimitFrequency} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != useLimitRule "> |
|
|
|
and `use_limit_rule` = #{useLimitRule} |
|
|
|
</if> |
|
|
|
@@ -449,7 +455,7 @@ |
|
|
|
|
|
|
|
<select id="findCouponCVoDetail" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select c.id,c.coupon_id,c.version,c.type,c.cover_img,c.cover_picture,c.detail_picture,c.title,c.sub_title,c.item_group,c.sale_price,c.use_price, |
|
|
|
c.use_limit_rule,c.use_limit_quantity,c.send_type,c.sold_start_time,c.sold_end_time,c.valid_type,c.valid_start_date,c.valid_end_date, |
|
|
|
c.use_limit_frequency,c.use_limit_rule,c.use_limit_quantity,c.send_type,c.sold_start_time,c.sold_end_time,c.valid_type,c.valid_start_date,c.valid_end_date, |
|
|
|
c.valid_days,c.detail,c.price,c.tail_price,c.orig_price,c.unit,c.remain_inventory,c.inventory,c.remark,c.status,c.is_after_set_price,c.card_score_rule, |
|
|
|
c.create_date,c.update_date,c.business,c.sub_business,c.support_transfer,c.press_limit_num, c.auto_refund,c.credit_price,c.conditions,c.content_type |
|
|
|
from wx_coupon c where c.`version` = 0 and c.id = #{id} and c.`tenant_id` = #{tenantId} |
|
|
|
@@ -502,7 +508,7 @@ |
|
|
|
|
|
|
|
<select id="findSendCouponList" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
c.id,c.coupon_id,c.version,c.remain_inventory, c.use_limit_rule,c.use_limit_quantity, c.inventory, c.valid_start_date, c.valid_end_date,c.valid_type,c.valid_days |
|
|
|
c.id,c.coupon_id,c.version,c.remain_inventory, c.use_limit_frequency,c.use_limit_rule,c.use_limit_quantity, c.inventory, c.valid_start_date, c.valid_end_date,c.valid_type,c.valid_days |
|
|
|
from wx_coupon c |
|
|
|
where c.`version` = 0 and c.`tenant_id` = #{tenantId} |
|
|
|
<if test=" null != ids "> |
|
|
|
@@ -580,6 +586,10 @@ |
|
|
|
<if test=" null != usePrice "> |
|
|
|
and c.`use_price` = #{usePrice} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != useLimitFrequency "> |
|
|
|
and c.`use_limit_frequency` = #{useLimitFrequency} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != useLimitRule "> |
|
|
|
and c.`use_limit_rule` = #{useLimitRule} |
|
|
|
@@ -847,6 +857,7 @@ |
|
|
|
<result column="support_transfer" jdbcType="INTEGER" property="supportTransfer"/> |
|
|
|
<result column="subsidy_type" jdbcType="INTEGER" property="subsidyType"/> |
|
|
|
<result column="subsidy_num" jdbcType="INTEGER" property="subsidyNum"/> |
|
|
|
<result column="use_limit_frequency" jdbcType="INTEGER" property="useLimitFrequency"/> |
|
|
|
<result column="press_limit_num" jdbcType="INTEGER" property="pressLimitNum"/> |
|
|
|
<result column="press_limit_hours" jdbcType="INTEGER" property="pressLimitHours"/> |
|
|
|
<result column="press_pay_reduce_stock" jdbcType="INTEGER" property="pressPayReduceStock"/> |
|
|
|
@@ -879,6 +890,7 @@ |
|
|
|
<result column="sale_price" jdbcType="INTEGER" property="salePrice"/> |
|
|
|
<result column="freight_price" jdbcType="INTEGER" property="freightPrice"/> |
|
|
|
<result column="use_price" jdbcType="INTEGER" property="usePrice"/> |
|
|
|
<result column="use_limit_frequency" jdbcType="INTEGER" property="useLimitFrequency"/> |
|
|
|
<result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> |
|
|
|
<result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> |
|
|
|
<result column="send_type" jdbcType="INTEGER" property="sendType"/> |
|
|
|
@@ -1412,7 +1424,7 @@ |
|
|
|
wc.tenant_id,wc.parent_tenant_id,wc.`type`,wc.`cover_img`,wc.`cover_picture`,wc.`detail_picture`,wc.`title`,wc.`sub_title`,wc.`item_group`,wc.`sale_price`,wc.`freight_price`,wc.`use_price`,wc.`use_limit_rule`,wc.`use_limit_quantity`,wc.`send_type`, |
|
|
|
wc.sold_start_time,wc.sold_end_time,wc.`valid_type`,wc.`valid_start_date`,wc.`valid_end_date`,wc.`valid_days`,wc.`detail`,wc.`price`,wc.tail_price,wc.orig_price,wc.`unit`,wc.`remain_inventory`,wc.`inventory`, |
|
|
|
wc.`remark`,wc.`status`,wc.`create_date`,wc.`update_date`,wc.`business`,wc.`sub_business`,wc.`support_transfer`,wc.`subsidy_num`,wc.`subsidy_type`, |
|
|
|
wc.`press_limit_num`, wc.`press_limit_hours`,wc.`press_pay_reduce_stock`,wc.`press_support_is_new`, wc.`auto_refund`,wc.`credit_price`,wc.`credit_refund`,wc.`conditions`, |
|
|
|
wc.`use_limit_frequency`,wc.`press_limit_num`, wc.`press_limit_hours`,wc.`press_pay_reduce_stock`,wc.`press_support_is_new`, wc.`auto_refund`,wc.`credit_price`,wc.`credit_refund`,wc.`conditions`, |
|
|
|
wc.title as couponName,wc.`cover_img` as couponPic,wc.`cover_picture` as couponPicture,wc.`detail_picture` as detailPicture |
|
|
|
from wx_coupon_channel ct |
|
|
|
left join wx_coupon wc on wc.id = ct.coupon_id |
|
|
|
@@ -1441,7 +1453,7 @@ |
|
|
|
|
|
|
|
<select id="newfindCList" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select id,coupon_id,version,remain_inventory,inventory,cover_img,cover_picture,detail_picture,title,sub_title,item_group,sale_price,use_price,price,tail_price, |
|
|
|
orig_price,unit,use_limit_rule,use_limit_quantity,send_type,support_transfer,press_limit_num,auto_refund, |
|
|
|
orig_price,unit,use_limit_frequency,use_limit_rule,use_limit_quantity,send_type,support_transfer,press_limit_num,auto_refund, |
|
|
|
conditions,valid_type,sold_start_time,sold_end_time,valid_start_date,valid_end_date,valid_days,credit_price, |
|
|
|
remark,content_type,source_type,merchant_type |
|
|
|
from wx_coupon |
|
|
|
|