<?php
namespace model\sample;

use Exception;
/**
 * 样品各状态日期类
 * @package model
 */
class sampleDate extends \model
{

	public function __construct()
    {
        $this->table = 'sample_date';
        $this->key = 'sdate_sid';
		parent::__construct();
	}

    /**
     * edit ceil 值修改
     * @return array
     */
    public function setValue($key, $field, $value)
    {
        if ($this->hasKey($key)) {
            $this->db->update($this->table, [$field => $value], [$this->key => $key]);
        } else {
            $this->db->insert($this->table, [$this->key => $key, $field => $value]);
        }
    }
}