yumeng 2 anni fa
parent
commit
38b9caf7ea

+ 1 - 7
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/agent/mapper/xml/CtopAgentAccountMapper.xml

@@ -21,13 +21,7 @@
    </sql>
     <!--获取所有账户-->
     <select id="getAllAccountId" resultType="String">
-        SELECT
-            a.account_id
-        FROM
-            ctop_agent_account a
-                LEFT JOIN ctop_user_allocation u ON a.account_id = u.account_id
-        WHERE
-            a.state = 0
+       select  account_id  from ctop_user_allocation where media_id in(1,3) and account_status = 0
     </select>
     <!-- 根据账户id修改账户状态-->
     <update id="updateAccountState">