feat(l2_review): 添加“待确认”状态支持
Showing
2 changed files
with
5 additions
and
1 deletions
| ... | @@ -631,6 +631,7 @@ | ... | @@ -631,6 +631,7 @@ |
| 631 | <label for="decisionFilter">类型</label> | 631 | <label for="decisionFilter">类型</label> |
| 632 | <select id="decisionFilter"> | 632 | <select id="decisionFilter"> |
| 633 | <option value="pending" selected>待审核</option> | 633 | <option value="pending" selected>待审核</option> |
| 634 | <option value="unsure">待确认</option> | ||
| 634 | <option value="">全部</option> | 635 | <option value="">全部</option> |
| 635 | <option value="l1_hit">L1 命中</option> | 636 | <option value="l1_hit">L1 命中</option> |
| 636 | <option value="conflict">L1/L2 冲突</option> | 637 | <option value="conflict">L1/L2 冲突</option> | ... | ... |
| ... | @@ -361,13 +361,16 @@ def _staging_groups_response( | ... | @@ -361,13 +361,16 @@ def _staging_groups_response( |
| 361 | where_clauses.append("s.biz_review_status IN ('approved_import', 'rejected_duplicate', 'deleted')") | 361 | where_clauses.append("s.biz_review_status IN ('approved_import', 'rejected_duplicate', 'deleted')") |
| 362 | where_clauses.append("s.staging_status = 'imported'") | 362 | where_clauses.append("s.staging_status = 'imported'") |
| 363 | elif decision == 'pending': | 363 | elif decision == 'pending': |
| 364 | where_clauses.append("(s.biz_review_status IS NULL OR s.biz_review_status IN ('pending', 'unsure'))") | 364 | where_clauses.append("(s.biz_review_status IS NULL OR s.biz_review_status = 'pending')") |
| 365 | where_clauses.append("s.dedup_action = 'review'") | 365 | where_clauses.append("s.dedup_action = 'review'") |
| 366 | where_clauses.append("s.staging_status <> 'imported'") | 366 | where_clauses.append("s.staging_status <> 'imported'") |
| 367 | where_clauses.append( | 367 | where_clauses.append( |
| 368 | "(s.review_claim_expires_at IS NULL OR s.review_claim_expires_at <= NOW() OR s.review_claim_token = %s)" | 368 | "(s.review_claim_expires_at IS NULL OR s.review_claim_expires_at <= NOW() OR s.review_claim_token = %s)" |
| 369 | ) | 369 | ) |
| 370 | params.append(client_token) | 370 | params.append(client_token) |
| 371 | elif decision == 'unsure': | ||
| 372 | where_clauses.append("s.biz_review_status = 'unsure'") | ||
| 373 | where_clauses.append("s.staging_status <> 'imported'") | ||
| 371 | # 兼容旧的 dedup_action 筛选 | 374 | # 兼容旧的 dedup_action 筛选 |
| 372 | elif decision and decision in ('merge', 'review'): | 375 | elif decision and decision in ('merge', 'review'): |
| 373 | where_clauses.append("s.dedup_action = %s") | 376 | where_clauses.append("s.dedup_action = %s") | ... | ... |
-
Please register or sign in to post a comment