Przeglądaj źródła

[营销分析][添加][卡营销列表]

release_toaliyun_real
luozukai 7 lat temu
rodzic
commit
35c7812696
1 zmienionych plików z 8 dodań i 3 usunięć
  1. +8
    -3
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 8
- 3
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Wyświetl plik

@@ -51,7 +51,7 @@
`id`,`tenant_id`,`type`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_type`, `id`,`tenant_id`,`type`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_type`,
`valid_type`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`price`,`unit`,`remain_inventory`,`inventory`, `valid_type`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`price`,`unit`,`remain_inventory`,`inventory`,
`remark`,`status`,`create_date`,`update_date`,`business`,`support_transfer`,`subsidy_num`,`subsidy_type`, `remark`,`status`,`create_date`,`update_date`,`business`,`support_transfer`,`subsidy_num`,`subsidy_type`,
`press_limit_num`, `press_limit_hours`, `auto_refund`,subsidy_num
`press_limit_num`, `press_limit_hours`, `auto_refund`
</sql> </sql>


<sql id="dynamicWhereConditions"> <sql id="dynamicWhereConditions">
@@ -776,8 +776,13 @@
</select> </select>


<select id="findPressData" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap"> <select id="findPressData" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap">
select c.*,
(select count(wop.id) from wx_coupon wc
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 count(wop.id) from wx_coupon wc
left join wx_order wo on wo.product_id = wc.id left join wx_order wo on wo.product_id = wc.id
left join wx_order_press wop on wop.order_id = wo.id left join wx_order_press wop on wop.order_id = wo.id
where wop.first = 1 and wc.id = c.id) as press_count, where wop.first = 1 and wc.id = c.id) as press_count,


Ładowanie…
Anuluj
Zapisz