parent
09798b8d51
commit
3aa3090fb5
|
@ -235,11 +235,7 @@ public class PlanBatchTaskDataUpdateJob {
|
||||||
|
|
||||||
//获取更新后的批次信息
|
//获取更新后的批次信息
|
||||||
AtuPlanBatchDetailDto atuPlanBatchDetailDto = planBatchService.queryBatchDetailById(planBatch.getId());
|
AtuPlanBatchDetailDto atuPlanBatchDetailDto = planBatchService.queryBatchDetailById(planBatch.getId());
|
||||||
// 收尾处理
|
|
||||||
AtuPlanInfo batchPlanInfo = planInfoService.findByBatchId(batchId);
|
|
||||||
if (batchPlanInfo != null) {
|
|
||||||
handleEnd(batchPlanInfo, atuPlanBatchDetailDto);
|
|
||||||
}
|
|
||||||
// 判断是否计划最后一批次
|
// 判断是否计划最后一批次
|
||||||
AtuPlanInfo planInfo = planInfoService.queryByLastBatchId(batchId);
|
AtuPlanInfo planInfo = planInfoService.queryByLastBatchId(batchId);
|
||||||
if (ObjectUtil.isNotNull(planInfo)) {
|
if (ObjectUtil.isNotNull(planInfo)) {
|
||||||
|
@ -264,6 +260,12 @@ public class PlanBatchTaskDataUpdateJob {
|
||||||
// 2.2. 删除缓存中已完成批次的记录
|
// 2.2. 删除缓存中已完成批次的记录
|
||||||
logger.debug("删除批次统计缓存 => " + key);
|
logger.debug("删除批次统计缓存 => " + key);
|
||||||
redisTemplate.delete(key);
|
redisTemplate.delete(key);
|
||||||
|
|
||||||
|
// 收尾处理
|
||||||
|
AtuPlanInfo batchPlanInfo = planInfoService.findByBatchId(batchId);
|
||||||
|
if (batchPlanInfo != null) {
|
||||||
|
handleEnd(batchPlanInfo, atuPlanBatchDetailDto);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
logger.debug("同步缓存中计划批次统计数据----end----");
|
logger.debug("同步缓存中计划批次统计数据----end----");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue