增量聚合(Incremental Aggregation)
核心架構設計與數據模型
-- 客戶支付通道詳細資訊
create table t_customer_payment_gateway_detail
(
customer_number bigint not null,
gts2_customer_id bigint not null,
gts2_account_id bigint not null,
pay_switch_seq_id bigint not null,
time_period integer not null,
total_amount numeric(10, 2) not null,
create_date timestamp with time zone default now() not null,
update_date timestamp with time zone default now() not null,
constraint t_customer_payment_gateway_detail_unique
unique (gts2_customer_id, pay_switch_seq_id, time_period)
);
comment on table t_customer_payment_gateway_detail is '客戶支付通道詳細資訊';
comment on column t_customer_payment_gateway_detail.pay_switch_seq_id is '支付通道id';
comment on column t_customer_payment_gateway_detail.time_period is '數據時間類型';
comment on column t_customer_payment_gateway_detail.total_amount is '通道存款總金額';
-- 統計客戶數據執行紀錄
create table office.t_statistics_customer_execution_log
(
group_id integer not null primary key ,
execution_date timestamp with time zone not null
);
comment on table office.t_statistics_customer_execution_log is '統計客戶數據執行紀錄';
comment on column office.t_statistics_customer_execution_log.group_id is '執行統計數據組Id';
comment on column office.t_statistics_customer_execution_log.execution_date is '成功執行時間';核心程式邏輯與實作流程
給測試人員的說明與測試方式
Last updated