weicd
2023-09-28 d0c51ac702c57f2cae84a8d879a5b605f2dab630
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);
}