From cec1d261cf5d0a85be261f232c10c013e09b6cfe Mon Sep 17 00:00:00 2001 From: zpl Date: Tue, 26 Oct 2021 09:01:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=9A=82=E5=81=9C=E6=97=B6?= =?UTF-8?q?=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mesnac/production/service/impl/SfcHoldLogServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/SfcHoldLogServiceImpl.java b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/SfcHoldLogServiceImpl.java index aa18f993..5941aee8 100644 --- a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/SfcHoldLogServiceImpl.java +++ b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/SfcHoldLogServiceImpl.java @@ -100,6 +100,7 @@ public class SfcHoldLogServiceImpl extends ServiceImpl ueryWrapper=new QueryWrapper<>(); ueryWrapper.eq(SfcHoldLog.STEP_ID,stepId); ueryWrapper.eq(SfcHoldLog.SFC,sfc); + ueryWrapper.orderByDesc(SfcHoldLog.CREATED_DATE_TIME); List list = list(ueryWrapper); LocalDateTime holdTime = list.get(0).getCreatedDateTime(); long workHourSeconds = Duration.between(holdTime, now).getSeconds();