updateByPrimaryKey和updateByPrimaryKeySelective insert和insertSelective
这两个update都是使用generator生成的mapper.xml文件中,对dao层的更新操作
updateByPrimaryKey对你注入的字段全部更新(不判断是否为Null)
updateByPrimaryKeySelective会对字段进行判断再更新(如果为Null就忽略更新)如果你只想更新某一字段,可以用这个方法。
insert方法是使用所有的属性作为字段使用
insertSelective插入数据,使用不为null的属性作为字段使用