소스 검색

人群包2.0bug修复

zhaoxian 4 년 전
부모
커밋
622182d8aa

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/mapper/xml/KuaishouPopulationPackageRelMapper.xml

@@ -68,7 +68,8 @@
                (SELECT COUNT(1)
                 FROM ctop_kuaishou_population_package_rel t
                 where t.account_id = t1.account_id
-                  AND t.data_status = 1) as 'populationCount'
+                  AND t.data_status = 1
+                  AND (t.`status`=0 OR t.`status`=1 or t.`status`=3 or t.`status`=4)) as 'populationCount'
         FROM ctop_kuaishou_population_package_rel t1
                  LEFT JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
         where t1.pop_id = #{id}