fix(用例管理): 用例前后置列表返回num
This commit is contained in:
parent
4872c1827f
commit
8a5f6ceac1
|
@ -30,4 +30,7 @@ public class FunctionalCaseRelationshipDTO implements Serializable {
|
||||||
@Schema(description = "创建人名称")
|
@Schema(description = "创建人名称")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
|
@Schema(description = "num")
|
||||||
|
private String num;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,21 +22,22 @@
|
||||||
fc.NAME name,
|
fc.NAME name,
|
||||||
fc.version_id versionId,
|
fc.version_id versionId,
|
||||||
pv.`name` versionName,
|
pv.`name` versionName,
|
||||||
u.`name` userName
|
u.`name` userName,
|
||||||
|
fc.num
|
||||||
FROM
|
FROM
|
||||||
functional_case_relationship_edge fcre
|
functional_case_relationship_edge fcre
|
||||||
<if test="request.type != null and request.type != ''">
|
<if test="request.type != null and request.type != ''">
|
||||||
<choose>
|
<choose>
|
||||||
<when test="request.type == 'PRE'">
|
<when test="request.type == 'PRE'">
|
||||||
INNER JOIN functional_case fc ON fcre.target_id = fc.id
|
LEFT JOIN functional_case fc ON fcre.target_id = fc.id
|
||||||
</when>
|
</when>
|
||||||
<when test="request.type == 'POST'">
|
<when test="request.type == 'POST'">
|
||||||
INNER JOIN functional_case fc ON fcre.source_id = fc.id
|
LEFT JOIN functional_case fc ON fcre.source_id = fc.id
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
</if>
|
</if>
|
||||||
INNER JOIN `user` u ON fc.create_user = u.id
|
LEFT JOIN `user` u ON fc.create_user = u.id
|
||||||
INNER JOIN project_version pv ON pv.id = fc.version_id
|
LEFT JOIN project_version pv ON pv.id = fc.version_id
|
||||||
WHERE
|
WHERE
|
||||||
fc.deleted = false
|
fc.deleted = false
|
||||||
<if test="request.type != null and request.type != ''">
|
<if test="request.type != null and request.type != ''">
|
||||||
|
|
Loading…
Reference in New Issue