|
@@ -16,7 +16,7 @@ public interface DepartmentRepository extends BasicRepository<Department> {
|
|
|
|
|
|
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);
|
|
|
|
|
|
Department findByName(String name);
|