mybatis 中test里面 应该为单引号套双引号
时间:2018-09-20 15:42:45
收藏:0
阅读:730
正确写法:test里面 应该为单引号套双引号
-
<select id="findTopicPresetByCompanyIDAndCategory" parameterType="map" resultType="com.seeyon.esn.entity.portal.TopicPreset">
-
select * from topicPreset where companyID = #{companyID}
-
<if test=‘category=="0" ‘> and (category is null or category = "0")</if>
-
<if test=‘category=="1" ‘> and category = "1"</if>
-
原文:https://www.cnblogs.com/jcfxl/p/9680732.html
评论(0)