# 2026-03-24 专项核查页员工家庭资产负债专项核查测试数据验证记录

## 执行命令

```bash
bin/mysql_utf8_exec.sh sql/migration/2026-03-24-add-special-check-family-asset-liability-test-data.sql
```

## 执行结果

- 执行时间：2026-03-24 20:58:39 +0800
- 执行结果：`PASS`
- 说明：脚本执行无报错，事务成功提交

## 列表口径验证

### 验证 SQL

```sql
SELECT
  bs.name AS staff_name,
  COALESCE(bs.annual_income, 0) + COALESCE(spouse.spouse_income, 0) AS total_income,
  COALESCE(asset.total_asset, 0) AS total_asset,
  COALESCE(debt.total_debt, 0) AS total_debt,
  COALESCE(bs.annual_income, 0) + COALESCE(spouse.spouse_income, 0) + COALESCE(debt.total_debt, 0) AS comparison_amount,
  CASE
    WHEN COALESCE(asset.self_asset_count, 0) = 0 OR COALESCE(debt.self_debt_count, 0) = 0 THEN 'MISSING_INFO'
    WHEN COALESCE(bs.annual_income, 0) + COALESCE(spouse.spouse_income, 0) + COALESCE(debt.total_debt, 0) <= COALESCE(asset.total_asset, 0) * 1.5 THEN 'NORMAL'
    WHEN COALESCE(bs.annual_income, 0) + COALESCE(spouse.spouse_income, 0) + COALESCE(debt.total_debt, 0) <= COALESCE(asset.total_asset, 0) * 3 THEN 'RISK'
    ELSE 'HIGH'
  END AS risk_level_code
FROM ccdi_base_staff bs
...
WHERE bs.name LIKE '专项核查%'
ORDER BY bs.staff_id;
```

### 验证结果

| 员工 | 家庭总收入 | 家庭总资产 | 家庭总负债 | 对比金额 | 风险结果 |
|------|------------|------------|------------|----------|----------|
| 专项核查正常边界样本 | 300000.00 | 1000000.00 | 1200000.00 | 1500000.00 | NORMAL |
| 专项核查风险边界样本 | 300000.00 | 500000.00 | 1200000.00 | 1500000.00 | RISK |
| 专项核查高风险样本 | 240000.00 | 500000.00 | 1400100.00 | 1640100.00 | HIGH |
| 专项核查缺少负债样本 | 300000.00 | 800000.00 | 200000.00 | 500000.00 | MISSING_INFO |
| 专项核查缺少资产样本 | 350000.00 | 600000.00 | 400000.00 | 750000.00 | MISSING_INFO |
| 专项核查单身完整样本 | 180000.00 | 400000.00 | 300000.00 | 480000.00 | NORMAL |

## 缺失标记验证

### 验证结果

| 员工 | missing_self_asset_info | missing_self_debt_info | self_total_asset | self_total_debt |
|------|-------------------------|------------------------|------------------|-----------------|
| 专项核查缺少负债样本 | 0 | 1 | 450000.00 | 0.00 |
| 专项核查缺少资产样本 | 1 | 0 | 0.00 | 250000.00 |

## 项目入围验证

- `project_id = 51` 下新增专项核查样本命中数：`6`
- 说明：6 名专用员工均已进入专项核查范围

## 结论

- 新增测试数据已覆盖正常边界、风险边界、高风险、缺少本人负债、缺少本人资产、单身完整 6 类情况
- 当前专项核查风险判断口径与缺失标记口径均能被这组样本稳定命中
