yumeng преди 2 години
родител
ревизия
38b9caf7ea
променени са 1 файла, в които са добавени 1 реда и са изтрити 7 реда
  1. 1 7
      module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/agent/mapper/xml/CtopAgentAccountMapper.xml

+ 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">