From 64fba1029ae2dcc576cbf2882fad098ebb01a334 Mon Sep 17 00:00:00 2001 From: YUAN Date: Sun, 6 Sep 2026 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20L3=20docstring=20=E8=A1=A5=20R-05=20?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E6=94=B9=E9=80=A0=E7=82=B9=E7=95=99=E7=97=95?= =?UTF-8?q?(=E5=A4=8D=E5=AE=A1=20P3-1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/risk/profile_l3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/service/risk/profile_l3.py b/app/service/risk/profile_l3.py index df7b6e1..761bbc4 100644 --- a/app/service/risk/profile_l3.py +++ b/app/service/risk/profile_l3.py @@ -8,6 +8,8 @@ DATETIME(3),保证乐观锁读写比对一致)。 risk_score 口径(评审 P3-4 · 用户拍板 2026-09-06):一期**不写**(保持 NULL)。 该列是 R-05 动态评分模型的客户风险分,与 risk_alert.risk_score(预警单严重度) 语义不同;由 R-05 首写,避免静态分造成 tier/score 错位与二期语义污染。 +注意:update 为整行覆盖,历史行非 NULL 值会被置 NULL(一期无其他写入方,无影响); +**R-05 接入时须改 merge_l3 的 risk_score 为保留 existing 值,或 update SQL 跳过该列**。 并发(B3 评审 P1-1 修复):进程内锁按 customer_id 串行减少冲突(多进程部署换 Redis SET NX,接口不变);锁超时降级与跨进程竞态由乐观锁兜底——update 比对