首页 > 其他 > 详细

mybatis if test 不为空字符串或null

时间:2020-12-30 11:24:01      阅读:519      评论:0      收藏:0      [点我收藏+]
<select id="findIndexConfigList" parameterType="Map" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from tb_newbee_mall_index_config
        <where>
            <if test="configType!=null and configType!=‘‘">
                and config_type = #{configType}
            </if>
            and is_deleted = 0
        </where>
        order by config_rank desc
        <if test="start!=null and limit!=null">
            limit #{start},#{limit}
        </if>
 </select>

mybatis if test 不为空字符串或null

原文:https://www.cnblogs.com/cherish-code/p/14210038.html

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