From aaf6aa1fc2c13e25f53cd8c5c18b002e2dfd4300 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Jul 2024 16:55:36 +0800 Subject: [PATCH] =?UTF-8?q?add=20workflow=20=E5=A4=A9=E6=B6=A6Smart-ccc?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=95=B0=E6=8D=AE,dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../smart_ccc_ticket/获取工单记录列表/tickets_list_feign.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/workflow/TK_Cust/smart_ccc_ticket/获取工单记录列表/tickets_list_feign.py b/dev/workflow/TK_Cust/smart_ccc_ticket/获取工单记录列表/tickets_list_feign.py index 7e5946a..7383041 100644 --- a/dev/workflow/TK_Cust/smart_ccc_ticket/获取工单记录列表/tickets_list_feign.py +++ b/dev/workflow/TK_Cust/smart_ccc_ticket/获取工单记录列表/tickets_list_feign.py @@ -153,7 +153,7 @@ def load_detail_data_to_db(ids, dataList): json_object = json.dumps(dataList) idstr = ','.join(ids) cur=conn.cursor() - sql="update data_api.cc_details_ids_exp set is_loaded = '1' where api_id = '6a977523d60f46788e6004549027bb8e' and id in (%s); INSERT INTO data_api.cc_ticket_details (id,api_id,data,total_num,is_loaded,status,request_tm,execute_tm,remark) values (%s,%s,%s,%s,'0','0',current_timestamp(0),current_timestamp(0),'')" + sql="update data_api.cc_details_ids_exp set is_loaded = '1' where api_id = '6a977523d60f46788e6004549027bb8e' and id in (%s); update data_api.cc_ticket_details set is_loaded = '1' where api_id = '6a977523d60f46788e6004549027bb8e'; INSERT INTO data_api.cc_ticket_details (id,api_id,data,total_num,is_loaded,status,request_tm,execute_tm,remark) values (%s,%s,%s,%s,'0','0',current_timestamp(0),current_timestamp(0),'')" cur.execute(sql,[idstr,dataId,'6a977523d60f46788e6004549027bb8e', json_object, total]) conn.commit() cur.close()