//按条件计数。
long countByExample(HrpAdvanceOrderExample example);
//按条件删除。
int deleteByExample(HrpAdvanceOrderExample example);
//按主键删除。
int deleteByPrimaryKey(String sid);
//insert则会插入所有字段,会插入null。
int insert(HrpAdvanceOrder record);
//对应的sql语句加入了NULL校验,只会插入数据不为null
int insertSelective(HrpAdvanceOrder record);
//按实例条件条件查询
List<HrpAdvanceOrder> selectByExample(HrpAdvanceOrderExample example);
//按sid主键查询
HrpAdvanceOrder selectByPrimaryKey(String sid);
//对sql语句加入了非空判断 只有更新不为null的数据
int updateByExampleSelective(@Param("record") HrpAdvanceOrder record, @Param("example") HrpAdvanceOrderExample example);
//没有做校验 容易覆盖数据 建议使用前者updateByExampleSelective
int updateByExample(@Param("record") HrpAdvanceOrder record, @Param("example") HrpAdvanceOrderExample example);
//对sql语句加入了非空判断 只有更新不为null的数据
int updateByPrimaryKeySelective(HrpAdvanceOrder record);
//没有做校验 容易覆盖数据 建议使用前者updateByExampleSelective
int updateByPrimaryKey(HrpAdvanceOrder record);
注意:大家尽量选着适合自己业务场景的方法使用,不然容易出bug哦!
我就是前车之鉴 一杯茶,一根烟,一行代码改一天 哎!