...
|
...
|
@@ -43,14 +43,14 @@ class Car extends Model |
|
|
}
|
|
|
|
|
|
public function getCarMoney($where){
|
|
|
$goodsId = $this->where($where)->where(['type'=>1])->column('id');
|
|
|
$goodsId = $this->where($where)->where(['type'=>1])->column('goods_id');
|
|
|
$goodsList = $this->alias('c')
|
|
|
->join('fa_goods g','c.goods_id=g.id')
|
|
|
->where(['c.id'=>['in',$goodsId]])
|
|
|
->field('g.id,goods_price*number goods_price,g.vip_price*number vip_price,g.is_vip_price,g.ch_name,g.en_name,g.image,c.number')
|
|
|
->select();
|
|
|
|
|
|
$integralGoodsId = $this->where($where)->where(['type'=>2])->column('id');
|
|
|
$integralGoodsId = $this->where($where)->where(['type'=>2])->column('goods_id');
|
|
|
$integralGoodsList = $this->alias('c')
|
|
|
->join('fa_integral_goods g','c.goods_id=g.id')
|
|
|
->where(['c.id'=>['in',$integralGoodsId]])
|
...
|
...
|
|