SYNC JOB BUILDER

Chỉnh sửa sync job

Hệ thống sẽ đọc metadata nguồn và tự tạo mapping SQL Server khi lưu.

Quay lại
1

Thông tin job

Mã job là duy nhất trong hệ thống.

2

Nguồn dữ liệu

Table mode được khuyến nghị; custom SQL chỉ chấp nhận một câu SELECT.

3

Đích và incremental

Checkpoint dùng watermark + key; overlap đọc lùi để tránh bỏ sót.

Đang kiểm tra SQL Server đích...
Chọn bảng đã có hoặc nhập tên mới; bảng/cột còn thiếu sẽ được tạo theo nguồn khi chạy job.
Chọn cột thời gian cập nhật có thật ở nguồn.
Không có cột xóa mềm thì để trống.
4

Lịch chạy

Cron chuẩn 5 thành phần, mặc định chạy mỗi giờ.

Ví dụ: */15 * * * * mỗi 15 phút.
✓

Mapping hiện tại

Sẽ được cập nhật lại theo metadata khi lưu.

id → id int customer_id → customer_id int stock_lot_id → stock_lot_id int priority_id → priority_id int step_id → step_id int user_id → user_id int color → color int ticket_type_id → ticket_type_id int assigned_user_id → assigned_user_id int state_id → state_id int branch → branch int department_id → department_id int workflow_id → workflow_id int saleperson_id → saleperson_id int product_id → product_id int parent_id → parent_id int approved_by → approved_by int next_step_assigned_user_id → next_step_assigned_user_id int io_range_id → io_range_id int total_error_days → total_error_days int ticket_rating → ticket_rating int create_uid → create_uid int write_uid → write_uid int uuid → uuid nvarchar name → name nvarchar create_source → create_source nvarchar name_sequence → name_sequence nvarchar customer_contact_name → customer_contact_name nvarchar customer_company_name → customer_company_name nvarchar customer_phone → customer_phone nvarchar customer_email → customer_email nvarchar customer_address → customer_address nvarchar owner_address → owner_address nvarchar service_action → service_action nvarchar customer_rating → customer_rating nvarchar review → review nvarchar status → status nvarchar ticket_source → ticket_source nvarchar wf_external_id → wf_external_id nvarchar sale_order_feedback → sale_order_feedback nvarchar replace_serial_number → replace_serial_number nvarchar delivery_address → delivery_address nvarchar require_materials → require_materials nvarchar require_on_site_installation → require_on_site_installation nvarchar warranty_service_type → warranty_service_type nvarchar status_after_repair → status_after_repair nvarchar status_before_repair → status_before_repair nvarchar product_error_description → product_error_description nvarchar product_warranty_status → product_warranty_status nvarchar request_type → request_type nvarchar origin_sale_order → origin_sale_order nvarchar install_address → install_address nvarchar survey_type → survey_type nvarchar address_onsite_survey → address_onsite_survey nvarchar reception_project_link → reception_project_link nvarchar survey_result_link → survey_result_link nvarchar survey_branch → survey_branch nvarchar require_technical_solution_design → require_technical_solution_design nvarchar check_is_approved_survey → check_is_approved_survey nvarchar task_type → task_type nvarchar product_brand → product_brand nvarchar product_line → product_line nvarchar technical_solution_link → technical_solution_link nvarchar materials_supplier → materials_supplier nvarchar implementer → implementer nvarchar implementation_address_reality → implementation_address_reality nvarchar delivery_solution_address → delivery_solution_address nvarchar need_approval → need_approval nvarchar project_complexity → project_complexity nvarchar technical_solution_approval_multiplier → technical_solution_approval_multiplier nvarchar check_is_approved_techical_solution → check_is_approved_techical_solution nvarchar quotation_task_link → quotation_task_link nvarchar quotation_approval_result → quotation_approval_result nvarchar quotation_reject_reason → quotation_reject_reason nvarchar quotation_reject_reason_other → quotation_reject_reason_other nvarchar expected_implementation_address → expected_implementation_address nvarchar implementation_result → implementation_result nvarchar sap_so_status → sap_so_status nvarchar quotation_expected_date → quotation_expected_date date complete_expected_date → complete_expected_date date delivery_expected_date → delivery_expected_date date installation_expected_date → installation_expected_date date subject → subject nvarchar description → description nvarchar request_return_reason → request_return_reason nvarchar ticket_note → ticket_note nvarchar reject_reason → reject_reason nvarchar on_hold_reason → on_hold_reason nvarchar sale_order_feedback_comment → sale_order_feedback_comment nvarchar sap_dxvt_order_number → sap_dxvt_order_number nvarchar sap_sale_order_number → sap_sale_order_number nvarchar reassembly_to_original_description → reassembly_to_original_description nvarchar reassembly_to_original_note → reassembly_to_original_note nvarchar appointment_note → appointment_note nvarchar product_error_note → product_error_note nvarchar product_warranty_reject_reason → product_warranty_reject_reason nvarchar addr_move_start → addr_move_start nvarchar addr_move_end → addr_move_end nvarchar product_status_before → product_status_before nvarchar note_before → note_before nvarchar product_status_after → product_status_after nvarchar note_after → note_after nvarchar install_note → install_note nvarchar completed_task_description → completed_task_description nvarchar survey_note → survey_note nvarchar reception_note → reception_note nvarchar reception_project_code → reception_project_code nvarchar survey_result_description → survey_result_description nvarchar survey_result_note → survey_result_note nvarchar survey_branch_note → survey_branch_note nvarchar consultation_approval_note → consultation_approval_note nvarchar technical_solution_result → technical_solution_result nvarchar technical_solution_note → technical_solution_note nvarchar technical_solution_approval_note → technical_solution_approval_note nvarchar quotation_task_result → quotation_task_result nvarchar quotation_task_note → quotation_task_note nvarchar quotation_reject_note → quotation_reject_note nvarchar implementation_note → implementation_note nvarchar implementation_work_note → implementation_work_note nvarchar implementation_error_description → implementation_error_description nvarchar handover_result → handover_result nvarchar handover_note → handover_note nvarchar acceptance_result → acceptance_result nvarchar acceptance_note → acceptance_note nvarchar io_number → io_number decimal inverter_point → inverter_point decimal servo_point → servo_point decimal plc_point → plc_point decimal cabinet_enclosure_point → cabinet_enclosure_point decimal hmi_point → hmi_point decimal installation_capacity → installation_capacity decimal acceptance_project_revenue → acceptance_project_revenue decimal acceptance_dvkt_revenue → acceptance_dvkt_revenue decimal service_action_invisible → service_action_invisible bit active → active bit is_need_new_so → is_need_new_so bit warranty → warranty bit reassembly → reassembly bit appointment → appointment bit wf2_status_before_flag → wf2_status_before_flag bit wf2_status_after_flag → wf2_status_after_flag bit evaluate_domain → evaluate_domain bit confirm_expected_implementation_date → confirm_expected_implementation_date bit is_project_file_completed → is_project_file_completed bit check_reception → check_reception bit check_action_assign → check_action_assign bit need_button_approve → need_button_approve bit start_date → start_date datetime2 end_date → end_date datetime2 replied_date → replied_date datetime2 warranty_start_date → warranty_start_date datetime2 warranty_end_date → warranty_end_date datetime2 expect_appointment_date → expect_appointment_date datetime2 approved_date → approved_date datetime2 expected_survey_date → expected_survey_date datetime2 next_expected_survey_date → next_expected_survey_date datetime2 expected_implementation_date → expected_implementation_date datetime2 create_date → create_date datetime2 write_date → write_date datetime2 lat_move_start → lat_move_start float lng_move_start → lng_move_start float lat_move_end → lat_move_end float lng_move_end → lng_move_end float solution_total_point → solution_total_point float solution_total_point_with_complexity → solution_total_point_with_complexity float last_step_status → last_step_status nvarchar waiting_for_assignment → waiting_for_assignment bit email_assignee_sent → email_assignee_sent bit email_leader_sent → email_leader_sent bit deadline → deadline datetime2 serial_warranty_supplier_id → serial_warranty_supplier_id int virtual_warehouse_entry_id → virtual_warehouse_entry_id int stock_name → stock_name nvarchar total_error_days_after_acceptance → total_error_days_after_acceptance int number_of_sale_cabinets → number_of_sale_cabinets int technical_solution_approval_multipliers → technical_solution_approval_multipliers float note_SO → note_SO nvarchar is_exchange_1_1 → is_exchange_1_1 bit is_return_defective → is_return_defective bit new_stock_lot_id → new_stock_lot_id int new_serial_number → new_serial_number nvarchar is_received_defective → is_received_defective bit received_defective_date → received_defective_date datetime2 ts_source_warehouse_id → ts_source_warehouse_id int ts_intermediate_warehouse_id → ts_intermediate_warehouse_id int ts_target_warehouse_id → ts_target_warehouse_id int ts_master_code → ts_master_code nvarchar ts_material_proposal_status → ts_material_proposal_status nvarchar ts_customer_progress → ts_customer_progress nvarchar ts_last_serial_sync_note → ts_last_serial_sync_note nvarchar ts_rule_check_note → ts_rule_check_note nvarchar ts_bind_from_intermediate → ts_bind_from_intermediate bit ts_quote_zns_sent → ts_quote_zns_sent bit ts_serial_synced → ts_serial_synced bit ts_quote_zns_sent_at → ts_quote_zns_sent_at datetime2 ts_last_serial_sync_at → ts_last_serial_sync_at datetime2 ts_last_rule_check_at → ts_last_rule_check_at datetime2 ts_return_so_required → ts_return_so_required bit ts_return_so_ready → ts_return_so_ready bit ts_return_so_requested_at → ts_return_so_requested_at datetime2 team_id → team_id int ts_defective_return_status → ts_defective_return_status nvarchar ticket_rating_rate → ticket_rating_rate int ticket_rating_note → ticket_rating_note nvarchar sap_reason_id → sap_reason_id int sap_voucher_type → sap_voucher_type nvarchar need_board_serial → need_board_serial bit product_tmpl_id → product_tmpl_id int sap_business_unit → sap_business_unit nvarchar product_code → product_code nvarchar is_warranty_remote → is_warranty_remote nvarchar total_time_spent → total_time_spent float allow_next_remote_warranty_ticket → allow_next_remote_warranty_ticket bit bnk_warehouse_side → bnk_warehouse_side nvarchar bnk_last_api → bnk_last_api nvarchar bnk_last_success_at → bnk_last_success_at datetime2 bnk_replacement_so_status → bnk_replacement_so_status nvarchar bnk_replacement_serial_sync_note → bnk_replacement_serial_sync_note nvarchar bnk_replacement_serial_sync_at → bnk_replacement_serial_sync_at datetime2 bnk_replacement_sync_done → bnk_replacement_sync_done bit business_unit → business_unit nvarchar