public < S extends Model > int updateById ( S model , Serializable id ) { this . where ( primaryKeyColumn , id ) ; String sql = this . buildUpdateSQL ( model , null ) ; List < Object > columnValueList = AnimaUtils . toColumnValues ( model , false ) ; columnValueList . add ( id ) ; return this . execute ( sql , columnValueList ) ; }
Update model by primary key