src/main/java/com/hxzkappboot/service/impl/TbUpappServiceImpl.java
@@ -19,8 +19,14 @@ public class TbUpappServiceImpl extends ServiceImpl<TbUpappMapper, TbUpapp> implements TbUpappService { @Override public TbUpapp findTbUpapp() { public TbUpapp findTbUpapp(String name) { QueryWrapper queryWrapper = new QueryWrapper<>(); if (name==null){ queryWrapper.eq("name", "定位app"); }else{ queryWrapper.eq("name", name); } queryWrapper.orderByDesc("time"); // 假设时间字段名为"time" queryWrapper.last("LIMIT 1"); // 限制只返回一条记录 return baseMapper.selectOne(queryWrapper);