|
@@ -114,6 +114,7 @@ class Appointment extends Base
|
|
|
* @return name:phone type:string default:-- desc:人联系
|
|
|
* @return name:app_time type:string default:-- desc:预约时间
|
|
|
* @return name:goods_name type:string default:-- desc:商品名称
|
|
|
+ * @return name:cover type:string default:-- desc:商品封面
|
|
|
* @return name:goods_spec type:string default:-- desc:商品规格
|
|
|
* @return name:goods_id type:int default:-- desc:商品id
|
|
|
* @return name:spec_id type:int default:-- desc:规格id
|
|
@@ -125,7 +126,7 @@ class Appointment extends Base
|
|
|
$where[] = ['a.user_id','=',$this->user_id];
|
|
|
$where[] = ['a.is_deleted','=',0];
|
|
|
if($status > -1) $where[] = ['status','=',$status];
|
|
|
- $list = AppOrder::field('a.*,g.name goods_name,i.goods_spec')->alias('a')
|
|
|
+ $list = AppOrder::field('a.*,g.name goods_name,g.cover,i.goods_spec')->alias('a')
|
|
|
->leftJoin('StoreGoods g','a.goods_id = g.id')
|
|
|
->leftJoin('StoreGoodsItem i','a.spec_id = i.id')
|
|
|
->where($where)
|