|
@@ -100,17 +100,18 @@ def get_publish_account_from_aigc():
|
|
|
t3.create_timestamp,
|
|
|
t4.service_type_info,
|
|
|
t4.verify_type_info,
|
|
|
- t3.id
|
|
|
+ t3.id,
|
|
|
+ group_concat(distinct t5.remark) as account_remark
|
|
|
FROM
|
|
|
publish_plan t1
|
|
|
JOIN publish_plan_account t2 ON t1.id = t2.plan_id
|
|
|
JOIN publish_account t3 ON t2.account_id = t3.id
|
|
|
LEFT JOIN publish_account_wx_type t4 on t3.id = t4.account_id
|
|
|
+ LEFT JOIN publish_account_remark t5 on t3.id = t5.publish_account_id
|
|
|
WHERE
|
|
|
t1.plan_status = 1
|
|
|
AND t3.channel = 5
|
|
|
- GROUP BY t3.id
|
|
|
- ORDER BY t3.create_timestamp DESC
|
|
|
+ GROUP BY t3.id;
|
|
|
"""
|
|
|
info_tuple = db.select(sql)
|
|
|
info_list = [
|
|
@@ -122,7 +123,7 @@ def get_publish_account_from_aigc():
|
|
|
"account_type": line[4],
|
|
|
"account_auth": line[5],
|
|
|
"account_id": line[6]
|
|
|
- } for line in info_tuple
|
|
|
+ } for line in info_tuple if '自动回复' not in str(line[7])
|
|
|
]
|
|
|
return info_list
|
|
|
|