使用TK框架中updateByPrimaryKey与updateByPrimaryKeySelective区别
int updateByPrimaryKey(T var1);
int updateByPrimaryKeySelective(T var1);


updateByPrimaryKeySelective会对字段进行判断再更新(如果为Null就忽略更新),如果你只想更新某些字段,可以用这个方法。
updateByPrimaryKey对你注入的字段全部更新
int updateByPrimaryKey(T var1);
int updateByPrimaryKeySelective(T var1);


updateByPrimaryKeySelective会对字段进行判断再更新(如果为Null就忽略更新),如果你只想更新某些字段,可以用这个方法。
updateByPrimaryKey对你注入的字段全部更新