Commit 76df6037 authored by xuepeng.chang's avatar xuepeng.chang

查询修改

parent 3129fdd0
...@@ -188,7 +188,7 @@ public class UserServiceImpl implements IUserService, IBaseController { ...@@ -188,7 +188,7 @@ public class UserServiceImpl implements IUserService, IBaseController {
Pageable pageable = new PageRequest(0, 500, new Sort(Sort.Direction.DESC, "id")); Pageable pageable = new PageRequest(0, 500, new Sort(Sort.Direction.DESC, "id"));
Page<User> userPageList = userRepository.findAll((root, query, cb) -> { Page<User> userPageList = userRepository.findAll((root, query, cb) -> {
query.where(root.get(Constants.ENCRYPTED_PHONE_NO).as(String.class).in(phones) query.where(root.get(Constants.ENCRYPTED_PHONE_NO).as(String.class).in(phones)
, root.get("tenant_id").as(Integer.class).in(tenantId)) , root.get("tenantId").as(Integer.class).in(tenantId))
; ;
return query.getRestriction(); return query.getRestriction();
}, pageable); }, pageable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment