jpa @query 判断参数
Repository 中
SQL where后
" and (" +
"coalesce(?1, null) is null or a.name in (?1)" +
" ) " +
传参 List<String> name
作者:人间春风意
扫描左侧的二维码可以赞赏

本作品采用署名-非商业性使用-禁止演绎 4.0 国际 进行许可。
Repository 中
SQL where后
" and (" +
"coalesce(?1, null) is null or a.name in (?1)" +
" ) " +
传参 List<String> name
作者:人间春风意
扫描左侧的二维码可以赞赏

本作品采用署名-非商业性使用-禁止演绎 4.0 国际 进行许可。