调用MybatisPlus的getOne和selectOne方法如果查询结果是多条会报错: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: One record is expected, but the query result is multiple records 没有符合查询条件的不会报错,返回null