Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
cd093b2e
Commit
cd093b2e
authored
Mar 05, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询 无效字符处理
parent
d8222a66
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
TestScenarioServiceImpl.java
.../java/com/ruoyi/service/impl/TestScenarioServiceImpl.java
+3
-0
TestTypeServiceImpl.java
...main/java/com/ruoyi/service/impl/TestTypeServiceImpl.java
+3
-0
TestUseCaseServiceImpl.java
...n/java/com/ruoyi/service/impl/TestUseCaseServiceImpl.java
+3
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TestScenarioServiceImpl.java
View file @
cd093b2e
...
@@ -20,6 +20,9 @@ public class TestScenarioServiceImpl extends ServiceImpl<TestScenarioMapper, Tes
...
@@ -20,6 +20,9 @@ public class TestScenarioServiceImpl extends ServiceImpl<TestScenarioMapper, Tes
@Override
@Override
public
List
<
TestScenario
>
selectTestScenarioList
(
TestScenarioRequest
testScenarioRequest
){
public
List
<
TestScenario
>
selectTestScenarioList
(
TestScenarioRequest
testScenarioRequest
){
if
(
testScenarioRequest
.
getTestScenario
()
!=
null
&&
(
testScenarioRequest
.
getTestScenario
().
contains
(
"%"
)
||
testScenarioRequest
.
getTestScenario
().
contains
(
"_"
)
)){
testScenarioRequest
.
setTestScenario
(
testScenarioRequest
.
getTestScenario
().
toString
().
replaceAll
(
"%"
,
"/%"
).
replaceAll
(
"_"
,
"/_"
));
}
return
testScenarioMapper
.
selectTestScenarioList
(
testScenarioRequest
);
return
testScenarioMapper
.
selectTestScenarioList
(
testScenarioRequest
);
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/TestTypeServiceImpl.java
View file @
cd093b2e
...
@@ -29,6 +29,9 @@ public class TestTypeServiceImpl extends ServiceImpl<TestTypeMapper, TestType> i
...
@@ -29,6 +29,9 @@ public class TestTypeServiceImpl extends ServiceImpl<TestTypeMapper, TestType> i
@Override
@Override
public
List
<
TestType
>
selectTestTypeList
(
TestTypeRequest
testTypeRequest
)
public
List
<
TestType
>
selectTestTypeList
(
TestTypeRequest
testTypeRequest
)
{
{
if
(
testTypeRequest
.
getTestType
()
!=
null
&&
(
testTypeRequest
.
getTestType
().
contains
(
"%"
)
||
testTypeRequest
.
getTestType
().
contains
(
"_"
)
)){
testTypeRequest
.
setTestType
(
testTypeRequest
.
getTestType
().
toString
().
replaceAll
(
"%"
,
"/%"
).
replaceAll
(
"_"
,
"/_"
));
}
return
testTypeMapper
.
selectTestTypeList
(
testTypeRequest
);
return
testTypeMapper
.
selectTestTypeList
(
testTypeRequest
);
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/TestUseCaseServiceImpl.java
View file @
cd093b2e
...
@@ -31,6 +31,9 @@ public class TestUseCaseServiceImpl extends ServiceImpl<TestUseCaseMapper, TestU
...
@@ -31,6 +31,9 @@ public class TestUseCaseServiceImpl extends ServiceImpl<TestUseCaseMapper, TestU
*/
*/
@Override
@Override
public
List
<
TestUseCase
>
selectseCaseList
(
TestUserCaseRequest
testUserCaseRequest
){
public
List
<
TestUseCase
>
selectseCaseList
(
TestUserCaseRequest
testUserCaseRequest
){
if
(
testUserCaseRequest
.
getSearchKeywords
()
!=
null
&&
(
testUserCaseRequest
.
getSearchKeywords
().
contains
(
"%"
)
||
testUserCaseRequest
.
getSearchKeywords
().
contains
(
"_"
)
)){
testUserCaseRequest
.
setSearchKeywords
(
testUserCaseRequest
.
getSearchKeywords
().
toString
().
replaceAll
(
"%"
,
"/%"
).
replaceAll
(
"_"
,
"/_"
));
}
return
testUseCaseMapper
.
selectseCaseList
(
testUserCaseRequest
);
return
testUseCaseMapper
.
selectseCaseList
(
testUserCaseRequest
);
}
}
...
...
Write
Preview
Markdown
is supported
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