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 8fd3a67..80fd50c 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 @@ -95,7 +95,7 @@ public class EmsRecordSteamInstantServiceImpl implements IEmsRecordSteamInstantS @Override public List selectEmsRecordLatestSteamInstantList(EmsRecordSteamInstant emsRecordSteamInstant){ /* return emsRecordSteamInstantMapper.selectEmsRecordLatestSteamInstantList(emsRecordSteamInstant);*/ - //只返回第一条数据 + //只返回第一条数据,subList从索引0开始,只截取1条 return emsRecordSteamInstantMapper.selectEmsRecordSteamInstantList(emsRecordSteamInstant).subList(0,1); } }