mybatis记录
2017-03-09 本文已影响3人
零宽度接合
今天遇到一个问题。
在判断Mybatis接收的参数Integer为0的时候,这样判断
[html]view plaincopy
代码
参数:userType=0(Integer)
结果返回false,仔细分析,原来是Mybatis将Integer=0的参数会默认为‘ ’(空串)
今天遇到一个问题。
在判断Mybatis接收的参数Integer为0的时候,这样判断
[html]view plaincopy
代码
参数:userType=0(Integer)
结果返回false,仔细分析,原来是Mybatis将Integer=0的参数会默认为‘ ’(空串)