|
@@ -264,18 +264,20 @@ class sqlCollect():
|
|
@classmethod
|
|
@classmethod
|
|
def insert_user_data(cls, uid, name, account_id, channel, status):
|
|
def insert_user_data(cls, uid, name, account_id, channel, status):
|
|
insert_sql = f"""INSERT INTO machine_making_traceability (old_account_id, name, new_account_id, channel, status) values ("{uid}", "{name}","{account_id}","{channel}", {status})"""
|
|
insert_sql = f"""INSERT INTO machine_making_traceability (old_account_id, name, new_account_id, channel, status) values ("{uid}", "{name}","{account_id}","{channel}", {status})"""
|
|
- MysqlHelper.update_values(
|
|
|
|
|
|
+ res = MysqlHelper.update_values(
|
|
sql=insert_sql
|
|
sql=insert_sql
|
|
)
|
|
)
|
|
|
|
+ return res
|
|
|
|
|
|
|
|
|
|
"""相似溯源-视频号数据插入"""
|
|
"""相似溯源-视频号数据插入"""
|
|
@classmethod
|
|
@classmethod
|
|
def insert_xssy_sph_info(cls, account_user: str, traceable_user: str, traceable_user_v2: str, has_used: str, appid:Optional[str] = None, pq_id:Optional[str] = None):
|
|
def insert_xssy_sph_info(cls, account_user: str, traceable_user: str, traceable_user_v2: str, has_used: str, appid:Optional[str] = None, pq_id:Optional[str] = None):
|
|
insert_sql = f"""INSERT INTO xssy_sph (account_user, traceable_user, traceable_user_v2, pq_id, has_used, appid) values ("{account_user}", "{traceable_user}","{traceable_user_v2}","{pq_id}", {has_used},"{appid}")"""
|
|
insert_sql = f"""INSERT INTO xssy_sph (account_user, traceable_user, traceable_user_v2, pq_id, has_used, appid) values ("{account_user}", "{traceable_user}","{traceable_user_v2}","{pq_id}", {has_used},"{appid}")"""
|
|
- MysqlHelper.update_values(
|
|
|
|
|
|
+ res = MysqlHelper.update_values(
|
|
sql=insert_sql
|
|
sql=insert_sql
|
|
)
|
|
)
|
|
|
|
+ return res
|
|
|
|
|
|
"""查询该账号是否存在"""
|
|
"""查询该账号是否存在"""
|
|
@classmethod
|
|
@classmethod
|