code: 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);
      }
docs: Update model by primary key
  
  @param model model instance
  @param id    primary key value
  @param <S>
  @return affect the number of rows, normally it's 1.