ODS 完成
This commit is contained in:
@@ -24,7 +24,7 @@ class TicketDwdTask(BaseDwdTask):
|
||||
self.logger.info(f"Processing window: {window_start} to {window_end}")
|
||||
|
||||
# 2. Initialize Loader
|
||||
loader = TicketLoader(self.db)
|
||||
loader = TicketLoader(self.db, logger=self.logger)
|
||||
store_id = self.config.get("app.store_id")
|
||||
|
||||
total_inserted = 0
|
||||
@@ -33,8 +33,8 @@ class TicketDwdTask(BaseDwdTask):
|
||||
# 3. Iterate ODS Data
|
||||
# We query ods_ticket_detail based on fetched_at
|
||||
batches = self.iter_ods_rows(
|
||||
table_name="billiards_ods.ods_ticket_detail",
|
||||
columns=["store_id", "order_settle_id", "payload", "fetched_at"],
|
||||
table_name="billiards_ods.settlement_ticket_details",
|
||||
columns=["payload", "fetched_at", "source_file", "record_index"],
|
||||
start_time=window_start,
|
||||
end_time=window_end
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user