Преглед изворни кода

测试今天添加的

晋江
OCEAN пре 1 месец
родитељ
комит
ca7b7ef16b
5 измењених фајлова са 9 додато и 6 уклоњено
  1. +5
    -2
      tcp_client/config.toml
  2. +3
    -3
      tcp_server/src/main.rs
  3. +1
    -1
      tcp_server/target/.rustc_info.json
  4. BIN
      tcp_server/target/debug/tcp_server.exe
  5. BIN
      tcp_server/target/debug/tcp_server.pdb

+ 5
- 2
tcp_client/config.toml Прегледај датотеку

@@ -20,8 +20,11 @@ user = "postgres"
password = "Auseft@2025qwer"

# 要同步的表配置


[[tables]]
name = "wt_weight_info"
query = "SELECT id, unit_id, materiel_id, weigh_type, associated_order_id, warehouse_id, receive_company_id, transit_company_id, vehicle_id, bill_no, supply_id, card_no, rfid_no, vehicle_no, order_no, ship_type, issued_device_no, issued_by, issued_time, sample_device_no, sample_by, sample_time, gw::text as gw, gw_scale_no, gw_time, gw_by, accept_by, accept_time, t::text as t, t_scale_no, t_time, t_by, review_by, review_time, deduction::text as deduction, nw::text as nw, aw::text as aw, card_return_time, flow_id, is_invoice, is_end, is_cancel, cancel_by, cancel_time, is_manual_data, first_identify_vehicle_no, second_identify_vehicle_no, comment, is_inbound, is_outbound, is_settle_and_review, is_settle, settle_id, settle_time, vehicle_and_vessel_no, shipping_location, destination, entry_no, batch_no, lane_id, queue_id, tax_rate::text as tax_rate, itax_unit_price::text as itax_unit_price, iunit_price::text as iunit_price, operate_time, is_special_batch, total::text as total, arrival_time, leave_time, ash_start_time, is_rejected, train_shipping_detail_id, sample1_collection, sample1_collection_id, sample2_collection, samplecard1, samplecard2, cabno1, cabno2, entry_time2, cab2_card, entry_time1, cab1_card, sampleout_time1, sampleout_time2, sample2_collection_id, supply_id_name, sample_type, sample_code, sample_done, load_type, load_weight::text as load_weight, sample1_incab_by, sample2_incab_by, cabname1, cabname2, samplepoint, is_reviewed, deduction1::text as deduction1, deduction2::text as deduction2, material_name, is_accept_and_receive FROM public.wt_weight_info"
name = "erp_shipping_details"
query = "SELECT id, plan_id, vehicle_id, vehicle_number, gross_weight::text as gross_weight, tare_weight::text as tare_weight, net_weight::text as net_weight, card_number, appointment_number, appointment_time, appointment_weight::text as appointment_weight, is_cancel, is_end, driver_phone, remarks, create_time, create_by, update_time, update_by FROM public.erp_shipping_details"
incremental = false
key_field = "UpdateTime"


+ 3
- 3
tcp_server/src/main.rs Прегледај датотеку

@@ -1179,7 +1179,7 @@ async fn insert_erp_shipping_plan(client: &tokio_postgres::Client, info: &ErpShi
material_name, plan_name, warehouse_name
) OVERRIDING SYSTEM VALUE VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13,
$14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24,
$25, $26, $27, $28, $29, $30)",
$25, $26, $27, $28, $29, $30,$31)",
&[
&info.id, &info.cust_id, &info.material_id, &info.plan_type,
&info.plan_start_date, &info.plan_end_date, &info.plan_days,
@@ -1449,7 +1449,7 @@ async fn insert_erp_shipping_details(client: &tokio_postgres::Client, info: &Erp
appointment_time = $7, appointment_weight = $8, is_cancel = $9,
is_end = $10, driver_phone = $11, remarks = $12,
create_time = $13, create_by = $14, update_time = $15,
update_by = $16,plan_id = $17 AND vehicle_number = $18
update_by = $16,plan_id = $17 , vehicle_number = $18
WHERE id = $19",
&[
&info.vehicle_id, &info.gross_weight, &info.tare_weight,
@@ -1471,7 +1471,7 @@ async fn insert_erp_shipping_details(client: &tokio_postgres::Client, info: &Erp
driver_phone, remarks, create_time, create_by,
update_time, update_by
) OVERRIDING SYSTEM VALUE VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12,
$13, $14, $15, $16, $17, $18)",
$13, $14, $15, $16, $17, $18,$19)",
&[
&info.id, &info.plan_id, &info.vehicle_id, &info.vehicle_number,
&info.gross_weight, &info.tare_weight, &info.net_weight,


+ 1
- 1
tcp_server/target/.rustc_info.json Прегледај датотеку

@@ -1 +1 @@
{"rustc_fingerprint":3807311574931242264,"outputs":{"13331785392996375709":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\qq101\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.85.0 (4d91de4e4 2025-02-17)\nbinary: rustc\ncommit-hash: 4d91de4e48198da2e33413efdcd9cd2cc0c46688\ncommit-date: 2025-02-17\nhost: x86_64-pc-windows-msvc\nrelease: 1.85.0\nLLVM version: 19.1.7\n","stderr":""}},"successes":{}}
{"rustc_fingerprint":3807311574931242264,"outputs":{"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.85.0 (4d91de4e4 2025-02-17)\nbinary: rustc\ncommit-hash: 4d91de4e48198da2e33413efdcd9cd2cc0c46688\ncommit-date: 2025-02-17\nhost: x86_64-pc-windows-msvc\nrelease: 1.85.0\nLLVM version: 19.1.7\n","stderr":""},"13331785392996375709":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\qq101\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""}},"successes":{}}

BIN
tcp_server/target/debug/tcp_server.exe Прегледај датотеку


BIN
tcp_server/target/debug/tcp_server.pdb Прегледај датотеку


Loading…
Откажи
Сачувај