QueryWrapper快速查一条数据
Student student= studentDao.selectOne(new LambdaQueryWrapper<Student >()
.eq(Student ::getAgentCode, agentCode)
.last("limit 1"));
Student student= studentDao.selectOne(new LambdaQueryWrapper<Student >()
.eq(Student ::getAgentCode, agentCode)
.last("limit 1"));