package com.whyc.service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.whyc.dto.Response; import com.whyc.mapper.AbeInfMapper; import com.whyc.mapper.AbeStateMapper; import com.whyc.pojo.db_abe_ram.AbeInf; import com.whyc.pojo.db_abe_ram.AbeState; import org.springframework.stereotype.Service; import javax.annotation.Resource; @Service public class AbeInfService { @Resource private AbeInfMapper mapper; public AbeInf get() { QueryWrapper query = Wrappers.query(); query.last(" limit 1"); return mapper.selectOne(query); } }