| | |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.ycl.common.enums.business.ProcessLogEventTypeEnum; |
| | | import com.ycl.common.enums.business.ProjectProcessTypeEnum; |
| | | import com.ycl.common.utils.DateUtils; |
| | | import com.ycl.domain.entity.ProcessCoding; |
| | | import com.ycl.domain.entity.ProcessLog; |
| | | import com.ycl.domain.entity.ProjectInfo; |
| | |
| | | //查询节点挂起日志 |
| | | Map<String, List<ProcessLog>> hangupLogMap = new LambdaQueryChainWrapper<>(processLogMapper) |
| | | .in(ProcessLog::getEventType, HANGUP, CANCEL_HANGUP) |
| | | .in(ProcessLog::getProcessInsId, taskIds) |
| | | .in(ProcessLog::getTaskId, taskIds) |
| | | .list() |
| | | .stream() |
| | | .collect(Collectors.groupingBy(ProcessLog::getTaskId)); |
| | |
| | | // Long yellowTime = getTime(processCoding.getYellowTime()); |
| | | // Long overtime = getTime(processCoding.getOvertime()); |
| | | if (startTime == null) continue; |
| | | //节点处理时间 |
| | | long durationTime = (now.getTime() - startTime.getTime()) / 1000; |
| | | |
| | | //节点处理时间,需排除节假日 |
| | | long durationTime = DateUtils.getWorkingSed(startTime, now); |
| | | |
| | | //TODO:减去流程挂起时长 |
| | | |
| | | //减去节点挂起时长 |