From 3e80901b0ee0b16024a1d197bf551af577bf20bd Mon Sep 17 00:00:00 2001 From: jianxing Date: Thu, 27 Jul 2023 15:53:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=89=B9=E9=87=8F=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E6=B2=A1=E6=9C=89=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=9A=84=E5=8F=98=E6=9B=B4=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028162 --user=陈建星 【测试跟踪】测试计划关联功能用例-批量编辑执行结果-功能用例变更记录没内容 https://www.tapd.cn/55049933/s/1398419 --- .../base/mapper/ext/ExtTestCaseMapper.java | 2 + .../base/mapper/ext/ExtTestCaseMapper.xml | 9 +++- .../TestPlanTestCaseController.java | 2 +- .../plan/service/TestPlanTestCaseService.java | 1 - .../metersphere/service/TestCaseService.java | 50 +++++++++++++++++-- 5 files changed, 57 insertions(+), 7 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java index 48e62e38aa..065a278b9e 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java @@ -170,4 +170,6 @@ public interface ExtTestCaseMapper { void clearLatestVersion(@Param("refId") String refId); List getTestCaseRelateList(@Param("testCaseId") String testCaseId); + + List getTestCaseForLastResultLog(@Param("ids") List ids); } diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index bb3913f88a..53d853454c 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -1469,7 +1469,14 @@ SET latest = 0 where ref_id = #{refId} - +