1.1 使用toString
<if test="number != null and number != '*'.toString()">
1.2 更換引號順序
引起符號不符合條件的原因在於’'和""是不同的含義, 只需要將符號順序改變即可:
<if test='number != null and number != "*"'>
<if test="number != null and number != '*'.toString()">
引起符號不符合條件的原因在於’'和""是不同的含義, 只需要將符號順序改變即可:
<if test='number != null and number != "*"'>