From c63d9ac722fa2f4c7247e62a812bcc2012017aec Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Tue, 18 Apr 2023 19:38:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B7=A5=E4=BD=9C=E5=8F=B0=E4=B8=AD=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=BE=85=E5=8A=9E=E6=9F=A5=E5=88=B0=E4=BA=86=E5=B7=B2=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E7=9A=84=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025573 --user=宋天阳 【我的工作台】我的待办-功能用例数统计错误-用例状态是已完成,仍统计在我的待办中。 https://www.tapd.cn/55049933/s/1364029 --- .../base/mapper/ext/ExtTestCaseMapper.xml | 64 ++++++++++--------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index a24fe8027d..9b73a381be 100644 --- a/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -115,30 +115,30 @@ and test_case.id ${custom.operator} ( - select resource_id from custom_field_test_case where field_id = #{custom.id} - - - and ${custom.value} - - - and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13) - - - - - - and text_value - - - - - - and trim(both '"' from value) - - - - - + select resource_id from custom_field_test_case where field_id = #{custom.id} + + + and ${custom.value} + + + and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13) + + + + + + and text_value + + + + + + and trim(both '"' from value) + + + + + ) @@ -188,9 +188,9 @@ @@ -303,14 +303,16 @@ and test_case.id in ( - select resource_id from custom_field_test_case where concat('custom_single-',field_id) = #{key} + select resource_id from custom_field_test_case where concat('custom_single-',field_id) = + #{key} and trim(both '"' from value) in ) and test_case.id in ( - select resource_id from custom_field_test_case where concat('custom_multiple-',field_id) = #{key} + select resource_id from custom_field_test_case where concat('custom_multiple-',field_id) = + #{key} and JSON_CONTAINS(value, #{value})