Browse Source

数据修改

yumeng 2 năm trước cách đây
mục cha
commit
3028ce33b3

+ 0 - 2
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/KuaishouItemCollectSamplesServiceImpl.java

@@ -734,7 +734,6 @@ public class KuaishouItemCollectSamplesServiceImpl implements IKuaishouItemColle
         map.put("end", endDate);
         map.put("userList", userList);
         map.put("promoterIds", promoterIds);
-
         if ("1".equals(mediaId)) {
             map.put("startLong", Long.valueOf(startDate.replace("-","")));
             map.put("endLong", Long.valueOf(endDate.replace("-","")));
@@ -744,7 +743,6 @@ public class KuaishouItemCollectSamplesServiceImpl implements IKuaishouItemColle
         }
         List<JSONObject> list = null;
         if ("1".equals(mediaId)) {
-
             list = supplyChainService.getMonthOrderAmountBytedance(map);
         } else {
 

+ 9 - 9
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -1654,7 +1654,7 @@
         sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount',
         IFNULL(SUM(CASE WHEN sample_voucher_status = 2 THEN total_regimental_settle_amount ELSE 0 END), 0) AS
         'voucherTotalRegimentalSettleAmount'
-        from ruixuan.canal_management
+        from ruixuan.promoter_item_order_count
         where 1 = 1
         <if test="start != null and start != ''">
             and stat_date &gt;= #{start}
@@ -1729,7 +1729,7 @@
         sum(order_amount) as 'orderAmount',
         sum(regimental_promotion_amount) as 'regimentalPromotionAmount',
         sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount'
-        from ruixuan.canal_management
+        from ruixuan.promoter_item_order_count
         where 1 = 1
         <if test="start != null and start != ''">
             and stat_date &gt;= #{start}
@@ -1770,7 +1770,7 @@
         sum(order_amount) as 'orderAmount',
         sum(regimental_promotion_amount) as 'regimentalPromotionAmount',
         sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount'
-        from ruixuan.canal_management
+        from ruixuan.promoter_item_order_count
         where 1 = 1
         <if test="start != null and start != ''">
             and stat_date &gt;= #{start}
@@ -1815,7 +1815,7 @@
         sum(order_amount) as 'orderAmount',
         sum(regimental_promotion_amount) as 'regimentalPromotionAmount',
         sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount'
-        from ruixuan.canal_management
+        from ruixuan.promoter_item_order_count
         where 1 = 1
         <if test="start != null and start != ''">
             and stat_date &gt;= #{start}
@@ -1891,7 +1891,7 @@
         sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount',
         IFNULL(SUM(CASE WHEN sample_voucher_status = 2 THEN total_regimental_settle_amount ELSE 0 END), 0) AS
         'voucherTotalRegimentalSettleAmount'
-        from ruixuan.canal_management
+        from ruixuan.promoter_item_order_count
         where 1 = 1
         <if test="start != null and start != ''">
             and stat_date &gt;= #{start}
@@ -2113,7 +2113,7 @@
         round(sum(t2.regimental_promotion_amount) / 100, 2) as 'regimentalPromotionAmount',
         round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
         from promoter_bind_channel_date t1
-        left join canal_management t2
+        left join promoter_item_order_count t2
         on t1.promoter_id = t2.promoter_id and t1.stat_date = t2.stat_date
         where 1 = 1
         <if test="start != null and start != ''">
@@ -2169,7 +2169,7 @@
         round(sum(t2.regimental_promotion_amount) / 100, 2) as 'regimentalPromotionAmount',
         round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
         from promoter_bind_channel_date t1
-        left join canal_management t2
+        left join promoter_item_order_count t2
         on t1.promoter_id = t2.promoter_id and t1.stat_date = t2.stat_date
         where 1 = 1
         <if test="start != null and start != '' ">
@@ -2200,7 +2200,7 @@
         round(sum(t2.regimental_promotion_amount) / 100, 2) as 'regimentalPromotionAmount',
         round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
         from promoter_bind_channel_date t1
-        left join canal_management t2
+        left join promoter_item_order_count t2
         on t1.promoter_id = t2.promoter_id and t1.stat_date = t2.stat_date
         where 1 = 1
         <if test="start != null and start != '' ">
@@ -2240,7 +2240,7 @@
         round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
         from kuaishou_promoter t1
         left join(select *
-        from canal_management
+        from promoter_item_order_count
         where stat_date &gt;= #{bindStartDate}) t2
         on t1.promoter_id = t2.promoter_id
         where 1 = 1