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
41a3d7fa
Commit
41a3d7fa
authored
Nov 11, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务超时创建漏检记录
parent
d95cbd34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
32 deletions
+31
-32
RouteServiceImpl.java
...n/amos/patrol/business/service/impl/RouteServiceImpl.java
+31
-32
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 @
41a3d7fa
...
@@ -268,44 +268,43 @@ public class RouteServiceImpl extends ServiceImpl<RouteMapper, Route> implement
...
@@ -268,44 +268,43 @@ public class RouteServiceImpl extends ServiceImpl<RouteMapper, Route> implement
points
.
add
(
rp
);
points
.
add
(
rp
);
pointIds
.
add
(
rp
.
getPointId
());
pointIds
.
add
(
rp
.
getPointId
());
});
});
List
<
RoutePoint
>
savedPoints
=
iRoutePointDao
.
saveAll
(
points
);
List
<
Map
<
String
,
Object
>>
pointRefItem
=
pointMapper
.
getPointRefItem
(
pointIds
);
List
<
Map
<
String
,
Object
>>
pointRefItem
=
pointMapper
.
getPointRefItem
(
pointIds
);
for
(
RoutePoint
rt:
routePoints
if
(!
savedPoints
.
isEmpty
())
{
)
{
savedPoints
.
forEach
(
rp
->
{
em
.
persist
(
rt
);
String
excludeItems
=
rp
.
getExcludeItems
();
em
.
flush
();
Set
<
Long
>
excludeItemIdSet
=
new
HashSet
<>();
em
.
clear
();
if
(
excludeItems
!=
null
&&
!
excludeItems
.
isEmpty
())
{
String
[]
itemIds
=
excludeItems
.
split
(
","
);
String
excludeItems
=
rt
.
getExcludeItems
();
for
(
String
itemId
:
itemIds
)
{
Set
<
Long
>
excludeItemIdSet
=
new
HashSet
<>();
try
{
if
(
excludeItems
!=
null
&&
!
excludeItems
.
isEmpty
())
{
excludeItemIdSet
.
add
(
Long
.
valueOf
(
itemId
));
String
[]
itemIds
=
excludeItems
.
split
(
","
);
}
catch
(
Exception
e
)
{
for
(
String
itemId
:
itemIds
)
{
}
try
{
excludeItemIdSet
.
add
(
Long
.
valueOf
(
itemId
));
}
catch
(
Exception
e
)
{
}
}
}
}
}
final
int
[]
orderNum
=
{
1
};
final
int
[]
orderNum
=
{
1
};
pointRefItem
.
forEach
(
ref
->
{
pointRefItem
.
forEach
(
ref
->
{
Long
pointId
=
rp
.
getPointId
();
Long
pointId
=
rt
.
getPointId
();
if
(
pointId
.
equals
(
ref
.
get
(
"pointId"
))){
if
(
pointId
.
equals
(
ref
.
get
(
"pointId"
)))
{
if
(!
excludeItemIdSet
.
contains
(
ref
.
get
(
"itemId"
)))
{
if
(!
excludeItemIdSet
.
contains
(
ref
.
get
(
"itemId"
)))
{
RoutePointItem
item
=
new
RoutePointItem
();
RoutePointItem
item
=
new
RoutePointItem
(
);
item
.
setPointInputItemId
((
Long
)
ref
.
get
(
"id"
)
);
item
.
setPointInputItemId
((
Long
)
ref
.
get
(
"id"
));
item
.
setRoutePointId
(
rp
.
getId
(
));
item
.
setRoutePointId
(
rt
.
getId
()
);
item
.
setPointClassifyId
(
ref
.
containsKey
(
"classifyId"
)?
Long
.
valueOf
(
ref
.
get
(
"classifyId"
).
toString
()):
null
);
item
.
setPointClassifyId
(
ref
.
containsKey
(
"classifyId"
)?
Long
.
valueOf
(
ref
.
get
(
"classifyId"
).
toString
()):
null
);
item
.
setOrderNo
(
orderNum
[
0
]++
);
item
.
setOrderNo
(
orderNum
[
0
]++
);
item
.
setPointId
(
pointId
);
item
.
setPointId
(
pointId
);
item
.
setIsDelete
(
false
);
item
.
setIsDelete
(
false
);
items
.
add
(
item
);
items
.
add
(
item
);
}
}
}
}
}
);
});
});
if
(!
items
.
isEmpty
())
{
if
(!
items
.
isEmpty
())
{
repositoryTs
.
batchSave
(
items
);
for
(
RoutePointItem
routePointItem:
items
)
{
iRoutePointItemDao
.
saveAndFlush
(
routePointItem
);
}
}
}
}
}
}
}
...
...
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