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
e85db084
Commit
e85db084
authored
Nov 13, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序批量提交BUG修改
parent
f64bfb3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+17
-16
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 @
e85db084
...
@@ -1124,23 +1124,24 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1124,23 +1124,24 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
Optional
<
PlanTask
>
planTaskOptional
=
iplanTaskDao
.
findById
(
Long
.
valueOf
(
id
));
Optional
<
PlanTask
>
planTaskOptional
=
iplanTaskDao
.
findById
(
Long
.
valueOf
(
id
));
PlanTask
planTask
=
planTaskOptional
.
get
();
PlanTask
planTask
=
planTaskOptional
.
get
();
planTask
.
setFinishStatus
(
XJConstant
.
TASK_STATUS_FINISH
);
if
(
planTask
.
getFinishStatus
()
==
XJConstant
.
TASK_STATUS_DEAL
)
{
if
(
planTask
.
getRiskStatus
()
!=
1
)
{
planTask
.
setFinishStatus
(
XJConstant
.
TASK_STATUS_FINISH
);
planTask
.
setRiskStatus
(
XJConstant
.
NORISK_NUM
);
if
(
planTask
.
getRiskStatus
()
!=
1
)
{
}
planTask
.
setRiskStatus
(
XJConstant
.
NORISK_NUM
);
iplanTaskDao
.
saveAndFlush
(
planTask
);
}
List
<
PlanTaskDetail
>
planTaskDetails
=
iPlanTaskDetailDao
.
findAllByTaskNoAndStatus
(
planTask
.
getId
(),
PlanTaskDetailStatusEnum
.
NOTSTARTED
.
getValue
());
iplanTaskDao
.
saveAndFlush
(
planTask
);
if
(!
planTaskDetails
.
isEmpty
())
{
List
<
PlanTaskDetail
>
planTaskDetails
=
iPlanTaskDetailDao
.
findAllByTaskNoAndStatus
(
planTask
.
getId
(),
PlanTaskDetailStatusEnum
.
NOTSTARTED
.
getValue
());
planTaskDetails
.
stream
().
forEach
(
action
->
{
if
(!
planTaskDetails
.
isEmpty
())
{
action
.
setStatus
(
PlanTaskDetailStatusEnum
.
QUALIFIED
.
getValue
());
planTaskDetails
.
stream
().
forEach
(
action
->
{
iPlanTaskDetailDao
.
saveAndFlush
(
action
);
action
.
setStatus
(
PlanTaskDetailStatusEnum
.
QUALIFIED
.
getValue
());
planTaskDetailMapper
.
finishTaskDetail
(
action
.
getId
(),
action
.
getPointId
(),
iPlanTaskDetailDao
.
saveAndFlush
(
action
);
action
.
getPlanTask
().
getId
(),
userId
);
planTaskDetailMapper
.
finishTaskDetail
(
action
.
getId
(),
action
.
getPointId
(),
});
action
.
getPlanTask
().
getId
(),
userId
);
});
}
// 生成巡检记录
jobService
.
createCheckRecord
(
planTask
,
userId
);
}
}
// 生成巡检记录
jobService
.
createCheckRecord
(
planTask
,
userId
);
}
}
...
...
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