首页 > 其他 > 详细

mybatis 中test里面 应该为单引号套双引号

时间:2018-09-20 15:42:45      阅读:729      评论:0      收藏:0      [点我收藏+]

正确写法:test里面 应该为单引号套双引号

 

 

  1.  
    <select id="findTopicPresetByCompanyIDAndCategory" parameterType="map" resultType="com.seeyon.esn.entity.portal.TopicPreset">
  2.  
    select * from topicPreset where companyID = #{companyID}
  3.  
    <if test=‘category=="0" ‘> and (category is null or category = "0")</if>
  4.  
    <if test=‘category=="1" ‘> and category = "1"</if>
  5.  

mybatis 中test里面 应该为单引号套双引号

原文:https://www.cnblogs.com/jcfxl/p/9680732.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!