计算暂停时长

master
zpl 3 years ago
parent 7452255386
commit cec1d261cf

@ -100,6 +100,7 @@ public class SfcHoldLogServiceImpl extends ServiceImpl<SfcHoldLogMapper, SfcHold
QueryWrapper<SfcHoldLog> ueryWrapper=new QueryWrapper<>();
ueryWrapper.eq(SfcHoldLog.STEP_ID,stepId);
ueryWrapper.eq(SfcHoldLog.SFC,sfc);
ueryWrapper.orderByDesc(SfcHoldLog.CREATED_DATE_TIME);
List<SfcHoldLog> list = list(ueryWrapper);
LocalDateTime holdTime = list.get(0).getCreatedDateTime();
long workHourSeconds = Duration.between(holdTime, now).getSeconds();

Loading…
Cancel
Save