소스 검색

人群包功能开发,相关账户数量添加非空条件

zhaoxian 4 년 전
부모
커밋
01f207d578
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/mapper/xml/KuaishouCrowdPackMapper.xml

+ 4 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/mapper/xml/KuaishouCrowdPackMapper.xml

@@ -251,6 +251,8 @@
                        INNER JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
                        INNER JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
               where orientation_id is not null
               where orientation_id is not null
                 AND signature = #{signature}
                 AND signature = #{signature}
+                AND signature is not NULL
+                AND data_status = 1
               GROUP BY project_id) t
               GROUP BY project_id) t
     </select>
     </select>
     <select id="queryAccountCount" resultType="java.lang.Integer">
     <select id="queryAccountCount" resultType="java.lang.Integer">
@@ -259,6 +261,8 @@
                  SELECT account_id
                  SELECT account_id
                  FROM ctop_kuaishou_crowd_package
                  FROM ctop_kuaishou_crowd_package
                  WHERE signature = #{signature}
                  WHERE signature = #{signature}
+                   AND signature is not NULL
+                   AND data_status = 1
                  GROUP BY account_id) t
                  GROUP BY account_id) t
     </select>
     </select>