diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseRelationshipDTO.java b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseRelationshipDTO.java
index 52b5e73c12..2ca56932ff 100644
--- a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseRelationshipDTO.java
+++ b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseRelationshipDTO.java
@@ -30,4 +30,7 @@ public class FunctionalCaseRelationshipDTO implements Serializable {
@Schema(description = "创建人名称")
private String userName;
+ @Schema(description = "num")
+ private String num;
+
}
diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseRelationshipEdgeMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseRelationshipEdgeMapper.xml
index ca8f431b82..9327baff09 100644
--- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseRelationshipEdgeMapper.xml
+++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseRelationshipEdgeMapper.xml
@@ -22,21 +22,22 @@
fc.NAME name,
fc.version_id versionId,
pv.`name` versionName,
- u.`name` userName
+ u.`name` userName,
+ fc.num
FROM
functional_case_relationship_edge fcre
- INNER JOIN functional_case fc ON fcre.target_id = fc.id
+ LEFT JOIN functional_case fc ON fcre.target_id = fc.id
- INNER JOIN functional_case fc ON fcre.source_id = fc.id
+ LEFT JOIN functional_case fc ON fcre.source_id = fc.id
- INNER JOIN `user` u ON fc.create_user = u.id
- INNER JOIN project_version pv ON pv.id = fc.version_id
+ LEFT JOIN `user` u ON fc.create_user = u.id
+ LEFT JOIN project_version pv ON pv.id = fc.version_id
WHERE
fc.deleted = false