Pārlūkot izejas kodu

fix: 抽样数据只输出大陆企业

许家凯 2 gadi atpakaļ
vecāks
revīzija
22c87ca740
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      handle/pull_data.sql

+ 1 - 1
handle/pull_data.sql

@@ -14,7 +14,7 @@ FROM    (
                         WHERE   ds > 20220111
                     ) AS all_t1
         ) AS all_t2
-WHERE   all_t2.num = 1 and reg_status_std NOT LIKE '%销%'  and (name LIKE '%公司%' or name LIKE '%合伙%')
+WHERE   all_t2.num = 1 and reg_status_std NOT LIKE '%销%'  and (name LIKE '%公司%' or name LIKE '%合伙%') and company_type = 1
 )
 
 INSERT OVERWRITE TABLE out_winhc_data_analysis_pull_data PARTITION(ds='{latest_ds}')