org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyR
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
分析报错,主键查询,但是查出来条数是两条
问题所在是left join关联查询,行程笛卡尔成绩
关联的表中,如果符合条件的不止一条记录,就会存在这个问题,那么加个distinct去重即可解决