Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AmosBankPatrolRoot
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
1
Merge Requests
1
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
bank
AmosBankPatrolRoot
Commits
41234d0f
Commit
41234d0f
authored
Aug 25, 2020
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改重做删除原任务计划
parent
721fb555
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
IPlanTaskDao.java
.../patrol/service/business/dao/repository/IPlanTaskDao.java
+1
-1
PlanTaskServiceImpl.java
...ol/service/business/service/impl/PlanTaskServiceImpl.java
+2
-3
No files found.
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/business/dao/repository/IPlanTaskDao.java
View file @
41234d0f
...
@@ -16,7 +16,7 @@ public interface IPlanTaskDao extends BaseDao<PlanTask, Long> {
...
@@ -16,7 +16,7 @@ public interface IPlanTaskDao extends BaseDao<PlanTask, Long> {
@Modifying
@Modifying
@Transactional
@Transactional
@Query
(
value
=
"delete from p_plan_task where id in (?1)"
,
nativeQuery
=
true
)
@Query
(
value
=
"delete from p_plan_task where id in (?1)"
,
nativeQuery
=
true
)
void
deleteBatchById
(
List
<
Integer
>
ids
);
void
deleteBatchById
(
List
<
Long
>
ids
);
/**
/**
* 根据状态获取计划任务
* 根据状态获取计划任务
...
...
AmosBankPatrolService/src/main/java/com/yeejoin/amos/patrol/service/business/service/impl/PlanTaskServiceImpl.java
View file @
41234d0f
...
@@ -387,9 +387,8 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -387,9 +387,8 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
param
.
put
(
"beginDate"
,
param
.
get
(
"beginDate"
)
+
" "
+
"00:00:00"
);
param
.
put
(
"beginDate"
,
param
.
get
(
"beginDate"
)
+
" "
+
"00:00:00"
);
param
.
put
(
"endDate"
,
param
.
get
(
"endDate"
)
+
" "
+
"23:59:59"
);
param
.
put
(
"endDate"
,
param
.
get
(
"endDate"
)
+
" "
+
"23:59:59"
);
List
<
Long
>
ids
=
planTaskMapper
.
getGenPlanTask
(
param
);
List
<
Long
>
ids
=
planTaskMapper
.
getGenPlanTask
(
param
);
for
(
long
id
:
ids
)
{
planTaskDetail
.
deletePlanTaskDetailByTaskNo
(
ids
);
iplanTaskDao
.
deleteById
(
id
);
iplanTaskDao
.
deleteBatchById
(
ids
);
}
}
}
/**
/**
...
...
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