fix(backend): drop unrelated pay-status label changes from transferTime commit.

Keep only transferTime exposure for protocol-audit list mode.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-09 10:02:39 +08:00
1 parent 38f9822d49
commit 1e12783a41
1 file changed
+7 -7
@@ -16,9 +16,9 @@ from app.models.models import (
_PAY_MODE_LABELS = {"dj": "趸交", "fq": "分期", "djfq": "趸交+分期"}
_PAY_STATUS_LABELS = {
"dfj": "已缴费",
"dfj": "待缴费",
"jfqrz": "缴费确认中",
"yjf": "缴费成功",
"yjf": "已缴费",
"tfqrz": "退费确认中",
"ytf": "已退费",
}
@@ -64,12 +64,12 @@ def _protocol_status_hint(pay_mode: str, statuses: List[str]) -> str:
if confirm:
parts.append(f"{confirm} 期待确认")
if pending:
parts.append(f"{pending} 期已缴费")
parts.append(f"{pending} 期待缴费")
return " · ".join(parts) if len(parts) > 1 else parts[0]
if confirm:
return f"{confirm} 期待确认" if confirm > 1 else "缴费确认中"
return f"{confirm} 期待确认" if confirm > 1 else "收款确认中"
if pending:
return "已缴费"
return "待缴费"
return ""
@@ -89,9 +89,9 @@ def _protocol_overall_status(
):
return {"overallPayStatus": "cleared", "overallPayStatusLabel": "已缴清", "overallPayStatusTagType": "success"}
if "jfqrz" in statuses:
return {"overallPayStatus": "jfqrz", "overallPayStatusLabel": "缴费确认中", "overallPayStatusTagType": "warning"}
return {"overallPayStatus": "jfqrz", "overallPayStatusLabel": "收款确认中", "overallPayStatusTagType": "warning"}
if "dfj" in statuses:
return {"overallPayStatus": "dfj", "overallPayStatusLabel": "已缴费", "overallPayStatusTagType": "primary"}
return {"overallPayStatus": "dfj", "overallPayStatusLabel": "待缴费", "overallPayStatusTagType": "info"}
return {"overallPayStatus": "", "overallPayStatusLabel": "—", "overallPayStatusTagType": "info"}