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
f79a83ad
Commit
f79a83ad
authored
Nov 23, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
双规优化
parent
8735ef8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
PlanTaskMapper.java
...ejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
+2
-0
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+6
-1
dbTemplate_plan_task.xml
...biz/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+4
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
View file @
f79a83ad
...
@@ -269,6 +269,8 @@ public interface PlanTaskMapper extends BaseMapper {
...
@@ -269,6 +269,8 @@ public interface PlanTaskMapper extends BaseMapper {
int
deleteDate
(
String
table
);
int
deleteDate
(
String
table
);
int
deleteOne
(
String
table
,
String
checkDate
);
Long
selectRoutId
(
String
id
);
Long
selectRoutId
(
String
id
);
List
<
String
>
selectPlanTaskIdLists
(
long
planId
,
int
status
,
int
status1
);
List
<
String
>
selectPlanTaskIdLists
(
long
planId
,
int
status
,
int
status1
);
...
...
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 @
f79a83ad
...
@@ -693,6 +693,9 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -693,6 +693,9 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
//2.5.插入planTask及planTaskDetail
//2.5.插入planTask及planTaskDetail
insertPlanTaskAndDetNew
(
list
,
plan
,
XJConstant
.
SCHED_FLAG
,
now
,
null
);
insertPlanTaskAndDetNew
(
list
,
plan
,
XJConstant
.
SCHED_FLAG
,
now
,
null
);
// 更新统计表
taskStaticExecution
(
null
);
}
}
}
}
...
@@ -746,6 +749,9 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -746,6 +749,9 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
}
}
}
planTaskMapper
.
deleteOne
(
P_STATIC_DAY
,
runDate
);
planTaskMapper
.
deleteOne
(
P_STATIC_WEEK
,
runDate
);
planTaskMapper
.
deleteOne
(
P_STATIC_MONTH
,
runDate
);
// 插入日统计表
// 插入日统计表
List
<
Map
<
String
,
Object
>>
listDay
=
checkMapper
.
planCount
(
runDate
,
null
,
String
.
valueOf
(
PlanTaskTypeStatusEnum
.
day
.
getValue
()),
null
,
null
,
null
);
List
<
Map
<
String
,
Object
>>
listDay
=
checkMapper
.
planCount
(
runDate
,
null
,
String
.
valueOf
(
PlanTaskTypeStatusEnum
.
day
.
getValue
()),
null
,
null
,
null
);
List
<
StaticDay
>
staticDays
=
listDay
.
stream
().
map
(
e
->{
List
<
StaticDay
>
staticDays
=
listDay
.
stream
().
map
(
e
->{
...
@@ -836,7 +842,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -836,7 +842,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
* @param plan
* @param plan
* @param flag 是否初始状态0-初始 1-非初始
* @param flag 是否初始状态0-初始 1-非初始
*/
*/
@Async
(
"asyncServiceExecutor"
)
public
void
insertPlanTaskAndDetNew
(
List
<
HashMap
<
String
,
Object
>>
list
,
Plan
plan
,
String
flag
,
Date
now
,
List
<
ESPlanTaskListDto
>
oldEsPlanTaskListDtos
)
{
public
void
insertPlanTaskAndDetNew
(
List
<
HashMap
<
String
,
Object
>>
list
,
Plan
plan
,
String
flag
,
Date
now
,
List
<
ESPlanTaskListDto
>
oldEsPlanTaskListDtos
)
{
if
(
list
==
null
||
list
.
size
()
<=
0
)
{
if
(
list
==
null
||
list
.
size
()
<=
0
)
{
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
f79a83ad
...
@@ -1732,6 +1732,10 @@
...
@@ -1732,6 +1732,10 @@
delete from ${table} where 1=1;
delete from ${table} where 1=1;
</delete>
</delete>
<delete
id=
"deleteOne"
>
delete from ${table} where check_time = #{checkDate};
</delete>
<select
id=
"selectRoutId"
resultType=
"java.lang.Long"
>
<select
id=
"selectRoutId"
resultType=
"java.lang.Long"
>
select route_id from p_plan_task where id = #{id}
select route_id from p_plan_task where id = #{id}
</select>
</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