Commit 9939b6e0 authored by 唐峰's avatar 唐峰

手机号租户查询

parent 708a5ee9
......@@ -195,7 +195,7 @@ public class UserServiceImpl implements IUserService, IBaseController {
List<User> userList = userPageList.getContent();
if (userList.isEmpty()) {
userList = userRepository.findAll((root, query, cb) -> {
query.where(root.get(Constants.PHONE_NO).as(String.class).in(phones), root.get("tenant_id").as(Integer.class).in(tenantId));
query.where(root.get(Constants.PHONE_NO).as(String.class).in(phones), root.get("tenantId").as(Integer.class).in(tenantId));
return query.getRestriction();
});
}
......
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