fix(用例管理): 修复用例详情关联缺陷列表预览内容错误问题

--bug=1036117 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036117
This commit is contained in:
guoyuqi 2024-03-13 19:04:29 +08:00 committed by 刘瑞斌
parent 941ebbb7b9
commit 435e1c193d
5 changed files with 10 additions and 3 deletions

View File

@ -46,6 +46,9 @@ public class BugProviderDTO implements Serializable {
@Schema(description = "标签")
private List<String> tags;
@Schema(description = "内容")
private String content;
@Schema(description = "创建时间")
private Long createTime;

View File

@ -110,11 +110,13 @@
b.title as name,
b.handle_user as handleUser,
createUser.name AS createUser,
bc.description AS content,
b.`status` as status,
b.tags as tag,
b.create_time createTime
FROM
bug b
inner join bug_content bc on b.id = bc.bug_id
INNER JOIN user createUser ON b.create_user = createUser.id
WHERE
b.deleted = #{deleted}

View File

@ -75,11 +75,13 @@
b.title as name,
b.handle_user handleUser,
b.`status`,
bc.description as content,
brc.test_plan_id testPlanId,
tp.name testPlanName
FROM
bug_relation_case brc
INNER JOIN bug b ON brc.bug_id = b.id
INNER JOIN bug_content bc ON brc.bug_id = bc.bug_id
left join test_plan tp on brc.test_plan_id = tp.id
where b.deleted = false
<include refid="queryWhereConditionByProvider"/>

View File

@ -34,7 +34,7 @@
<span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span>
<template #content>
<div class="max-w-[600px] text-[14px] text-[var(--color-text-1)]">
{{ record.name }}
{{ record.content }}
</div>
</template>
</a-popover>

View File

@ -47,7 +47,7 @@
<span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span>
<template #content>
<div class="max-w-[600px] text-[14px] text-[var(--color-text-1)]">
{{ record.name }}
{{ record.content }}
</div>
</template>
</a-popover>
@ -127,7 +127,7 @@
<span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span>
<template #content>
<div class="max-w-[600px] text-[14px] text-[var(--color-text-1)]">
{{ record.name }}
{{ record.content }}
</div>
</template>
</a-popover>