add workflow 客户地址信息提取,dev
This commit is contained in:
parent
326b78ef3a
commit
3e0792e49d
|
|
@ -257,7 +257,8 @@ def process_single_item(api_client, item, type, item_index, total_count):
|
|||
# item 是字典,包含 id 和 address
|
||||
inputs_data = {
|
||||
'id': f"{item.get('id', '')}",
|
||||
'address': f"{item.get('address', '')}"
|
||||
'address': f"{item.get('address', '')}",
|
||||
'city':f"{item.get('city', '')}"
|
||||
}
|
||||
|
||||
result = api_client.call_api_with_inputs(inputs_data)
|
||||
|
|
@ -319,9 +320,12 @@ def main():
|
|||
# 初始化
|
||||
db_manager = DatabaseManager(db_config)
|
||||
custom_query = """
|
||||
select dw_account as id ,address_detail as address from p99_temp.address_city
|
||||
select
|
||||
dw_account as id ,
|
||||
prov_name || '-' || city_name as city,
|
||||
address_detail as address
|
||||
from p99_temp.address_city
|
||||
where dw_account not in (select account_id from p70_ai_intelligence.agent_address_complete)
|
||||
|
||||
"""
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue