Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
924fa3d7
Commit
924fa3d7
authored
3 years ago
by
shiziyuan9527
Committed by
刘瑞斌
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(场景自动化): 自定义ID检查问题
parent
7342aac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java
+3
-1
...java/io/metersphere/api/service/ApiAutomationService.java
with
3 additions
and
1 deletion
+3
-1
backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java
+
3
-
1
View file @
924fa3d7
...
...
@@ -294,7 +294,9 @@ public class ApiAutomationService {
private
void
checkCustomNumExist
(
SaveApiScenarioRequest
request
)
{
ApiScenarioExample
example
=
new
ApiScenarioExample
();
example
.
createCriteria
().
andCustomNumEqualTo
(
request
.
getCustomNum
())
example
.
createCriteria
()
.
andCustomNumEqualTo
(
request
.
getCustomNum
())
.
andProjectIdEqualTo
(
request
.
getProjectId
())
.
andIdNotEqualTo
(
request
.
getId
());
List
<
ApiScenario
>
list
=
apiScenarioMapper
.
selectByExample
(
example
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
...
...
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
Menu
Projects
Groups
Snippets
Help