Expected one result (or null) to be returned by selectOne(), but found: 6] with root cause

一、报错信息

Expected one result (or null) to be returned by selectOne(), but found: 6] with root cause

二、出现原因

在做后台分页的查询中,写错了查询sql,导致返回值多了,正确的结果应是一条,

三解决方法

重写sql,selcet count(*) from dept_inf.

真是太粗心大意了。

posted @ 2020-11-17 15:09  peanut_zh  阅读(349)  评论(0编辑  收藏  举报