renyupeng 2 年之前
父节点
当前提交
3fbd026f6a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Apietl/task/AppKuaishouAccountBaseInfoDsD.py

+ 2 - 1
Apietl/task/AppKuaishouAccountBaseInfoDsD.py

@@ -158,7 +158,8 @@ LEFT JOIN `jeecg-boot`.sys_depart part  ON dep.dep_id=part.id
 WHERE
 cua.account_id IS NOT NULL and cua.account_status=0 and cua.media_id=2
 ) bei
-ON t1.account_id = bei.account_id  where   bei.account_id is not null) m;
+ON t1.account_id = bei.account_id  where   bei.account_id is not null) m
+group by account_id;
 
    """.format(date_time=self.date_time)
             print(sql)