refactor(功能用例): 用例评审脑图查询评审结果考虑多人评审

This commit is contained in:
guoyuqi 2024-07-12 11:29:56 +08:00 committed by 刘瑞斌
parent 04f693f76a
commit 68afda90ac
1 changed files with 9 additions and 1 deletions

View File

@ -837,7 +837,12 @@
<select id="getMinderCaseReviewList" resultType="io.metersphere.functional.dto.FunctionalCaseMindDTO">
SELECT
crfc.id as id,
IFNULL(history.`status`, fc.review_status) as reviewStatus,
<if test="viewStatusUserId != null and viewStatusUserId != ''">
IFNULL(history.`status`, 'UN_REVIEWED') as reviewStatus,
</if>
<if test="viewStatusUserId == null or viewStatusUserId == ''">
IFNULL(history.`status`, crfc.status) as reviewStatus,
</if>
fc.module_id as moduleId,
fc.name as name,
fc.id as caseId,
@ -851,6 +856,9 @@
<if test="viewStatusUserId != null and viewStatusUserId != ''">
AND crh.create_user = #{viewStatusUserId}
</if>
<if test="viewStatusUserId == null or viewStatusUserId == ''">
AND crh.create_user = null
</if>
order by crh.create_time desc ) as history_filter WHERE rn = 1 ) as history ON history.case_id = crfc.case_id
WHERE
crfc.review_id = #{request.reviewId}