IN 子句的占位符 (?1) 写法在 JPA 原生查询中不支持直接传入集合参数导致 [exception] could not extract ResultSet
这个错误的原因非常经典:IN 子句的占位符 (?1) 写法在 JPA 原生查询中不支持直接传入集合参数。一、根本原因coalesce(?1, null) is null or ids IN (?1) 能工作coalesce(?1, null) 把参数当作单个值处理如果 ?1 是 null,条件为真,跳过 …
2026/7/19 23:13:04