diff --git a/tcp_client/config.toml b/tcp_client/config.toml index 171dc5b..bdf787f 100644 --- a/tcp_client/config.toml +++ b/tcp_client/config.toml @@ -20,9 +20,3 @@ user = "postgres" password = "Auseft@2025qwer" # 要同步的表配置 - -[[tables]] -name = "comm_bch_delivering_sampling" -query = "SELECT id, tenant_id, supply_id, material_id, sample_type, operation_type, business_type, delivering_type, delivering_code, delivering_quantity, delivering_unit, delivering_weight::text as delivering_weight, delivering_weights, delivering_remark, deliverer, delivery_time, sampling, sampling_type, sampling_code, sampling_quantity, sampling_unit, sampling_weight::text as sampling_weight, sampling_weights, sampling_remark, sampler, sample_time, creator_id, creation_time, last_modifier_id, last_modification_reason, last_modification_time, deleted, deleter_id, deletion_reason, deletion_time FROM comm_bch_delivering_sampling " -incremental = false -key_field = "UpdateTime" diff --git a/tcp_client/config_send.toml b/tcp_client/config_send.toml index 25b30f8..fafd70f 100644 --- a/tcp_client/config_send.toml +++ b/tcp_client/config_send.toml @@ -21,6 +21,20 @@ password = "Auseft@2025qwer" # 要同步的表配置 +[[tables]] +name = "comm_bch_batch" +query = "SELECT id, tenant_id, supply_id, material_id, batch_record_id, sample_type, related_code, batching_start_time, batching_end_time, batching_start_ticket, batching_end_ticket, batching_quantity, batching_weight::text, batching_code, batching_code_creator, batching_code_creation_time, preparation_code, preparation_code_creator, preparation_code_creation_time, assay_code, assay_code_creator, assay_code_creation_time, creator_id, creation_time, last_modifier_id, last_modification_reason, last_modification_time, deleted, deleter_id, deletion_reason, deletion_time, source_type FROM comm_bch_batch" +incremental = false +key_field = "UpdateTime" + + + +[[tables]] +name = "comm_bch_delivering_sampling" +query = "SELECT id, tenant_id, supply_id, material_id, sample_type, operation_type, business_type, delivering_type, delivering_code, delivering_quantity, delivering_unit, delivering_weight::text as delivering_weight, delivering_weights, delivering_remark, deliverer, delivery_time, sampling, sampling_type, sampling_code, sampling_quantity, sampling_unit, sampling_weight::text as sampling_weight, sampling_weights, sampling_remark, sampler, sample_time, creator_id, creation_time, last_modifier_id, last_modification_reason, last_modification_time, deleted, deleter_id, deletion_reason, deletion_time FROM comm_bch_delivering_sampling " +incremental = false +key_field = "UpdateTime" + [[tables]] name = "comm_sp_delivering_sampling"