Browse Source

fix:日常维护逾期判定定时任务bug解决

zhongwei
haungxing 7 months ago
parent
commit
fc7b889aef
  1. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/TaskOverdueHandler.java

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/TaskOverdueHandler.java

@ -50,7 +50,7 @@ public class TaskOverdueHandler {
if(CollectionUtil.isNotEmpty(taskEntitySet)) {
taskEntitySet.forEach(operMaintenanceTaskEntity -> {
OperMaintenanceTaskEntity taskEntity = taskService.getById(operMaintenanceTaskEntity.getId());
if(StringUtil.isBlank(taskEntity.getFlowTaskName())) {
if(Func.isEmpty(taskEntity) || StringUtil.isBlank(taskEntity.getFlowTaskName())) {
redisTemplate.opsForZSet().remove(RedisKeyConstants.MAINTENANCE_TASK_DELAY_LIST,operMaintenanceTaskEntity);
}
//如果任务仍在待执行则自动结束

Loading…
Cancel
Save