一 、java
Integer userId; 类型数据 在mybatis <if test = "userId != null "></if> ,这样写可以;
Int userId; 类型数据 在mybatis <if test = "userId != null "></if> ,这样写就不行了,查不出数据。
应改为 <if test = "userId != 0 "></if>
一 、java
Integer userId; 类型数据 在mybatis <if test = "userId != null "></if> ,这样写可以;
Int userId; 类型数据 在mybatis <if test = "userId != null "></if> ,这样写就不行了,查不出数据。
应改为 <if test = "userId != 0 "></if>