Mybatis update时判断为空的写法和like的写法

update zendtao_new.customcalendarinfo a

    
        a.pduname = #{pdu,jdbcType=VARCHAR},
    
    
        a.name = #{name,jdbcType=VARCHAR},
    
    
        a.start = #{start,jdbcType=VARCHAR},
    
    
        a.end = #{end,jdbcType=VARCHAR},
    
    
        a.title = #{title,jdbcType=VARCHAR},
    
    
        a.url = #{url,jdbcType=VARCHAR},
    
    
        a.env = #{env,jdbcType=VARCHAR},
    

where
a.relativeguid = #{guid,jdbcType=VARCHAR}
and
a.name like CONCAT('%',#{symbol,jdbcType=VARCHAR},'%')

你可能感兴趣的:(MyBaties)