|
$where[] = ['a.user_id','=',$this->user_id];
|
|
$where[] = ['a.user_id','=',$this->user_id];
|
|
$where[] = ['a.is_deleted','=',0];
|
|
$where[] = ['a.is_deleted','=',0];
|
|
$list = AppOrder::field('a.id,a.goods_id,a.spec_id,a.order_no,a.status,a.code,a.remark,g.name goods_name,g.cover,i.goods_spec,g.desc')->alias('a')
|
|
$list = AppOrder::field('a.id,a.goods_id,a.spec_id,a.order_no,a.status,a.code,a.remark,g.name goods_name,g.cover,i.goods_spec,g.desc')->alias('a')
|
|
->leftJoin('StoreGoods g','a.goods_id = g.id')
|
|
->leftJoin('StoreGoods g','a.goods_id = g.id')
|
|
->leftJoin('StoreGoodsItem i','a.spec_id = i.id')
|
|
->leftJoin('StoreGoodsItem i','a.spec_id = i.id')
|