소스 검색

供应链2。2

zhaoxian 2 년 전
부모
커밋
bfc8fc3082

+ 1 - 1
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/KuaishouPromoterServiceImpl.java

@@ -95,7 +95,7 @@ public class KuaishouPromoterServiceImpl implements IKuaishouPromoterService {
         } else {
             switch (parameter) {
                 case "avg_video_sales":
-                    parameter = "SUBSTRING_INDEX(t1.avg_video_sales,'-',1)+0";
+                    parameter = "SUBSTRING_INDEX(t1.avg_video_sales,'-',-1)+0";
                     break;
                 case "video_sales":
                     parameter = "SUBSTRING_INDEX(t1.video_sales,'-',1)+0";

+ 2 - 1
ruixuan-live/src/main/resources/mapper/isc/KuaishouPromoterMapper.xml

@@ -175,7 +175,8 @@
             t1.promoter_url as 'promoterUrl',
             t1.fans_number as 'fansNumber',
             t2.30day_gmv as 'monthDayGmv',
-            t2.30day_order_num as 'monthDayOrderNum'
+            t2.30day_order_num as 'monthDayOrderNum',
+            t2.valid_amount as 'validAmount'
             FROM
             kuaishou_promoter t1
             LEFT JOIN promoter_oerder_amount t2 on t1.promoter_id = t2.promoter_id