|
@@ -1485,8 +1485,8 @@ def fixDoc_to_queue_init(filename=""):
|
|
|
conn = getConnection_oracle()
|
|
|
cursor = conn.cursor()
|
|
|
_count = 0
|
|
|
- for uuid,tablename,_exists in zip(df["uuid"],df["tablename"],df["exists"]):
|
|
|
- if _exists==0:
|
|
|
+ for uuid,tablename,_exists,_toolong in zip(df["uuid"],df["tablename"],df["exists"],df["tolong"]):
|
|
|
+ if _exists==0 and _toolong==0:
|
|
|
_count += 1
|
|
|
_source = str(tablename).replace("_TEMP","")
|
|
|
sql = " insert into %s(%s) select %s from %s where id='%s' "%(tablename,row_name,row_name,_source,uuid)
|
|
@@ -1503,4 +1503,4 @@ if __name__ == '__main__':
|
|
|
# de.start_flow_extract()
|
|
|
# fixDoc_to_queue_extract()
|
|
|
# check_data_synchronization()
|
|
|
- fixDoc_to_queue_init(filename="C:\\Users\\Administrator\\Desktop\\flow_init_2023-02-03.log_check.xlsx")
|
|
|
+ fixDoc_to_queue_init(filename="C:\\Users\\Administrator\\Desktop\\flow_init_2023-02-07.xlsx")
|