| | |
| | | */ |
| | | @Query(value = "SELECT * FROM sys_user WHERE user_id = ?;", nativeQuery = true) |
| | | List<User> findByUserId(Long user_id); |
| | | |
| | | @Query(value = "select * FROM sys_user WHERE user_id IN ?1 and enabled = true",nativeQuery = true) |
| | | void findByUserIdIn(List<Long> userIds, Long companyId); |
| | | |
| | | @Query(value = "select * FROM sys_user WHERE user_id IN ?1 and company_id = ?2 and enabled = true",nativeQuery = true) |
| | | void findByUserIdInAndCompanyId(List<Long> userIds, Long companyId); |
| | | |
| | | /** |
| | | * 根据用户昵称查询 |
| | | * |
| | | * @param nickName 用户昵称 |
| | | * @return / |
| | | */ |
| | | User findByNickName(String nickName); |
| | | } |