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); } + }