|
|
|
@@ -776,12 +776,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findPressData" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
c.`id`,c.`tenant_id`,c.`type`,c.`cover_img`,c.`title`,c.`sub_title`,c.sale_price/100,c.`use_price`,c.`use_limit_quantity`,c.`send_type`, |
|
|
|
c.`valid_type`,c.`valid_start_date`,c.`valid_end_date`,c.`valid_days`,c.`detail`,c.price/100,c.`unit`,c.`remain_inventory`,c.`inventory`, |
|
|
|
c.`remark`,c.`status`,c.`create_date`,c.`update_date`,c.`business`,c.`support_transfer`,c.`subsidy_num`,c.`subsidy_type`, |
|
|
|
c.`press_limit_num`, c.`press_limit_hours`, c.`auto_refund` |
|
|
|
|
|
|
|
select c.* |
|
|
|
,(select count(wop.id) from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
left join wx_order_press wop on wop.order_id = wo.id |
|
|
|
|