<!-- mybatis --> <where> <if test="varName != ‘‘ and varName != null" > var_name like ‘%${varName}%‘ </if> </where>
//node 变量 if (data.varName && data.varName != ‘‘) { sql += " where var_name like ‘%"+data.varName+"%‘"; }
时间: 2024-10-05 23:50:00
<!-- mybatis --> <where> <if test="varName != ‘‘ and varName != null" > var_name like ‘%${varName}%‘ </if> </where>
//node 变量 if (data.varName && data.varName != ‘‘) { sql += " where var_name like ‘%"+data.varName+"%‘"; }