Expected one result (or null) to be returned by selectOne(), but found: 2

72次阅读
没有评论

Expected one result (or null) to be returned by selectOne(), but found: 2

数据库里有两条记录结果,结果返回类型是单类型不是list,所以报错。

正文完
 
评论(没有评论)