From 0b5a6420375b656172b9652cb44550e0f852b8f8 Mon Sep 17 00:00:00 2001 From: philip <244793088@qq.com> Date: Tue, 31 Aug 2021 18:37:46 +0800 Subject: [PATCH] bug --- .../mesnac/production/service/impl/PodTemplateServiceImpl.java | 1 + 1 file changed, 1 insertion(+) 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);