Page queryRulePage(@Param("TestVo")TestVo testVo,@Param("sql") String sql);
<select id="queryRulePage" resultMap="BaseResultMap" parameterType="com.po.Test">
select <include refid="Base_Column_List" />
from test where ${sql}
<if test="sentflag != null and sentflag != ''">
and sentflag = #{sentflag}
if>
select>
Caused by: org.apache.ibatis.binding.BindingException: Parameter 'sentflag' not found. Available parameters are [testVo, param1, sql, param2]
报错没有传sentflag字段吧