mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 20:49:56 +08:00
fix(测试跟踪): 修改测试计划实时报告搜索性能测试资源池取值错误的问题
--bug=1024600 --user=宋天阳 【测试跟踪】测试计划-性能用例-修改配置修改资源池后未按修改的资源池执行 https://www.tapd.cn/55049933/s/1352662
This commit is contained in:
parent
281d52b821
commit
9694ad7768
@ -372,16 +372,14 @@
|
||||
<select id="getResourcePoolByPlanId" resultType="java.lang.String">
|
||||
SELECT ltr.test_resource_pool_id
|
||||
FROM test_plan_load_case tplc
|
||||
INNER JOIN load_test_report ltr
|
||||
ON tplc.load_case_id = ltr.test_id
|
||||
INNER JOIN load_test_report ltr ON tplc.load_report_id = ltr.id
|
||||
WHERE tplc.test_plan_id = #{0}
|
||||
</select>
|
||||
|
||||
<select id="getCaseResourcePoolByPlanId" resultType="java.lang.String">
|
||||
SELECT lt.test_resource_pool_id
|
||||
|
||||
SELECT tplc.test_resource_pool_id
|
||||
FROM test_plan_load_case tplc
|
||||
INNER JOIN load_test lt
|
||||
ON tplc.load_case_id = lt.id
|
||||
WHERE tplc.test_plan_id = #{0}
|
||||
WHERE tplc.test_plan_id = #{0};
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -181,7 +181,7 @@ public class TestPlanLoadCaseController {
|
||||
|
||||
@GetMapping("/resource/pool/{planId}")
|
||||
public List<String> getResourcePoolByPlanId(@PathVariable String planId) {
|
||||
return testPlanLoadCaseService.getResourcePoolByPlanId(planId);
|
||||
return testPlanLoadCaseService.getResourcePoolFromReportByPlanId(planId);
|
||||
}
|
||||
|
||||
@GetMapping("/resource/pool/case/{planId}")
|
||||
|
@ -713,7 +713,7 @@ public class TestPlanLoadCaseService {
|
||||
.collect(Collectors.toList()).isEmpty();
|
||||
}
|
||||
|
||||
public List<String> getResourcePoolByPlanId(String planId) {
|
||||
public List<String> getResourcePoolFromReportByPlanId(String planId) {
|
||||
return extTestPlanLoadCaseMapper.getResourcePoolByPlanId(planId);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user