订单详情
This commit is contained in:
parent
74b8a116e8
commit
b6e6b97a50
@ -5,9 +5,6 @@ namespace app\api\lists\order;
|
||||
|
||||
use app\admin\lists\BaseAdminDataLists;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\goods\Goods;
|
||||
use app\common\model\retail\Cashierclass;
|
||||
use app\common\model\retail\Cashierinfo;
|
||||
use app\common\model\store_order\StoreOrder;
|
||||
use app\common\model\store_order_cart_info\StoreOrderCartInfo;
|
||||
|
||||
@ -66,7 +63,8 @@ class OrderList extends BaseAdminDataLists implements ListsSearchInterface
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return StoreOrder::where($this->searchWhere)->count();
|
||||
$userId=$this->request->userId;
|
||||
return StoreOrder::where($this->searchWhere)->where('uid',$userId)->count();
|
||||
}
|
||||
|
||||
}
|
@ -391,9 +391,9 @@ class OrderLogic extends BaseLogic
|
||||
$item['msg'] = '预计48小时发货';
|
||||
$item['unit_name'] = StoreProductUnit::where('id', $item['unit'])->value('name');
|
||||
});
|
||||
$merchant = Merchant::where('mer_id', $find['merchant'])->field('mer_id,uid,mer_name,service_phone,mer_address')->find();
|
||||
$merchant['real_name'] = User::where('id', $merchant['uid'])->value('real_name');
|
||||
$find['merchant_info'] = $merchant;
|
||||
|
||||
$store = SystemStore::where('id', $find['store_id'])->field('id,name,phone,address,detailed_address')->find();
|
||||
$find['store_info'] = $store;
|
||||
|
||||
}
|
||||
return $find;
|
||||
|
Loading…
x
Reference in New Issue
Block a user