|
@@ -81,7 +81,7 @@ class User extends Api
|
|
|
->join("products c", "c.id = b.type_id", "left")
|
|
->join("products c", "c.id = b.type_id", "left")
|
|
|
->join("product_transfer z", "a.id = z.order_id AND a.status=2", "left") //转让
|
|
->join("product_transfer z", "a.id = z.order_id AND a.status=2", "left") //转让
|
|
|
->join("product_area d", "d.id = a.area_id", "left") //地区
|
|
->join("product_area d", "d.id = a.area_id", "left") //地区
|
|
|
- ->field('a.id as order_id,a.product_id,'.'b.'.$this->lan.'_name as name,b.thum as img_url,a.price,a.status,a.type_id,c.'.$this->lan.'_title as title,
|
|
|
|
|
|
|
+ ->field('a.id as order_id,a.product_id,'.'b.'.$this->lan.'_name as name,b.thum as img_url,a.price,a.status,a.order_no,a.type_id,c.'.$this->lan.'_title as title,
|
|
|
z.price as transfer_price,d.address,b.min_transfer_fee,b.max_transfer_fee,b.gift_fee,b.freight,b.is_transfer,b.is_gift,b.is_freight,b.is_storage,b.is_buying')
|
|
z.price as transfer_price,d.address,b.min_transfer_fee,b.max_transfer_fee,b.gift_fee,b.freight,b.is_transfer,b.is_gift,b.is_freight,b.is_storage,b.is_buying')
|
|
|
->where('a.user_id', $this->auth->id)
|
|
->where('a.user_id', $this->auth->id)
|
|
|
->where($where)
|
|
->where($where)
|