Mybatis下传递Integer类型的参数,且Integer= 2018-02-01 本文已影响0人 BeStronger30 Mybatis会把传递过来的Integer类型的0 转换为 '' ,所以我们进行插入数据时,动态sql进行判断时,直接可以判断不为null就好了 例如 只判断不为null