| 123456789101112131415161718192021222324252627282930 | 
							- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
 
- class Model_commodityread_del extends Lin_Model 
 
- {
 
- 	function __construct(){
 
- 	parent::__construct();
 
- 	$this->load->database();
 
- 	$this->table = 'commodityread_del';
 
-     $this->load_table('commodityread_del');
 
- }
 
- 	public function get_productid($productid,$skuid)
 
- 	{
 
- 		return  $this->find("productid = '$productid' and skuid = '$skuid'");	
 
- 	}
 
- 	public function get_tbproduct($productid,$skuid)
 
- 	{
 
- 		return  $this->find("productid = '$productid' ".$skuid);	
 
- 	}
 
- 	public function get_code($productid,$code)
 
- 	{
 
- 		return  $this->find("productid = '$productid' and code = '$code'");	
 
- 	}
 
- 	public function get_sku($code)
 
- 	{
 
- 		return  $this->find("code = '$code'");	
 
- 	}
 
- 	public function get_skuid($skuid)
 
- 	{
 
- 		return  $this->find("skuid = '$skuid'");	
 
- 	}
 
- }  //end class
 
 
  |