代码如下,直接查询全部数据库可以得到结果,但是一旦用select count(id)就会导致服务器崩溃
counts 定义到那个地方不报错才怪
服务器崩溃 是报错吗
改下resultType,就没问题了
服务器报错日志发一下?