fix(供应商对账): 催办名单按账期索引读取 #1645

Open
sumu wants to merge 1 commits from hotfix/sumu-supplier-statement-reminder-memory into main
Collaborator

问题

12 月 2 日 10:00 的对账单催办任务读取完整货款数据集,超过 1GB 内存限制后失败。11 月数据导入后,月催办名单不能继续采用整库加载。

修复

  • 新增按账期查询供应商名单,生产使用 company_id + dataset + summary_month_key 索引。
  • 对账催办只读取上月涉及的供应商,不再加载全部历史货款行。
  • 增加查询形态回归,防止以后退回整库扫描。

验证

  • SupplierStatementReminderTest: 7 passed / 65 assertions。
  • 覆盖 1-14 日催办窗口、已上传跳过、当日去重、动态供应商变化及查询定向性。
## 问题 12 月 2 日 10:00 的对账单催办任务读取完整货款数据集,超过 1GB 内存限制后失败。11 月数据导入后,月催办名单不能继续采用整库加载。 ## 修复 - 新增按账期查询供应商名单,生产使用 `company_id + dataset + summary_month_key` 索引。 - 对账催办只读取上月涉及的供应商,不再加载全部历史货款行。 - 增加查询形态回归,防止以后退回整库扫描。 ## 验证 - `SupplierStatementReminderTest`: 7 passed / 65 assertions。 - 覆盖 1-14 日催办窗口、已上传跳过、当日去重、动态供应商变化及查询定向性。
sumu added 1 commit 2026-12-02 13:16:08 +08:00
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin hotfix/sumu-supplier-statement-reminder-memory:hotfix/sumu-supplier-statement-reminder-memory
git checkout hotfix/sumu-supplier-statement-reminder-memory
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#1645
No description provided.