1、mybatis報錯Parameter'params' not fund.Available parameters ar[param1,page]。
public int queryCount(@Param("page") CompanyForm page) throws DaoException;
@Override
public int queryCount(CompanyForm page) throws ServiceException {
try {
return companyExtMapper.queryCount(page);
} catch (Exception e) {
throw new ServiceException(e.getMessage(), e);
}
}
<select id="queryCount" resultType="java.lang.Integer" parameterType="classroom.common.form.CompanyForm">
select count(1) from company
<include refid="condition" />
4、各位大哥幫我看看,謝謝。
就是沒找到parameter的那個page屬性嘛