From f29f27b07096bdf95a2c6c07f7764a2cf781ade9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 7 Feb 2025 17:18: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 | 4 +++- 1 file changed, 3 insertions(+), 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 6e26e39..56a104a 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 @@ -61,6 +61,7 @@ def build_query_string(params): ) for k, v in sorted_params.items()) return query_string +current_end_time = formatted2_previous_hour(0) def request_data_signature_post(offset, pageSize): print(f'开始请求工单列表数据:{formatted2_previous_hour(0)}') @@ -80,7 +81,7 @@ def request_data_signature_post(offset, pageSize): print(f'url: {url}') # body={'endTime':formatted2_previous_hour(0),'startTime':'2024-01-01 00:00:00'} - body={'endTime':formatted2_previous_hour(0),'startTime':'1900-01-01 00:00:00','updateTimeStart':formatted2_previous_hour(1),'updateTimeEnd':formatted2_previous_hour(0)} + body={'endTime':formatted2_previous_hour(0),'startTime':'1900-01-01 00:00:00','updateTimeStart':formatted2_previous_hour(1),'updateTimeEnd':current_end_time} jsonData = json.dumps(body) print(f'body: {jsonData}') dataReqL=requests.post(url,headers=header,data=jsonData) @@ -181,6 +182,7 @@ if __name__ == "__main__": print(f'{formatted2_previous_hour(0)}开始请求工单信息') offset = 0 pageSize = 100 + current_end_time = formatted2_previous_hour(0) resL = request_data_signature_post(offset,pageSize) print(resL) if 'error' in resL: