select * from T_ARTICALINPICK_INTF
where 1=1
${if(len('${brandcode}') =0,"","and longbarcode='${brandcode}'")}
第一个${} 是SQL 中拼接符,第二个、第三个是参数