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
22067365
Commit
22067365
authored
Jan 07, 2025
by
麻笑宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_bugfix' into develop_tzs_bugfix
parents
a17dc594
3ec15528
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
26 deletions
+33
-26
JobService.java
.../main/java/com/yeejoin/amos/patrol/quartz/JobService.java
+31
-24
dbTemplate_plan_task.xml
...biz/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/quartz/JobService.java
View file @
22067365
...
...
@@ -228,7 +228,7 @@ public class JobService implements IJobService {
updatePlanTaskAndDetailStatus
(
planTask
);
}
}
else
{
if
(
endTime
.
getTime
()
<
timestamp
)
{
if
(
endTime
.
getTime
()
>
timestamp
)
{
log
.
error
(
"项目初始化进行中监听器任务监控2222========"
);
ids
=
planTaskMapper
.
selectPlanTaskIdList
(
planTask
.
getPlanId
(),
PlanTaskFinishStatusEnum
.
NOTSTARTED
.
getValue
());
if
(!
ObjectUtils
.
isEmpty
(
ids
))
{
...
...
@@ -261,6 +261,10 @@ public class JobService implements IJobService {
// TODO Auto-generated catch block
log
.
info
(
e
.
getMessage
());
e
.
printStackTrace
();
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
log
.
error
(
"initPlanTaskJob execute error====>"
,
e
.
getMessage
());
e
.
printStackTrace
();
}
}
// 重新更新统计表 -- 只更新当天统计的数据
...
...
@@ -279,30 +283,33 @@ public class JobService implements IJobService {
}
List
<
ESPlanTaskListDto
>
esPlanTaskListDtos
=
new
ArrayList
<>();
for
(
String
id
:
ids
)
{
ESPlanTaskListDto
esPlanTaskListDto
=
esPlanTaskList
.
findById
(
id
).
get
();
esPlanTaskListDto
.
setFinishStatus
(
String
.
valueOf
(
status
));
Map
task
=
planTaskMapper
.
queryPlanTaskById
(
Long
.
valueOf
(
id
));
esPlanTaskListDto
.
setFinshNum
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"finshNum"
))
?
"0"
:
task
.
get
(
"finshNum"
).
toString
());
esPlanTaskListDto
.
setOmission
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"omission"
))
?
"0"
:
task
.
get
(
"omission"
).
toString
());
esPlanTaskListDto
.
setUnqualified
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"unqualified"
))
?
"0"
:
task
.
get
(
"unqualified"
).
toString
());
esPlanTaskListDto
.
setUnplan
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"unplan"
))
?
"0"
:
task
.
get
(
"unplan"
).
toString
());
esPlanTaskListDto
.
setTaskPlanNum
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"taskPlanNum"
))
?
"0"
:
task
.
get
(
"taskPlanNum"
).
toString
());
List
<
PlanTaskDetail
>
planTaskDetailList
=
planTaskMapper
.
selectTaskDetails
(
"('"
+
id
+
"')"
);
Long
routId
=
planTaskMapper
.
selectRoutId
(
id
);
List
<
ESTaskDetailDto
>
esTaskDetailDtos
=
new
ArrayList
<>();
for
(
PlanTaskDetail
taskDetail
:
planTaskDetailList
)
{
AppPointCheckRespone
appPointCheckRespone
=
planService
.
queryPointPlanTaskDetail
(
null
,
null
,
null
,
taskDetail
.
getTaskNo
(),
taskDetail
.
getPointId
());
ESTaskDetailDto
esTaskDetailDto
=
esTaskDetail
.
findById
(
String
.
valueOf
(
appPointCheckRespone
.
getId
())).
get
();
JSONObject
jsonObject
=
getCheckInput
(
routId
,
taskDetail
.
getPointId
(),
type
,
requestParam
);
esTaskDetailDto
.
setPointStatus
((
status
==
0
||
status
==
1
)
?
"0"
:
status
==
2
?
"1"
:
"2"
);
esTaskDetailDto
.
setTaskStatus
(
String
.
valueOf
(
status
));
appPointCheckRespone
.
setAppCheckInput
(
jsonObject
);
esTaskDetailDto
.
setPointImgUrls
(
ObjectUtils
.
isEmpty
(
requestParam
)
?
new
ArrayList
<>()
:
requestParam
.
getCheckRecordImg
());
esTaskDetailDtos
.
add
(
esTaskDetailDto
);
if
(
esPlanTaskList
.
findById
(
id
).
isPresent
())
{
ESPlanTaskListDto
esPlanTaskListDto
=
esPlanTaskList
.
findById
(
id
).
get
();
log
.
info
(
"修改esPlanTaskListDto=========="
+
esPlanTaskListDto
);
esPlanTaskListDto
.
setFinishStatus
(
String
.
valueOf
(
status
));
Map
task
=
planTaskMapper
.
queryPlanTaskById
(
Long
.
valueOf
(
id
));
esPlanTaskListDto
.
setFinshNum
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"finshNum"
))
?
"0"
:
task
.
get
(
"finshNum"
).
toString
());
esPlanTaskListDto
.
setOmission
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"omission"
))
?
"0"
:
task
.
get
(
"omission"
).
toString
());
esPlanTaskListDto
.
setUnqualified
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"unqualified"
))
?
"0"
:
task
.
get
(
"unqualified"
).
toString
());
esPlanTaskListDto
.
setUnplan
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"unplan"
))
?
"0"
:
task
.
get
(
"unplan"
).
toString
());
esPlanTaskListDto
.
setTaskPlanNum
(
ObjectUtils
.
isEmpty
(
task
.
get
(
"taskPlanNum"
))
?
"0"
:
task
.
get
(
"taskPlanNum"
).
toString
());
List
<
PlanTaskDetail
>
planTaskDetailList
=
planTaskMapper
.
selectTaskDetails
(
"('"
+
id
+
"')"
);
Long
routId
=
planTaskMapper
.
selectRoutId
(
id
);
List
<
ESTaskDetailDto
>
esTaskDetailDtos
=
new
ArrayList
<>();
for
(
PlanTaskDetail
taskDetail
:
planTaskDetailList
)
{
AppPointCheckRespone
appPointCheckRespone
=
planService
.
queryPointPlanTaskDetail
(
null
,
null
,
null
,
taskDetail
.
getTaskNo
(),
taskDetail
.
getPointId
());
ESTaskDetailDto
esTaskDetailDto
=
esTaskDetail
.
findById
(
String
.
valueOf
(
appPointCheckRespone
.
getId
())).
get
();
JSONObject
jsonObject
=
getCheckInput
(
routId
,
taskDetail
.
getPointId
(),
type
,
requestParam
);
esTaskDetailDto
.
setPointStatus
((
status
==
0
||
status
==
1
)
?
"0"
:
status
==
2
?
"1"
:
"2"
);
esTaskDetailDto
.
setTaskStatus
(
String
.
valueOf
(
status
));
appPointCheckRespone
.
setAppCheckInput
(
jsonObject
);
esTaskDetailDto
.
setPointImgUrls
(
ObjectUtils
.
isEmpty
(
requestParam
)
?
new
ArrayList
<>()
:
requestParam
.
getCheckRecordImg
());
esTaskDetailDtos
.
add
(
esTaskDetailDto
);
}
esTaskDetail
.
saveAll
(
esTaskDetailDtos
);
esPlanTaskListDto
.
setPoints
(
planTaskDetailList
);
esPlanTaskListDtos
.
add
(
esPlanTaskListDto
);
}
esTaskDetail
.
saveAll
(
esTaskDetailDtos
);
esPlanTaskListDto
.
setPoints
(
planTaskDetailList
);
esPlanTaskListDtos
.
add
(
esPlanTaskListDto
);
}
esPlanTaskList
.
saveAll
(
esPlanTaskListDtos
);
}
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
22067365
...
...
@@ -1613,7 +1613,7 @@
<select
id=
"getPlanTaskListByPlanId"
resultType=
"java.lang.Long"
>
SELECT
*
id
FROM
"p_plan_task"
WHERE
...
...
@@ -1777,7 +1777,7 @@
from
"p_plan_task"
where id in
<foreach
item=
"id"
collection=
"
newList
"
index=
"index"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"
ids
"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</select>
...
...
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