Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
signal
traffic-signal-platform
Commits
d28c245c
Commit
d28c245c
authored
May 22, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 快速特勤,校验分组名称不能重复
parent
5eb8f93d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
SpecialServiceServiceImpl.java
...net/wanji/web/service/impl/SpecialServiceServiceImpl.java
+10
-1
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/SpecialServiceServiceImpl.java
View file @
d28c245c
...
...
@@ -667,9 +667,18 @@ public class SpecialServiceServiceImpl implements SpecialServiceService {
@Override
@Transactional
public
void
updateGroup
(
GroupListVO
groupListVO
)
{
// 校验分组名称不能重复
List
<
GroupListVO
.
GroupListElement
>
groupList
=
groupListVO
.
getGroupList
();
Set
<
String
>
groupNameSet
=
new
HashSet
<>();
for
(
GroupListVO
.
GroupListElement
groupListElement
:
groupList
)
{
String
groupName
=
groupListElement
.
getGroupName
();
if
(!
groupNameSet
.
add
(
groupName
))
{
throw
new
RuntimeException
(
"分组名称不能重复"
);
}
}
Integer
specialServiceId
=
groupListVO
.
getSpecialServiceId
();
List
<
GroupListVO
.
GroupListElement
>
groupList
=
groupListVO
.
getGroupList
();
for
(
GroupListVO
.
GroupListElement
groupListElement
:
groupList
)
{
String
groupName
=
groupListElement
.
getGroupName
();
if
(!
"未分组路口"
.
equals
(
groupName
)){
...
...
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