原来代码:

  <select id="findSpecialOffer" resultType="com.lizard.back.model.SpecialOffer" parameterType="java.lang.String">
SELECT
taso.id,
taso.product_id as productId ,
taso.table_name as tableName,
taso.start_time_special_off as startTimeSpecialOff,
taso.end_time_special as endTimeSpecial,
taso.create_time as createTime,
taso.operator,
tau.mobile as mobile,
taso.is_effective as isEffective,
taso.type
FROM
`t_admin_special_offer` taso
INNER JOIN t_admin_user tau ON tau.uid = taso.operator
<if test="isEffective!=null">
where taso.is_effective = #{isEffective,jdbcType=VARCHAR}
</if>
</select>

  

解决方法:    不管你的参数是什么,都要改成"_parameter"

<select id="findSpecialOffer" resultType="com.lizard.back.model.SpecialOffer" parameterType="java.lang.String">
SELECT
taso.id,
taso.product_id as productId ,
taso.table_name as tableName,
taso.start_time_special_off as startTimeSpecialOff,
taso.end_time_special as endTimeSpecial,
taso.create_time as createTime,
taso.operator,
tau.mobile as mobile,
taso.is_effective as isEffective,
taso.type
FROM
`t_admin_special_offer` taso
INNER JOIN t_admin_user tau ON tau.uid = taso.operator
<if test="_parameter !=null and _parameter !=''">
where taso.is_effective = #{isEffective,jdbcType=VARCHAR}
</if>
</select>

  

最新文章

  1. 探秘Tomcat——连接篇
  2. Ixia测试仪的自动化
  3. python Web开发框架-Django (1)
  4. SignalR与ActiveMQ结合构建实时通信
  5. 【BZOJ-4548&amp;3658】小奇的糖果&amp;Jabberwocky 双向链表 + 树状数组
  6. 迷你版Deferred
  7. Thinkpad 笔记本VMware Workstation 安装虚拟机出现&ldquo;此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态&rdquo;解决方法
  8. 学习NGUI前的准备NGUI的相关信息
  9. html ul 里 能放其他标签吗,比如h3、p?
  10. SQL2000的Enterprise Edition和Developer Edition有什么区别
  11. JAVA 流式布局管理器
  12. 自定义控件winfrom
  13. stat(),lstat(),fstat() 获取文件/目录的相关信息
  14. node.js报错throw err; // Rethrow non-MySQL errors e:\serverTest\node_modules\mysql\lib\protocol\Parser.js:79 解决方法
  15. mybatis 模糊查询 like的三种方式
  16. PythonStudy——PyCharm使用技巧 Column Selection Mode(列选择模式)
  17. DataGridView属性和事件
  18. 使用Anemometer基于pt-query-digest将MySQL慢查询可视化
  19. Android——SeekBar(拖动条)相关知识总结贴
  20. [转载]CSS各种居中方法

热门文章

  1. Java流和文件
  2. View视图调用控制器方法
  3. java冒泡排序 常规排序和优化排序
  4. 认识Spring AOP
  5. Python 显示调用栈
  6. 前端小课堂 js:what is the function?
  7. nginx下的nagios pnp4nagios
  8. MongoDB数据库 备份 还原
  9. 3元购买微信小程序解决方案一个月
  10. php配置优化-生产环境应用版