Commit 41234d0f authored by maoying's avatar maoying

修改重做删除原任务计划

parent 721fb555
......@@ -16,7 +16,7 @@ public interface IPlanTaskDao extends BaseDao<PlanTask, Long> {
@Modifying
@Transactional
@Query(value = "delete from p_plan_task where id in (?1)", nativeQuery = true)
void deleteBatchById(List<Integer> ids);
void deleteBatchById(List<Long> ids);
/**
* 根据状态获取计划任务
......
......@@ -387,9 +387,8 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
param.put("beginDate", param.get("beginDate") + " " + "00:00:00");
param.put("endDate", param.get("endDate") + " " + "23:59:59");
List<Long> ids = planTaskMapper.getGenPlanTask(param);
for (long id : ids) {
iplanTaskDao.deleteById(id);
}
planTaskDetail.deletePlanTaskDetailByTaskNo(ids);
iplanTaskDao.deleteBatchById(ids);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment