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
5c36c998
Commit
5c36c998
authored
Apr 11, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
两个规定-报检一键提交修改
parent
c6897733
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+3
-4
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/PlanTaskServiceImpl.java
View file @
5c36c998
...
@@ -1939,13 +1939,11 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1939,13 +1939,11 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
// 查询所有的
// 查询所有的
Map
<
String
,
ESTaskDetailDto
>
esTaskDetailDtoMap
=
allESTaskDetailDtos
.
stream
().
collect
(
Collectors
.
toMap
(
ESTaskDetailDto:
:
getId
,
Function
.
identity
()));
Map
<
String
,
ESTaskDetailDto
>
esTaskDetailDtoMap
=
allESTaskDetailDtos
.
stream
().
collect
(
Collectors
.
toMap
(
ESTaskDetailDto:
:
getId
,
Function
.
identity
()));
// 只更新未完成状态
// 只更新未完成状态
planTaskDetails
.
stream
().
filter
(
p
->
PlanTaskDetailStatusEnum
.
NOTSTARTED
.
getValue
().
equals
(
p
.
getStatus
())).
collect
(
Collectors
.
toList
()).
forEach
(
planTaskDetail
->
{
planTaskDetails
.
stream
().
filter
(
p
->
PlanTaskDetailStatusEnum
.
NOTSTARTED
.
getValue
().
equals
(
p
.
getStatus
())).
collect
(
Collectors
.
toList
()).
forEach
(
planTaskDetail
->
{
ESTaskDetailDto
esTaskDetailDto
=
esTaskDetailDtoMap
.
get
(
Objects
.
toString
(
planTaskDetail
.
getId
()));
ESTaskDetailDto
esTaskDetailDto
=
esTaskDetailDtoMap
.
get
(
Objects
.
toString
(
planTaskDetail
.
getId
()));
JSONObject
appCheckInput
=
esTaskDetailDto
.
getAppCheckInput
();
JSONObject
appCheckInput
=
esTaskDetailDto
.
getAppCheckInput
();
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
mapList
=
(
Map
<
String
,
List
<
Map
<
String
,
Object
>>>)
JSON
.
parse
(
appCheckInput
.
toJSONString
());
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
mapList
=
(
Map
<
String
,
List
<
Map
<
String
,
Object
>>>)
JSON
.
parse
(
appCheckInput
.
toJSONString
());
if
(
mapList
.
isEmpty
())
{
if
(!
mapList
.
isEmpty
())
{
return
;
}
List
<
AppCheckInputRespone
>
appCheckInputRespones
=
new
ArrayList
<>();
List
<
AppCheckInputRespone
>
appCheckInputRespones
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
map
:
mapList
.
get
(
"items"
))
{
for
(
Map
<
String
,
Object
>
map
:
mapList
.
get
(
"items"
))
{
AppCheckInputRespone
appCheckInputRespone
=
new
AppCheckInputRespone
();
AppCheckInputRespone
appCheckInputRespone
=
new
AppCheckInputRespone
();
...
@@ -1966,6 +1964,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1966,6 +1964,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
appCheckInputRespones
.
add
(
appCheckInputRespone
);
appCheckInputRespones
.
add
(
appCheckInputRespone
);
}
}
appCheckInput
.
put
(
"items"
,
appCheckInputRespones
);
appCheckInput
.
put
(
"items"
,
appCheckInputRespones
);
}
esTaskDetailDto
.
setPointImgUrls
(
new
ArrayList
<>());
esTaskDetailDto
.
setPointImgUrls
(
new
ArrayList
<>());
esTaskDetailDto
.
setAppCheckInput
(
appCheckInput
);
esTaskDetailDto
.
setAppCheckInput
(
appCheckInput
);
esTaskDetailDto
.
setPointStatus
(
String
.
valueOf
(
PlanTaskDetailIsFinishEnum
.
FINISHED
.
getValue
()));
esTaskDetailDto
.
setPointStatus
(
String
.
valueOf
(
PlanTaskDetailIsFinishEnum
.
FINISHED
.
getValue
()));
...
...
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