| | |
| | | */ |
| | | package me.zhengjie.modules.system.repository; |
| | | |
| | | import io.swagger.models.auth.In; |
| | | import me.zhengjie.modules.system.domain.Dept; |
| | | import me.zhengjie.modules.system.domain.User; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | |
| | | |
| | | @Query(value = "select * from sys_user where dept_id = ?1 and enabled=?2", nativeQuery = true) |
| | | List<User> findByDeptIdInAndEnabledWithSingle(Long deptId, Boolean enabled); |
| | | |
| | | @Query(value = "select dept_id from sys_user where user_id = ?1",nativeQuery = true) |
| | | Long findDeptIdByUserId(Long userId); |
| | | } |