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

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,437 @@
================================================================================
Table: billiards_dwd.dwd_groupbuy_redemption_ex
Primary Key: redemption_id
================================================================================
## COLUMNS
--------------------------------------------------------------------------------
redemption_id: bigint | nullable=NO | PK
site_name: character varying(64) | nullable=YES
table_name: character varying(64) | nullable=YES
table_area_name: character varying(64) | nullable=YES
order_pay_id: bigint | nullable=YES
goods_option_price: numeric(18,2) | nullable=YES
goods_promotion_money: numeric(18,2) | nullable=YES
table_service_promotion_money: numeric(18,2) | nullable=YES
assistant_promotion_money: numeric(18,2) | nullable=YES
assistant_service_promotion_money: numeric(18,2) | nullable=YES
reward_promotion_money: numeric(18,2) | nullable=YES
recharge_promotion_money: numeric(18,2) | nullable=YES
offer_type: integer | nullable=YES
ledger_status: integer | nullable=YES
operator_id: bigint | nullable=YES
operator_name: character varying(64) | nullable=YES
salesman_user_id: bigint | nullable=YES
salesman_name: character varying(64) | nullable=YES
salesman_role_id: bigint | nullable=YES
salesman_org_id: bigint | nullable=YES
ledger_group_name: character varying(128) | nullable=YES
## VALUE ANALYSIS (for enum detection)
--------------------------------------------------------------------------------
redemption_id:
Total: 11427, Non-null: 11427, Distinct: 11427
Top values:
3060923562348165: 1
3004203161768837: 1
2966205249259270: 1
3034076747647815: 1
2997306276497925: 1
2998948566665797: 1
2903712823250309: 1
2888149018757637: 1
2925240126375365: 1
2901239667805573: 1
2991754480784069: 1
2898184055064965: 1
2906800959817093: 1
2911052387272325: 1
2947957977992837: 1
site_name:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
朗朗桌球: 11427
table_name:
Total: 11427, Non-null: 11427, Distinct: 52
Top values:
A3: 892
A4: 858
A5: 835
A7: 774
A8: 643
A2: 642
A1: 593
A9: 583
A10: 518
A11: 459
A12: 379
A17: 363
A14: 330
A15: 325
A16: 311
table_area_name:
Total: 11427, Non-null: 11427, Distinct: 9
*** LIKELY ENUM (distinct <= 15) ***
Top values:
A区: 9294
B区: 998
斯诺克区: 962
麻将房: 137
VIP包厢: 21
K包: 8
C区: 5
补时长: 1
M7: 1
order_pay_id:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 11427
goods_option_price:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0.00: 11427
goods_promotion_money:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0.00: 11427
table_service_promotion_money:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0.00: 11427
assistant_promotion_money:
Total: 11427, Non-null: 11427, Distinct: 26
Top values:
0.00: 11389
196.00: 6
195.89: 3
195.84: 3
195.73: 2
195.67: 2
216.00: 2
195.86: 2
195.46: 1
188.24: 1
213.48: 1
215.70: 1
195.81: 1
191.13: 1
213.47: 1
assistant_service_promotion_money:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0.00: 11427
reward_promotion_money:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0.00: 11427
recharge_promotion_money:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0.00: 11427
offer_type:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
1: 11427
ledger_status:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
1: 11427
operator_id:
Total: 11427, Non-null: 11427, Distinct: 2
*** LIKELY ENUM (distinct <= 15) ***
Top values:
2790687322443013: 11426
2801909606452165: 1
operator_name:
Total: 11427, Non-null: 11427, Distinct: 2
*** LIKELY ENUM (distinct <= 15) ***
Top values:
收银员:郑丽珊: 11426
收银员:郑丽珍: 1
salesman_user_id:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 11427
salesman_name:
Total: 11427, Non-null: 0, Distinct: 0
Top values:
salesman_role_id:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 11427
salesman_org_id:
Total: 11427, Non-null: 11427, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 11427
ledger_group_name:
Total: 11427, Non-null: 0, Distinct: 0
Top values:
## SAMPLE DATA (first 10 rows)
--------------------------------------------------------------------------------
Columns: ['redemption_id', 'site_name', 'table_name', 'table_area_name', 'order_pay_id', 'goods_option_price', 'goods_promotion_money', 'table_service_promotion_money', 'assistant_promotion_money', 'assistant_service_promotion_money', 'reward_promotion_money', 'recharge_promotion_money', 'offer_type', 'ledger_status', 'operator_id', 'operator_name', 'salesman_user_id', 'salesman_name', 'salesman_role_id', 'salesman_org_id', 'ledger_group_name']
Row 1:
redemption_id: 2957924029615941
site_name: 朗朗桌球
table_name: A17
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 2:
redemption_id: 2957922693500805
site_name: 朗朗桌球
table_name: A4
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 3:
redemption_id: 2957920279957381
site_name: 朗朗桌球
table_name: A7
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 4:
redemption_id: 2957913927110469
site_name: 朗朗桌球
table_name: A9
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 5:
redemption_id: 2957909372718789
site_name: 朗朗桌球
table_name: A8
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 6:
redemption_id: 2957902860046150
site_name: 朗朗桌球
table_name: B5
table_area_name: B区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 7:
redemption_id: 2957902860046149
site_name: 朗朗桌球
table_name: B5
table_area_name: B区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 8:
redemption_id: 2957882052710277
site_name: 朗朗桌球
table_name: A11
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 9:
redemption_id: 2957874957717381
site_name: 朗朗桌球
table_name: A12
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL
Row 10:
redemption_id: 2957871647575749
site_name: 朗朗桌球
table_name: A3
table_area_name: A区
order_pay_id: 0
goods_option_price: 0.00
goods_promotion_money: 0.00
table_service_promotion_money: 0.00
assistant_promotion_money: 0.00
assistant_service_promotion_money: 0.00
reward_promotion_money: 0.00
recharge_promotion_money: 0.00
offer_type: 1
ledger_status: 1
operator_id: 2790687322443013
operator_name: 收银员:郑丽珊
salesman_user_id: 0
salesman_name: NULL
salesman_role_id: 0
salesman_org_id: 0
ledger_group_name: NULL