fix(UI自动化): 修复场景查看引用-点击测试计划名称-未跳转到测试计划详情页

--bug=1016924 --user=刘瑶 【UI测试】场景查看引用-点击测试计划名称-未跳转到测试计划详情页 https://www.tapd.cn/55049933/s/1246082
This commit is contained in:
nathan.liu 2022-09-19 21:15:51 +08:00 committed by nathanliu2022
parent 63eebaa758
commit e461c61c7b
4 changed files with 7 additions and 9 deletions

View File

@ -4,10 +4,7 @@ import io.metersphere.base.domain.UiScenarioReference;
import io.metersphere.base.domain.UiScenarioReferenceExample; import io.metersphere.base.domain.UiScenarioReferenceExample;
import java.util.List; import java.util.List;
import io.metersphere.xpack.ui.dto.RefReq; import io.metersphere.xpack.ui.dto.*;
import io.metersphere.xpack.ui.dto.RefResp;
import io.metersphere.xpack.ui.dto.UiCheckRefDTO;
import io.metersphere.xpack.ui.dto.UiCheckRefReq;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
public interface UiScenarioReferenceMapper { public interface UiScenarioReferenceMapper {
@ -38,7 +35,7 @@ public interface UiScenarioReferenceMapper {
*/ */
List<RefResp> refList(@Param("request") RefReq request); List<RefResp> refList(@Param("request") RefReq request);
List<RefResp> getTestPlanRef(@Param("request") RefReq request); List<TestPlanRefResp> getTestPlanRef(@Param("request") RefReq request);
List<UiCheckRefDTO> checkRef(@Param("request")UiCheckRefReq request); List<UiCheckRefDTO> checkRef(@Param("request")UiCheckRefReq request);
} }

View File

@ -276,8 +276,9 @@
</if> </if>
</select> </select>
<select id="getTestPlanRef" parameterType="io.metersphere.xpack.ui.dto.RefReq" resultType="io.metersphere.xpack.ui.dto.RefResp"> <select id="getTestPlanRef" parameterType="io.metersphere.xpack.ui.dto.RefReq" resultType="io.metersphere.xpack.ui.dto.TestPlanRefResp">
SELECT tp.name AS scenarioName , us.id AS id, p.name AS project, us.create_time AS dateStr , w.name AS workspace, tp.id AS targetId SELECT tp.name AS scenarioName , us.id AS id, p.name AS project, us.create_time AS dateStr , w.name AS workspace, tp.id AS targetId,
p.workspace_id AS workspaceId, p.id AS projectId
FROM FROM
`test_plan_ui_scenario` us LEFT JOIN `test_plan` tp ON us.test_plan_id = tp.id `test_plan_ui_scenario` us LEFT JOIN `test_plan` tp ON us.test_plan_id = tp.id
LEFT JOIN project p ON tp.project_id = p.id LEFT JOIN project p ON tp.project_id = p.id

@ -1 +1 @@
Subproject commit 2860b379a3a4d363df531b002bcd699c01c8a29f Subproject commit 4ea327cd5c2e98fe8630e25ffa90b6195755e116

@ -1 +1 @@
Subproject commit a93dfd4ffcde2e8344d38bd218b63c9a76e989d5 Subproject commit e2a4740e8fcc53d85778f83e7d110da970e4a919