原文链接

    mybatis 使用if 判断字符串
    正例1:

    1. <if test="itemCode != null and itemCode !='' and itemCode !='aaa'.toString()">

    正例2:

    1. <if test='itemCode != null and itemCode !="" and itemCode !="aaa" '>

    反例:

    1. <if test="itemCode != null and itemCode !='' and itemCode !='aaa' ">