<?php

/**
 * Class that operate on table 'buybillcurr'. Database Mysql.
 *
 * @author: http://phpdao.com
 * @date: 2021-12-27 23:59
 */
class BuybillcurrMySqlExtDAO extends BuybillcurrMySqlDAO {

    public function updateSaveConversionFactor($saveConversionFactor, $id) {
        $sql = 'UPDATE buybillcurr SET saveConversionFactor = ' . $saveConversionFactor . ' WHERE id = ' . $id;
        $sqlQuery = new SqlQuery($sql);
        return $this->executeUpdate($sqlQuery);
    }

    public function queryOneByBuybillid($value) {
        $sql = 'SELECT * FROM buybillcurr WHERE buybillid = ?';
        $sqlQuery = new SqlQuery($sql);
        $sqlQuery->setNumber($value);
        return $this->getRow($sqlQuery);
    }

}

?>