From 913895ce4ec8eef8158ce08620833bdf8d9d3f09 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 9 Oct 2024 17:24:16 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=BA=A0=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ems/record/controller/EmsRecordSteamInstantController.java | 1 + .../record/service/impl/EmsRecordSteamInstantServiceImpl.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/os-ems/src/main/java/com/os/ems/record/controller/EmsRecordSteamInstantController.java b/os-ems/src/main/java/com/os/ems/record/controller/EmsRecordSteamInstantController.java index 6989304..7810b4c 100644 --- a/os-ems/src/main/java/com/os/ems/record/controller/EmsRecordSteamInstantController.java +++ b/os-ems/src/main/java/com/os/ems/record/controller/EmsRecordSteamInstantController.java @@ -111,6 +111,7 @@ public class EmsRecordSteamInstantController extends BaseController { .selectEmsRecordSteamInstantList(emsRecordSteamInstant); return success(list); } + /** * 查询蒸汽实时最新数据 * @param emsRecordSteamInstant diff --git a/os-ems/src/main/java/com/os/ems/record/service/impl/EmsRecordSteamInstantServiceImpl.java b/os-ems/src/main/java/com/os/ems/record/service/impl/EmsRecordSteamInstantServiceImpl.java index 80fd50c..68f04b9 100644 --- a/os-ems/src/main/java/com/os/ems/record/service/impl/EmsRecordSteamInstantServiceImpl.java +++ b/os-ems/src/main/java/com/os/ems/record/service/impl/EmsRecordSteamInstantServiceImpl.java @@ -96,6 +96,7 @@ public class EmsRecordSteamInstantServiceImpl implements IEmsRecordSteamInstantS public List selectEmsRecordLatestSteamInstantList(EmsRecordSteamInstant emsRecordSteamInstant){ /* return emsRecordSteamInstantMapper.selectEmsRecordLatestSteamInstantList(emsRecordSteamInstant);*/ //只返回第一条数据,subList从索引0开始,只截取1条 - return emsRecordSteamInstantMapper.selectEmsRecordSteamInstantList(emsRecordSteamInstant).subList(0,1); + return emsRecordSteamInstantMapper.selectEmsRecordLatestSteamInstantList(emsRecordSteamInstant).subList(0,1); } + }