我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

mybatis查询错误

mybatis查询报错
代码如下
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字段吧

近期文章

  • java中的端口被占用问题
  • c++有参构造函数和无参构造函数
  • 如何在laravel 5.1中获取中间件中的路由
  • 用hbuilderx点击链接跳转页面怎么返回当前页
  • 返回值与函数类型不匹配
  • OpenCV库使用咨询一些建议
  • python读json读不进来?
  • node. js使div标签替换为p标签
  • 为什么会溢出,明明已经加了约束条件了
  • 学习一门语言入门需要花多长时间
  • eclipse开发安卓模拟机项目出现这样问题是什么情况
  • 一致代价搜索算法(UCS)和迪杰斯特拉(Dijkstra)算法是一样的吗,有何区别呢
  • symfony twig数组键显示
  • Python的基础运用(难哭了)
  • python无限在那print
  • devc++工具条怎么弄回来
  • 在Spring Tool Suite 4中启动tomcat报错
  • 临界值𝝉是怎么计算的
  • 不知道错在哪里了,求各位解答
  • Python爬虫能不能用正则表达式爬取学历部分?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华