yaozc2021
2025-04-01 379dc731efb3dbe2f4fb5dc4e2fa38a99360bab9
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);
}