mybatis查询当传入为Integer时(其他没试),
if判断条件不要写成
<if test="number != null and number != ''">
这种如果传0,会当做没有传参
下面这种传参0才会有效
<if test="number != null">
mybatis查询当传入为Integer时(其他没试),
if判断条件不要写成
<if test="number != null and number != ''">
这种如果传0,会当做没有传参
下面这种传参0才会有效
<if test="number != null">