<?php
class VinChModel extends VinChBase
{
	/**
	  * @method 查询2级车型信息
	  * @param  $fieldArr 需要查询的字段名称数组
	  * @param  $where 查询条件
	  * @param  $oneRow true|false
	  * @author soul
	  * @copyright 2016/3/30
	  * @return array(3) { ["status"]=> bool(true) ["data"]=> $OneRow=false 二维数组 ; $OneRow=true 一维数组["code"]=> int(0) } 
	  */
	public function getModel2($fieldArr, $where = '', $oneRow = false)
	{
		$table = 'model2
			LEFT JOIN model1 ON m2_m1_id = m1_id
			LEFT JOIN make ON m2_make_id = make_id';
		return $this->get($table, $fieldArr, $where, $oneRow);
	}
	
	/**
	  * @method 车型VIN
	  * @param  $fieldArr 需要查询的字段名称数组
	  * @param  $where 查询条件
	  * @param  $oneRow true|false
	  * @author soul
	  * @copyright 2016/3/30
	  * @return array(3) { ["status"]=> bool(true) ["data"]=> $OneRow=false 二维数组 ; $OneRow=true 一维数组["code"]=> int(0) } 
	  */
	public function getVin($fieldArr, $where = '', $oneRow = false)
	{
		$table = 'm2_vin
			JOIN model2 ON m2_id = vin_m2_id
			LEFT JOIN model1 ON m2_m1_id = m1_id
			LEFT JOIN make ON m2_make_id = make_id';
		return $this->get($table, $fieldArr, $where, $oneRow);
	}
}