数据同步
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
985B

  1. [server]
  2. #host = "10.180.4.88"
  3. host = "127.0.0.1"
  4. port = 9090
  5. [client]
  6. # 定时任务配置
  7. interval_seconds = 3600 # 每隔多少秒执行一次
  8. max_retries = 3
  9. read_timeout_secs = 10
  10. write_timeout_secs = 10
  11. retry_delay_secs = 2
  12. [database]
  13. host = "10.180.4.100"
  14. port = 5432
  15. name = "Auseft_RL_Web"
  16. user = "postgres"
  17. password = "Auseft@2025qwer"
  18. # 要同步的表配置
  19. [[tables]]
  20. name = "erp_shipping_plan"
  21. query = "SELECT id, cust_id, material_id, plan_type, plan_start_date, plan_end_date, plan_days, plan_quantity::text as plan_quantity, through_put::text as through_put, calorific_value::text as calorific_value, sulfur_content::text as sulfur_content, transport_vehicles, sample_code, batch_code, update_by, update_time, review, review_by, review_date, cancel, cancel_by, cancel_time, remarks, plan_number, order_number, warehouse_id, order_type, cust_name, material_name, plan_name, warehouse_name FROM public.erp_shipping_plan"
  22. incremental = false
  23. key_field = "UpdateTime"