Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
42c42762
Commit
42c42762
authored
3 years ago
by
BugKing
Browse files
Options
Download
Email Patches
Plain Diff
fix: 修复SQL语句与实际表名大小写不一致的问题
parent
0b13bbc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml
+1
-1
...a/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml
backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml
+4
-4
...java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml
with
5 additions
and
5 deletions
+5
-5
backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml
+
1
-
1
View file @
42c42762
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"io.metersphere.base.mapper.ext.ExtApiDocumentMapper"
>
<select
id=
"findApiDocumentSimpleInfoByRequest"
resultType=
"io.metersphere.api.dto.document.ApiDocumentInfoDTO"
>
SELECT api.id,api.name FROM
A
pi_definition api WHERE api.protocol = 'HTTP'
SELECT api.id,api.name FROM
a
pi_definition api WHERE api.protocol = 'HTTP'
<if
test=
"request.trashEnable == true"
>
AND api.status = 'Trash'
</if>
...
...
This diff is collapsed.
Click to expand it.
backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml
+
4
-
4
View file @
42c42762
...
...
@@ -155,7 +155,7 @@
</select>
<select
id=
"planList"
resultMap=
"BaseResultMap"
parameterType=
"io.metersphere.track.request.testcase.QueryTestPlanRequest"
>
SELECT * FROM
TEST_PLAN
p LEFT JOIN test_plan_project t ON t.test_plan_id=p.ID
SELECT * FROM
test_plan
p LEFT JOIN test_plan_project t ON t.test_plan_id=p.ID
<where>
<if
test=
"request.workspaceId != null"
>
AND p.workspace_id = #{request.workspaceId}
...
...
@@ -186,7 +186,7 @@
</select>
<select
id=
"selectByIds"
resultMap=
"BaseResultMap"
parameterType=
"java.util.List"
>
SELECT * FROM
TEST_PLAN
p where p.id in
SELECT * FROM
test_plan
p where p.id in
<foreach
collection=
"list"
item=
"planId"
open=
"("
close=
")"
separator=
","
>
#{planId}
</foreach>
...
...
@@ -215,7 +215,7 @@
</select>
<select
id=
"selectTestPlanByRelevancy"
resultMap=
"BaseResultMap"
parameterType=
"io.metersphere.track.request.testcase.QueryTestPlanRequest"
>
SELECT * FROM
TEST_PLAN
p LEFT JOIN test_plan_project t ON t.test_plan_id=p.id
SELECT * FROM
test_plan
p LEFT JOIN test_plan_project t ON t.test_plan_id=p.id
<where>
AND (t.project_id = #{request.projectId} or p.project_id = #{request.projectId})
<if
test=
"request.scenarioId != null"
>
...
...
@@ -230,7 +230,7 @@
</where>
</select>
<select
id=
"findTestProjectNameByTestPlanID"
resultType=
"java.lang.String"
>
SELECT p.name FROM
TEST_PLAN
tp INNER JOIN project p ON p.id =tp.project_id
SELECT p.name FROM
test_plan
tp INNER JOIN project p ON p.id =tp.project_id
WHERE tp.id = #{0} limit 1;
</select>
<select
id=
"findScheduleCreateUserById"
resultType=
"java.lang.String"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment