mybatis判断条件与单字符数字比较,判断会错误,比如<when test=“columnStr == ‘0‘“>
问题:<choose> <when test="columnStr == '0'"> and a.xx = 'xxx' </when> <when test="columnStr == '1'"> and a.xx = 'yyy' </when> <otherwise> and 1 = 1 </otherwise></choose> 如果columnStr 为0,判断时候会走
原创
2021-02-25 15:38:58 ·
2064 阅读 ·
0 评论