yumeng 1 vuosi sitten
vanhempi
commit
8de77f1a54

+ 2 - 2
ruixuan-live/src/main/resources/mapper/bytedance/BytedancePromoterOrderListMapper.xml

@@ -276,11 +276,11 @@
         sum(colonel_real_commission)/100 AS 'totalRegimentalSettleAmount',
         IFNULL(SUM(CASE WHEN sample_voucher_status = 2 THEN colonel_real_commission ELSE 0 END)/100, 0) AS
         'voucherTotalRegimentalSettleAmount'
-        FROM ruixuan.bytedance_promoter_order_list t
+        FROM bytedance_promoter_order_list t
         LEFT JOIN (
         SELECT author_bind_user_id AS 'collectSampleId',
         sum(CASE WHEN flow_point != 'REFUND' THEN 1 ELSE 0 END) AS 'validOrderNUm'
-        FROM ruixuan.bytedance_promoter_order_list
+        FROM bytedance_promoter_order_list
         WHERE author_bind_user_id is not null
         <if test="start != null and start != ''">
             and pay_success_time &gt;= #{start}

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

@@ -743,7 +743,7 @@
           AND t2.valid_order_num >= 50
     </select>
     <select id="getStatusStringByCourierNumbe" resultType="java.lang.String" parameterType="java.lang.String">
-        select  collect_sample_desc  from ruixuan.kuaishou_item_collect_samples where  courier_number = #{num} limit 1
+        select  collect_sample_desc  from kuaishou_item_collect_samples where  courier_number = #{num} limit 1
     </select>
     <select id="getBytedanceBigDataAnalysis" resultType="com.alibaba.fastjson.JSONObject">
         select

+ 3 - 3
ruixuan-live/src/main/resources/mapper/isc/KuaishouRuleSettlementDataMapper.xml

@@ -452,8 +452,8 @@
                    ifnull(sum(t1.yesterday_valid_order_num), 0) as 'yesterdayValidOrderNum',
                    t1.stat_date                                 as 'statDate',
                    round(t2.item_price / 100, 2)                as 'itemPrice'
-            from ruixuan.kuaishou_rule_order_data t1
-                     left join ruixuan.kuaishou_item_list t2 on t1.item_id = t2.item_id
+            from kuaishou_rule_order_data t1
+                     left join kuaishou_item_list t2 on t1.item_id = t2.item_id
             where t1.item_id  = 20789864366937
             and t1.promoter_id = 3495457926
             and t1.stat_date = 20230911
@@ -461,7 +461,7 @@
             group by t1.relate_id, t1.promoter_id) t
       where t.itemPrice >= 6
       order by t.validOrderNum desc) t
-         left join ruixuan.kuaishou_settlement_rules tt
+         left join kuaishou_settlement_rules tt
                    on t.ruleId = tt.id
     </select>
 

+ 6 - 6
ruixuan-live/src/main/resources/mapper/jiaoyang/JiaoYangReportMapper.xml

@@ -668,18 +668,18 @@
         sum(case when order_status != 80 then 1 else 0 end) as 'validOrderNum',
         round(sum(mcn_promotion_amount) / 100, 2) as 'mcnPromotionAmount',
         round(sum(mcn_promotion_amount) / sum(pay_amount) * 100, 2) as 'grossMargin'
-        from ruixuan.jy_order_list t1
+        from jy_order_list t1
         where t1.stat_date = #{date}
         <if test='dataType == "1" '>
             and t1.clip_user_id in (
-            select promoter_id from ruixuan.jy_kuaishou_promoter
+            select promoter_id from jy_kuaishou_promoter
             where `type` = 1
             group by promoter_id
             )
         </if>
         <if test=' dataType == "2" '>
             and t1.clip_user_id not in (
-            select promoter_id from ruixuan.jy_kuaishou_promoter
+            select promoter_id from jy_kuaishou_promoter
             where `type` = 1
             group by promoter_id
             )
@@ -692,18 +692,18 @@
         sum(case when order_status != 80 then 1 else 0 end) as 'lastValidOrderNum',
         round(sum(mcn_promotion_amount) / 100, 2) as 'lastMcnPromotionAmount',
         round(sum(mcn_promotion_amount) / sum(pay_amount) * 100, 2) as 'lastGrossMargin'
-        from ruixuan.jy_order_list t1
+        from jy_order_list t1
         where t1.stat_date = #{lastDate}
         <if test='dataType == "1"'>
             and t1.clip_user_id in (
-            select promoter_id from ruixuan.jy_kuaishou_promoter
+            select promoter_id from jy_kuaishou_promoter
             where `type` = 1
             group by promoter_id
             )
         </if>
         <if test='dataType == "2" '>
             and t1.clip_user_id not in (
-            select promoter_id from ruixuan.jy_kuaishou_promoter
+            select promoter_id from jy_kuaishou_promoter
             where `type` = 1
             group by promoter_id
             )

+ 1 - 1
ruixuan-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -387,7 +387,7 @@ on t1.dept_id = t2.dept_id
 where t1.user_id = #{userId}
     </select>
     <select id="getUserNameById" resultType="java.lang.String" parameterType="java.lang.Long">
-        select nick_name  from ruixuan.sys_user where user_id
+        select nick_name  from sys_user where user_id
                                                   = #{userId};
     </select>