refactor(功能用例): 用例评审脑图查询评审结果考虑多人评审
This commit is contained in:
parent
04f693f76a
commit
68afda90ac
|
@ -837,7 +837,12 @@
|
||||||
<select id="getMinderCaseReviewList" resultType="io.metersphere.functional.dto.FunctionalCaseMindDTO">
|
<select id="getMinderCaseReviewList" resultType="io.metersphere.functional.dto.FunctionalCaseMindDTO">
|
||||||
SELECT
|
SELECT
|
||||||
crfc.id as id,
|
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.module_id as moduleId,
|
||||||
fc.name as name,
|
fc.name as name,
|
||||||
fc.id as caseId,
|
fc.id as caseId,
|
||||||
|
@ -851,6 +856,9 @@
|
||||||
<if test="viewStatusUserId != null and viewStatusUserId != ''">
|
<if test="viewStatusUserId != null and viewStatusUserId != ''">
|
||||||
AND crh.create_user = #{viewStatusUserId}
|
AND crh.create_user = #{viewStatusUserId}
|
||||||
</if>
|
</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
|
order by crh.create_time desc ) as history_filter WHERE rn = 1 ) as history ON history.case_id = crfc.case_id
|
||||||
WHERE
|
WHERE
|
||||||
crfc.review_id = #{request.reviewId}
|
crfc.review_id = #{request.reviewId}
|
||||||
|
|
Loading…
Reference in New Issue