数据库 数据校验写入等逻辑更新。

This commit is contained in:
Neo
2026-02-01 03:46:16 +08:00
parent 9948000b71
commit 076f5755ca
128 changed files with 494310 additions and 2819 deletions

View File

@@ -0,0 +1,219 @@
================================================================================
Table: billiards_dwd.dwd_table_fee_log_ex
Primary Key: table_fee_log_id
================================================================================
## COLUMNS
--------------------------------------------------------------------------------
table_fee_log_id: bigint | nullable=NO | PK
operator_name: character varying(64) | nullable=YES |
salesman_name: character varying(64) | nullable=YES |
used_card_amount: numeric(18,2) | nullable=YES |
service_money: numeric(18,2) | nullable=YES |
mgmt_fee: numeric(18,2) | nullable=YES |
fee_total: numeric(18,2) | nullable=YES |
ledger_start_time: timestamp with time zone | nullable=YES |
last_use_time: timestamp with time zone | nullable=YES |
operator_id: bigint | nullable=YES |
salesman_user_id: bigint | nullable=YES |
salesman_org_id: bigint | nullable=YES |
## VALUE ANALYSIS (for enum detection)
--------------------------------------------------------------------------------
table_fee_log_id:
Total: 18386, Non-null: 18386, Distinct: 18386
Top values:
2897193251719557: 1
2893935585020421: 1
2906552039376453: 1
2851661190713157: 1
2936533613791813: 1
2890835850152453: 1
2847609203805253: 1
2916908961123333: 1
2983183886160581: 1
2820543392057349: 1
2946311480395845: 1
2888126009035269: 1
3007558006097989: 1
2916821234994181: 1
3019966811522501: 1
operator_name:
Total: 18386, Non-null: 18386, Distinct: 4
*** LIKELY ENUM (distinct <= 15) ***
Top values:
收银员:郑丽珊: 18382
收银员:郑丽珍: 2
店长:郑丽珊: 1
教练:周蒙: 1
salesman_name:
Total: 18386, Non-null: 0, Distinct: 0
Top values:
operator_id:
Total: 18386, Non-null: 18386, Distinct: 3
*** LIKELY ENUM (distinct <= 15) ***
Top values:
2790687322443013: 18383
2801909606452165: 2
2794761849227077: 1
salesman_user_id:
Total: 18386, Non-null: 18386, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 18386
salesman_org_id:
Total: 18386, Non-null: 18386, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 18386
## SAMPLE DATA (first 10 rows)
--------------------------------------------------------------------------------
Columns: ['table_fee_log_id', 'operator_name', 'salesman_name', 'used_card_amount', 'service_money', 'mgmt_fee', 'fee_total', 'ledger_start_time', 'last_use_time', 'operator_id', 'salesman_user_id', 'salesman_org_id']
Row 1:
table_fee_log_id: 2957924029058885
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 22:28:57+08:00
last_use_time: 2025-11-09 23:28:57+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 2:
table_fee_log_id: 2957922693074821
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 21:34:27+08:00
last_use_time: 2025-11-09 23:34:27+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 3:
table_fee_log_id: 2957921521733125
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 22:32:55+08:00
last_use_time: 2025-11-09 23:32:55+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 4:
table_fee_log_id: 2957920279498629
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 21:44:40+08:00
last_use_time: 2025-11-09 23:31:50+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 5:
table_fee_log_id: 2957913926717253
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 22:23:14+08:00
last_use_time: 2025-11-09 23:23:14+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 6:
table_fee_log_id: 2957913440948101
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 21:14:07+08:00
last_use_time: 2025-11-09 23:24:50+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 7:
table_fee_log_id: 2957909372325573
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 22:20:43+08:00
last_use_time: 2025-11-09 23:20:43+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 8:
table_fee_log_id: 2957902858948421
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 20:21:39+08:00
last_use_time: 2025-11-09 23:12:26+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 9:
table_fee_log_id: 2957882052366213
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 20:48:20+08:00
last_use_time: 2025-11-09 22:48:20+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0
Row 10:
table_fee_log_id: 2957881608392389
operator_name: 收银员:郑丽珊
salesman_name: NULL
used_card_amount: 0.00
service_money: 0.00
mgmt_fee: 0.00
fee_total: 0.00
ledger_start_time: 2025-11-09 17:30:43+08:00
last_use_time: 2025-11-09 22:30:43+08:00
operator_id: 2790687322443013
salesman_user_id: 0
salesman_org_id: 0