之前在代码中在generate生成的xml中改sql,涉及到if test的地方一般是
<if test = "securityCode != null and securityCode != ' ' ''>
直到中间有次没有判空,用来判一个单词的时候
<if test = "securityCode != null and securityCode == 'r ' ''>
编译报错,查询过资料,是说单引号会默认为数字,双引号才会默认为字符
最后是用了里面最简单的解决方法之一,将单双引号的位置互换(粗暴直接)
<if test = 'securityCode != null and securityCode == "r" '>