Bläddra i källkod

Merge remote-tracking branch 'origin/master'

yumeng 2 år sedan
förälder
incheckning
35be57b015
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

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

@@ -557,7 +557,7 @@
         sum(case when flow_point != 'REFUND' then 1 else 0 end) as 'validOrderNUm',
         round(sum(case when flow_point != 'REFUND' then 1 else 0 end) / count(order_id),4) as 'validRadio'
         from bytedance_order_list
-        where 1= 1
+        where author_short_id is not null
         <if test='promoterIds != null and promoterIds.size() > 0'>
             AND author_short_id IN
             <foreach collection="promoterIds" item="item" separator=","
@@ -626,7 +626,7 @@
         sum(case when flow_point != 'REFUND' then 1 else 0 end) as 'validOrderNUm',
         round(sum(case when flow_point != 'REFUND' then 1 else 0 end) / count(order_id),4) as 'validRadio'
         from bytedance_order_list
-        where 1= 1
+        where  author_short_id is not null
         <if test="start != null and start != ''">
             and pay_success_time &gt;= #{start}
         </if>