Skip to content

Commit

Permalink
#I8F61B 联系人查询,类别字段新增判空处理
Browse files Browse the repository at this point in the history
Signed-off-by: CollectBugs <17853522814@163.com>
  • Loading branch information
CollectBugs committed Nov 15, 2023
1 parent ecacfb1 commit 16b417a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public interface ContactsRepository extends JpaRepository<Contacts, String> {
* @param pageRequest
* @return
*/
@Query("select c from Contacts c where c.organ IN :organs and c.ckind = :ckind AND c.shares = 'all' AND c.datastatus = false")
@Query("select c from Contacts c where c.organ IN :organs and (:ckind IS NULL OR c.ckind = :ckind) AND c.shares = 'all' AND c.datastatus = false")
Page<Contacts> findByOrganInAndCkindAndSharesAllAndDatastatusFalse(@Param("organs") Collection<String> organs, @Param("ckind") String ckind, Pageable pageRequest);

Page<Contacts> findByDatastatus(boolean b, Pageable pageRequest);
Expand Down

0 comments on commit 16b417a

Please sign in to comment.