BAOLH
2025-12-02 d8eddeba2456ad1c89df68979112ae98d82c7948
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);
}