1234567891011121314151617181920212223 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_warehousefactoryout extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'warehousefactoryout';
- $this->load_table('warehousefactoryout');
- }
- /** 通过名称查找 */
- public function get_sku($sku)
- {
- return $this->find("sku = '$sku'");
- }
- public function get_outorder($outorder)
- {
- return $this->find("outorder = '$outorder'");
- }
- public function get_contract($contract)
- {
- return $this->find("contract = '$contract'");
- }
- } //end class
|