...
|
...
|
@@ -25,8 +25,8 @@ class Car extends Model |
|
|
}
|
|
|
|
|
|
public function selectPageData($where,$page,$limit,$lang){
|
|
|
if ($lang == 'ch') $field = 'c.id car_id,c.createtime,cou.ch_name country_name,c.number,g.id goods_id,g.ch_name name,g.image,g.goods_price,g.group_price,g.vip_price,g.is_vip_price,g.is_group';
|
|
|
else $field = 'c.id car_id,c.createtime,cou.en_name country_name,c.number,g.id goods_id,g.en_name name,g.image,g.goods_price,g.group_price,g.vip_price,g.is_vip_price,g.is_group';
|
|
|
if ($lang == 'ch') $field = 'c.id car_id,c.createtime,cou.ch_name country_name,c.number,c.type,g.id goods_id,g.ch_name name,g.image,g.goods_price,g.group_price,g.vip_price,g.is_vip_price,g.is_group';
|
|
|
else $field = 'c.id car_id,c.createtime,cou.en_name country_name,c.number,c.type,g.id goods_id,g.en_name name,g.image,g.goods_price,g.group_price,g.vip_price,g.is_vip_price,g.is_group';
|
|
|
|
|
|
$total =$this->alias('c')
|
|
|
->where($where)
|
...
|
...
|
|