<?php

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

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

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

}

?>