feat(M10-B): 完成可复算经营报表与日汇总

This commit is contained in:
Codex
2026-08-11 09:50:05 +08:00
parent 5d70114bab
commit ee7b16c932
35 changed files with 1355 additions and 65 deletions
+10 -3
View File
@@ -49,7 +49,8 @@ assert.match(plan.file, /2026081006_m09c_cleaning_settlement_integrity\.up\.sql/
assert.match(plan.file, /2026081107_m09d1_product_inventory_foundation\.up\.sql/);
assert.match(plan.file, /2026081108_m09d2_product_order_payment_inventory\.up\.sql/);
assert.match(plan.file, /2026081109_m09d3_product_storage\.up\.sql/);
assert.match(plan.file, /2026081110_m10a_notification_center\.up\.sql$/);
assert.match(plan.file, /2026081110_m10a_notification_center\.up\.sql/);
assert.match(plan.file, /2026081111_m10b_business_reports\.up\.sql$/);
assert.match(plan.checksum, /^[a-f0-9]{64}$/);
assert.ok(plan.statements.length >= 11);
@@ -72,13 +73,19 @@ assert.match(
verifyPlan.file,
/2026081109_m09d3_product_storage\.verify\.sql/
);
assert.match(verifyPlan.file, /2026081110_m10a_notification_center\.verify\.sql$/);
assert.match(verifyPlan.file, /2026081110_m10a_notification_center\.verify\.sql/);
assert.match(verifyPlan.file, /2026081111_m10b_business_reports\.verify\.sql$/);
const downPlan = await loadMigrationPlan('down');
assert.match(downPlan.file, /^database\/migrations\/2026081110_m10a_notification_center\.down\.sql/);
assert.match(downPlan.file, /^database\/migrations\/2026081111_m10b_business_reports\.down\.sql/);
assert.match(downPlan.file, /2026081110_m10a_notification_center\.down\.sql/);
assert.match(downPlan.file, /2026081109_m09d3_product_storage\.down\.sql/);
assert.match(downPlan.file, /2026081108_m09d2_product_order_payment_inventory\.down\.sql/);
assert.match(downPlan.file, /2026081107_m09d1_product_inventory_foundation\.down\.sql/);
assert.ok(
downPlan.file.indexOf('2026081111_m10b_business_reports.down.sql')
< downPlan.file.indexOf('2026081110_m10a_notification_center.down.sql')
);
assert.ok(
downPlan.file.indexOf('2026081110_m10a_notification_center.down.sql')
< downPlan.file.indexOf('2026081109_m09d3_product_storage.down.sql')