diff --git a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java index 8f23e906..148622d8 100644 --- a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java +++ b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java @@ -317,6 +317,7 @@ public class PodTemplateServiceImpl implements PodTemplateService { QueryWrapper queryWrapper=new QueryWrapper<>(); queryWrapper.eq(SfcHoldLog.SFC,sfc); queryWrapper.eq(SfcHoldLog.STEP_ID,stepId); + queryWrapper.eq(SfcHoldLog.TYPE,"CANCEL"); List list = sfcHoldLogService.list(queryWrapper); if (!list.isEmpty()){ BigDecimal holdTime = list.stream().map(SfcHoldLog::getHoldDuration).reduce(BigDecimal.ZERO, BigDecimal::add);