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

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,360 @@
================================================================================
Table: billiards_dwd.dwd_refund_ex
Primary Key: refund_id
================================================================================
## COLUMNS
--------------------------------------------------------------------------------
refund_id: bigint | nullable=NO | PK
tenant_name: character varying(64) | nullable=YES |
pay_sn: bigint | nullable=YES |
refund_amount: numeric(18,2) | nullable=YES |
round_amount: numeric(18,2) | nullable=YES |
balance_frozen_amount: numeric(18,2) | nullable=YES |
card_frozen_amount: numeric(18,2) | nullable=YES |
pay_status: integer | nullable=YES |
action_type: integer | nullable=YES |
is_revoke: integer | nullable=YES |
is_delete: integer | nullable=YES |
check_status: integer | nullable=YES |
online_pay_channel: integer | nullable=YES |
online_pay_type: integer | nullable=YES |
pay_terminal: integer | nullable=YES |
pay_config_id: integer | nullable=YES |
cashier_point_id: integer | nullable=YES |
operator_id: bigint | nullable=YES |
channel_payer_id: character varying(128) | nullable=YES |
channel_pay_no: character varying(128) | nullable=YES |
## VALUE ANALYSIS (for enum detection)
--------------------------------------------------------------------------------
refund_id:
Total: 45, Non-null: 45, Distinct: 45
Top values:
2955171790194821: 1
3010370563410373: 1
2967433935357637: 1
3047989151893189: 1
3042871700817797: 1
2931109065131653: 1
2977293299926853: 1
2951883030513413: 1
2919690732146181: 1
3038756832234821: 1
2888536816749061: 1
3023410603902917: 1
2990528572459717: 1
3004097305612997: 1
2948959062542597: 1
tenant_name:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
朗朗桌球: 45
pay_sn:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
pay_status:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
2: 45
action_type:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
2: 45
is_revoke:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
is_delete:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
check_status:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
1: 45
online_pay_channel:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
online_pay_type:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
pay_terminal:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
1: 45
pay_config_id:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
cashier_point_id:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
operator_id:
Total: 45, Non-null: 45, Distinct: 1
*** LIKELY ENUM (distinct <= 15) ***
Top values:
0: 45
channel_payer_id:
Total: 45, Non-null: 0, Distinct: 0
Top values:
channel_pay_no:
Total: 45, Non-null: 0, Distinct: 0
Top values:
## SAMPLE DATA (first 10 rows)
--------------------------------------------------------------------------------
Columns: ['refund_id', 'tenant_name', 'pay_sn', 'refund_amount', 'round_amount', 'balance_frozen_amount', 'card_frozen_amount', 'pay_status', 'action_type', 'is_revoke', 'is_delete', 'check_status', 'online_pay_channel', 'online_pay_type', 'pay_terminal', 'pay_config_id', 'cashier_point_id', 'operator_id', 'channel_payer_id', 'channel_pay_no']
Row 1:
refund_id: 2955202296416389
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 2:
refund_id: 2955171790194821
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 3:
refund_id: 2951883030513413
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 4:
refund_id: 2948959062542597
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 5:
refund_id: 2948630468005509
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 6:
refund_id: 2948269239095045
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 7:
refund_id: 2944743812581445
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 8:
refund_id: 2931109065131653
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 9:
refund_id: 2921195994465669
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL
Row 10:
refund_id: 2919690732146181
tenant_name: 朗朗桌球
pay_sn: 0
refund_amount: 0.00
round_amount: 0.00
balance_frozen_amount: 0.00
card_frozen_amount: 0.00
pay_status: 2
action_type: 2
is_revoke: 0
is_delete: 0
check_status: 1
online_pay_channel: 0
online_pay_type: 0
pay_terminal: 1
pay_config_id: 0
cashier_point_id: 0
operator_id: 0
channel_payer_id: NULL
channel_pay_no: NULL