add workflow 天润Smart-ccc工单数据,dev

This commit is contained in:
root 2024-07-02 16:17:04 +08:00
parent dc52287cd1
commit 9101fa466b
2 changed files with 127 additions and 125 deletions

View File

@ -5,141 +5,141 @@
delete from p10_sa.S98_S_tr_ticket_list delete from p10_sa.S98_S_tr_ticket_list
; ;
insert into p10_sa.S98_S_tr_ticket_list insert into p10_sa.S98_S_tr_ticket_list
( id ( id
, workflow_id , workflow_id
, workflow_name , workflow_name
, type , type
, topic , topic
, level , level
, status , status
, creator_name , creator_name
, creator_id , creator_id
, creator_type , creator_type
, modifier_id , modifier_id
, modifier_type , modifier_type
, source , source
, timeout , timeout
, end_time , end_time
, create_time , create_time
, close_time , close_time
, state_selected , state_selected
, last_reminder_time , last_reminder_time
, reminder_count , reminder_count
, customer_id , customer_id
, customer_name , customer_name
, customer_tel , customer_tel
, customer_email , customer_email
, customer_address , customer_address
, customer_creator_id , customer_creator_id
, customer_creator_name , customer_creator_name
, customer_modifier_id , customer_modifier_id
, customer_modifier_name , customer_modifier_name
, tags , tags
, system_form , system_form
, etl_tx_dt ) , etl_tx_dt )
select select
id id
, workflow_id , workflow_id
, workflow_name , workflow_name
, type , type
, topic , topic
, level , level
, status , status
, creator_name , creator_name
, creator_id , creator_id
, creator_type , creator_type
, modifier_id , modifier_id
, modifier_type , modifier_type
, source , source
, timeout , timeout
, end_time , end_time
, create_time , create_time
, close_time , close_time
, state_selected , state_selected
, last_reminder_time , last_reminder_time
, reminder_count , reminder_count
, customer_id , customer_id
, customer_name , customer_name
, customer_tel , customer_tel
, customer_email , customer_email
, customer_address , customer_address
, customer_creator_id , customer_creator_id
, customer_creator_name , customer_creator_name
, customer_modifier_id , customer_modifier_id
, customer_modifier_name , customer_modifier_name
, tags , tags
, system_form , system_form
, etl_tx_dt , etl_tx_dt
from p00_tal.S98_S_tr_ticket_list from p00_tal.S98_S_tr_ticket_list
; ;
delete from p12_sfull.S98_S_tr_ticket_list delete from p12_sfull.S98_S_tr_ticket_list where id in (select id from p10_sa.S98_S_tr_ticket_list)
; ;
; ;
insert into p12_sfull.S98_S_tr_ticket_list insert into p12_sfull.S98_S_tr_ticket_list
( id ( id
, workflow_id , workflow_id
, workflow_name , workflow_name
, type , type
, topic , topic
, level , level
, status , status
, creator_name , creator_name
, creator_id , creator_id
, creator_type , creator_type
, modifier_id , modifier_id
, modifier_type , modifier_type
, source , source
, timeout , timeout
, end_time , end_time
, create_time , create_time
, close_time , close_time
, state_selected , state_selected
, last_reminder_time , last_reminder_time
, reminder_count , reminder_count
, customer_id , customer_id
, customer_name , customer_name
, customer_tel , customer_tel
, customer_email , customer_email
, customer_address , customer_address
, customer_creator_id , customer_creator_id
, customer_creator_name , customer_creator_name
, customer_modifier_id , customer_modifier_id
, customer_modifier_name , customer_modifier_name
, tags , tags
, system_form , system_form
, etl_tx_dt ) , etl_tx_dt )
select select
id id
, workflow_id , workflow_id
, workflow_name , workflow_name
, type , type
, topic , topic
, level , level
, status , status
, creator_name , creator_name
, creator_id , creator_id
, creator_type , creator_type
, modifier_id , modifier_id
, modifier_type , modifier_type
, source , source
, timeout , timeout
, end_time , end_time
, create_time , create_time
, close_time , close_time
, state_selected , state_selected
, last_reminder_time , last_reminder_time
, reminder_count , reminder_count
, customer_id , customer_id
, customer_name , customer_name
, customer_tel , customer_tel
, customer_email , customer_email
, customer_address , customer_address
, customer_creator_id , customer_creator_id
, customer_creator_name , customer_creator_name
, customer_modifier_id , customer_modifier_id
, customer_modifier_name , customer_modifier_name
, tags , tags
, system_form , system_form
, etl_tx_dt , etl_tx_dt
from p10_sa.S98_S_tr_ticket_list from p10_sa.S98_S_tr_ticket_list
; ;

View File

@ -90,6 +90,7 @@ def request_data_signature_post():
print(f'请求工单列表失败,再次请求第{i+1}') print(f'请求工单列表失败,再次请求第{i+1}')
time.sleep(1) time.sleep(1)
dataReqL=requests.post(url,headers=header,params=body) dataReqL=requests.post(url,headers=header,params=body)
resText = dataReqL.text
i = i + 1 i = i + 1
resL=json.loads(resText) resL=json.loads(resText)
print(dataReqL) print(dataReqL)
@ -138,6 +139,7 @@ def request_data_signature_get(id):
print(f'请求工单详情失败,再次请求第{i+1}') print(f'请求工单详情失败,再次请求第{i+1}')
time.sleep(1) time.sleep(1)
dataReqL=requests.get(url,headers={},params={}) dataReqL=requests.get(url,headers={},params={})
resText = dataReqL.text
i = i + 1 i = i + 1
resD=json.loads(resText) resD=json.loads(resText)
return resD return resD