Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
eae01586
Commit
eae01586
authored
Nov 01, 2023
by
H2T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口bug修改
parent
f4632c5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
RouteServiceImpl.java
...n/amos/patrol/business/service/impl/RouteServiceImpl.java
+18
-13
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/RouteServiceImpl.java
View file @
eae01586
...
@@ -549,19 +549,24 @@ public class RouteServiceImpl extends ServiceImpl<RouteMapper, Route> implement
...
@@ -549,19 +549,24 @@ public class RouteServiceImpl extends ServiceImpl<RouteMapper, Route> implement
if
(
oldRoutePointList
!=
null
&&
oldRoutePointList
.
size
()
>
0
)
{
if
(
oldRoutePointList
!=
null
&&
oldRoutePointList
.
size
()
>
0
)
{
RoutePoint
RoutePoint
=
oldRoutePointList
.
get
(
0
);
RoutePoint
RoutePoint
=
oldRoutePointList
.
get
(
0
);
List
<
Long
>
split
=
Arrays
.
asList
(
RoutePoint
.
getExcludeItems
().
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
if
(!
""
.
equals
(
RoutePoint
.
getExcludeItems
())
&&
!
RoutePoint
.
getExcludeItems
().
isEmpty
()){
List
<
Long
>
split
=
Arrays
.
asList
(
RoutePoint
.
getExcludeItems
().
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
Set
<
Long
>
allPointInputItemIdSet
=
iPointInputItemDao
.
getPointInputItemByPointIdAndClassifyId
(
pointId
,
classifyId
)
.
stream
().
map
(
PointInputItem:
:
getId
)
Set
<
Long
>
allPointInputItemIdSet
=
iPointInputItemDao
.
getPointInputItemByPointIdAndClassifyId
(
pointId
,
classifyId
)
.
collect
(
Collectors
.
toSet
());
.
stream
().
map
(
PointInputItem:
:
getId
)
List
<
Long
>
otherClassify
=
new
ArrayList
<>();
.
collect
(
Collectors
.
toSet
());
split
.
forEach
(
x
->
{
List
<
Long
>
otherClassify
=
new
ArrayList
<>();
if
(!
allPointInputItemIdSet
.
contains
(
x
))
{
split
.
forEach
(
x
->
{
otherClassify
.
add
(
x
);
if
(!
allPointInputItemIdSet
.
contains
(
x
))
{
}
otherClassify
.
add
(
x
);
});
}
List
<
Long
>
lastList
=
Stream
.
concat
(
otherClassify
.
stream
(),
inputItemIds
.
stream
()).
distinct
().
collect
(
Collectors
.
toList
());
});
RoutePoint
.
setExcludeItems
(
StringUtils
.
join
(
lastList
.
toArray
(),
","
));
List
<
Long
>
lastList
=
Stream
.
concat
(
otherClassify
.
stream
(),
inputItemIds
.
stream
()).
distinct
().
collect
(
Collectors
.
toList
());
RoutePoint
.
setExcludeItems
(
StringUtils
.
join
(
lastList
.
toArray
(),
","
));
}
else
{
RoutePoint
.
setExcludeItems
(
StringUtils
.
join
(
inputItemIds
.
toArray
(),
","
));
}
iRoutePointDao
.
saveAndFlush
(
RoutePoint
);
iRoutePointDao
.
saveAndFlush
(
RoutePoint
);
}
}
}
}
...
...
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