From c89e439ab587a0371589bce220def3e9817e7601 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 21 Jan 2021 18:39:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):?= =?UTF-8?q?=20JSON-SCHEMA=20=E6=95=B0=E6=8D=AE=E7=BC=BA=E9=99=B7=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtApiTestCaseMapper.xml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index 62e675723d..2ac9acf970 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -145,37 +145,37 @@ - and atc.name + and t1.name - and atc.update_time + and t1.update_time - and atc.create_time + and t1.create_time - and atc.priority + and t1.priority - and atc.user_id + and t1.user_id - and atc.tags + and t1.tags @@ -237,14 +237,14 @@ SELECT - t1.*, - t2.STATUS AS execResult, - t2.create_time AS execTime, - u2.NAME AS createUser, - u1.NAME AS updateUser + t1.*, + t2.STATUS AS execResult, + t2.create_time AS execTime, + u2.NAME AS createUser, + u1.NAME AS updateUser FROM - api_test_case t1 - LEFT JOIN api_definition_exec_result t2 ON t1.last_result_id = t2.id - LEFT JOIN USER u1 ON t1.update_user_id = u1.id - LEFT JOIN USER u2 ON t1.create_user_id = u2.id - LEFT JOIN USER u3 ON t2.user_id = u3.id + api_test_case t1 + LEFT JOIN api_definition_exec_result t2 ON t1.last_result_id = t2.id + LEFT JOIN USER u1 ON t1.update_user_id = u1.id + LEFT JOIN USER u2 ON t1.create_user_id = u2.id + LEFT JOIN USER u3 ON t2.user_id = u3.id @@ -230,32 +230,30 @@ order by t1.${order.name} ${order.type} - +