package com.whyc.service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.whyc.mapper.CKPwrDevInfMapper; import com.whyc.pojo.db_ckpwrdev_inf.CKPwrDevInf; import org.springframework.stereotype.Service; import javax.annotation.Resource; @Service public class CKPwrDevInfService { @Resource private CKPwrDevInfMapper mapper; public CKPwrDevInf get() { QueryWrapper query = Wrappers.query(); query.last(" limit 1"); return mapper.selectOne(query); } public void update(CKPwrDevInf ckPwrDevInf) { mapper.updateById(ckPwrDevInf); } }