yaozc
2024-03-25 9b2c90fa0abe194de3a32df97702fd009da88570
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java
@@ -209,4 +209,10 @@
     */
    @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);
}