add workflow 天润Smart-ccc工单数据,dev
This commit is contained in:
parent
dc52287cd1
commit
9101fa466b
|
@ -5,141 +5,141 @@
|
|||
delete from p10_sa.S98_S_tr_ticket_list
|
||||
;
|
||||
insert into p10_sa.S98_S_tr_ticket_list
|
||||
( id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
( id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
, etl_tx_dt )
|
||||
select
|
||||
id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
, etl_tx_dt
|
||||
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
|
||||
( id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
( id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
, etl_tx_dt )
|
||||
select
|
||||
id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
id
|
||||
, workflow_id
|
||||
, workflow_name
|
||||
, type
|
||||
, topic
|
||||
, level
|
||||
, status
|
||||
, creator_name
|
||||
, creator_id
|
||||
, creator_type
|
||||
, modifier_id
|
||||
, modifier_type
|
||||
, source
|
||||
, timeout
|
||||
, end_time
|
||||
, create_time
|
||||
, close_time
|
||||
, state_selected
|
||||
, last_reminder_time
|
||||
, reminder_count
|
||||
, customer_id
|
||||
, customer_name
|
||||
, customer_tel
|
||||
, customer_email
|
||||
, customer_address
|
||||
, customer_creator_id
|
||||
, customer_creator_name
|
||||
, customer_modifier_id
|
||||
, customer_modifier_name
|
||||
, tags
|
||||
, system_form
|
||||
, etl_tx_dt
|
||||
from p10_sa.S98_S_tr_ticket_list
|
||||
;
|
||||
|
|
|
@ -90,6 +90,7 @@ def request_data_signature_post():
|
|||
print(f'请求工单列表失败,再次请求第{i+1}次')
|
||||
time.sleep(1)
|
||||
dataReqL=requests.post(url,headers=header,params=body)
|
||||
resText = dataReqL.text
|
||||
i = i + 1
|
||||
resL=json.loads(resText)
|
||||
print(dataReqL)
|
||||
|
@ -138,6 +139,7 @@ def request_data_signature_get(id):
|
|||
print(f'请求工单详情失败,再次请求第{i+1}次')
|
||||
time.sleep(1)
|
||||
dataReqL=requests.get(url,headers={},params={})
|
||||
resText = dataReqL.text
|
||||
i = i + 1
|
||||
resD=json.loads(resText)
|
||||
return resD
|
||||
|
|
Loading…
Reference in New Issue