@Query(value = " select t from WebSysOrganizationEntity t where 1 = 1 " +
" and (coalesce(?1) is null or t.orgId in ?1) " +
" order by t.orgOrder asc ")
Page<WebSysOrganizationEntity> findByPage(List<Long> orgIds,Pageable pageable);
java在使用jpa连接数据库进行数据查询时判断集合参数是否为空
于 2023-08-25 16:12:33 首次发布