Merge remote-tracking branch 'origin/master'

master
赵嘉伟 3 years ago
commit 60e06b192b

@ -317,6 +317,7 @@ public class PodTemplateServiceImpl implements PodTemplateService {
QueryWrapper<SfcHoldLog> queryWrapper=new QueryWrapper<>(); QueryWrapper<SfcHoldLog> queryWrapper=new QueryWrapper<>();
queryWrapper.eq(SfcHoldLog.SFC,sfc); queryWrapper.eq(SfcHoldLog.SFC,sfc);
queryWrapper.eq(SfcHoldLog.STEP_ID,stepId); queryWrapper.eq(SfcHoldLog.STEP_ID,stepId);
queryWrapper.eq(SfcHoldLog.TYPE,"CANCEL");
List<SfcHoldLog> list = sfcHoldLogService.list(queryWrapper); List<SfcHoldLog> list = sfcHoldLogService.list(queryWrapper);
if (!list.isEmpty()){ if (!list.isEmpty()){
BigDecimal holdTime = list.stream().map(SfcHoldLog::getHoldDuration).reduce(BigDecimal.ZERO, BigDecimal::add); BigDecimal holdTime = list.stream().map(SfcHoldLog::getHoldDuration).reduce(BigDecimal.ZERO, BigDecimal::add);

Loading…
Cancel
Save