weicd
2024-12-27 0766c42639d0e9b12d8dc2f93589b4713ced57a6
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);
}