首页 新闻 会员 周边

mybatis报错Parameter'params' not fund.

0
悬赏园豆:10 [已解决问题] 解决于 2016-05-26 09:39

1、mybatis报错Parameter'params' not fund.Available parameters ar[param1,page]。

2、接口是这样写的

public int queryCount(@Param("page") CompanyForm page) throws DaoException;

3、实现类是这样引用的

@Override
public int queryCount(CompanyForm page) throws ServiceException {
try {
return companyExtMapper.queryCount(page);
} catch (Exception e) {
throw new ServiceException(e.getMessage(), e);
}
}

3、mapper的xml是这样写的

 <select id="queryCount" resultType="java.lang.Integer" parameterType="classroom.common.form.CompanyForm">
select count(1)  from company     
<include refid="condition" />


4、各位大哥帮我看看,谢谢。

gan8281的主页 gan8281 | 初学一级 | 园豆:10
提问于:2016-03-24 15:19
< >
分享
最佳答案
0

找不到参数。

gan8281 | 初学一级 |园豆:10 | 2016-05-26 09:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册