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