czt
2025-11-27 1f455e5cda9016054c531bbae6b1639fe646628f
fzzy-igdss-core/src/main/java/com/fzzy/igds/repository/DeptRepository.java
@@ -19,11 +19,20 @@
    /**
     * 根据id获取信息
     *
     * @param id
     * @param parentId
     * @return
     */
    @Query("from Dept where id like:parentId order by id")
    List<Dept> getDataByParentId(@Param("parentId") String parentId);
    /**
     * 根据companyId获取信息
     *
     * @param companyId
     * @return
     */
    @Query("from Dept where id =:id order by id")
    Dept getDataById(@Param("id") String id);
    List<Dept> getDataById(@Param("id") String id);
    /**
     * 根据companyId获取信息