eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java
@@ -73,4 +73,7 @@ @Modifying @Query(value = " update sys_dept set sub_count = ?1 where dept_id = ?2 ",nativeQuery = true) void updateSubCntById(Integer count, Long id); @Query(value = "select pid from sys_dept where dept_id = ?1",nativeQuery = true) Long findPidIdByDeptId(Long deptId); }