feat: 上传京东账单时自动软删除其他来源中的京东订单

This commit is contained in:
CHE LIANG ZHAO
2026-01-26 14:11:55 +08:00
parent 3cf39b4664
commit 9e146c5ef0
4 changed files with 74 additions and 13 deletions

View File

@@ -51,4 +51,9 @@ type BillRepository interface {
// CountRawByField 按字段统计原始数据数量
CountRawByField(fieldName, value string) (int64, error)
// SoftDeleteJDRelatedBills 软删除描述中包含"京东-订单编号"的非京东账单
// 用于避免京东账单与其他来源(微信、支付宝)账单重复计算
// 返回: 删除数量、错误
SoftDeleteJDRelatedBills() (int64, error)
}