Array ( )
⚠ 是否治理筛选条件为空
SELECT hi.*, u.name AS unit_name, a.username
FROM hazard_inspections hi
LEFT JOIN units u ON hi.unit_id = u.id
LEFT JOIN admins a ON hi.creator_id = a.id
ORDER BY hi.inspection_date DESC, hi.id DESC
LIMIT 10查询执行成功,找到 10 条记录
| ID | 单位 | 状态 | 治理情况 | 排查日期 |
|---|---|---|---|---|
| 215 | 利民村 | normal | NULL | 2026-04-17 |
| 214 | 利民村 | normal | NULL | 2026-04-17 |
| 213 | 五柱峰村 | normal | NULL | 2026-04-16 |
| 211 | 利民村 | normal | NULL | 2026-04-16 |
| 210 | 米粮村 | normal | NULL | 2026-04-15 |
| 208 | 虎头村 | normal | NULL | 2026-04-15 |
| 212 | 五柱峰村 | normal | NULL | 2026-04-13 |
| 209 | 米粮村 | normal | NULL | 2026-04-13 |
| 207 | 五柱峰村 | normal | NULL | 2026-04-09 |
| 206 | 桂圆林村 | normal | NULL | 2026-04-08 |