|
@@ -16,7 +16,7 @@ public interface DepartmentRepository extends BasicRepository<Department> {
|
|
|
|
|
|
List<Department> findByStatusOrderBySortDesc(BaseStatusEnum status);
|
|
List<Department> findByStatusOrderBySortDesc(BaseStatusEnum status);
|
|
|
|
|
|
- @Query(value = "select * from department where status = 0 and type = :type and id not in ('12345','123456','1234567', '12345678') order by path, code", nativeQuery = true)
|
|
|
|
|
|
+ @Query(value = "select * from department where status = 0 and type = :type and id not in ('12345','123456','1234567', '12345678') order by code", nativeQuery = true)
|
|
List<Department> findSelect(@Param("type") Integer type);
|
|
List<Department> findSelect(@Param("type") Integer type);
|
|
|
|
|
|
Department findByName(String name);
|
|
Department findByName(String name);
|