更新
This commit is contained in:
parent
3b80a8cc34
commit
eac4f42cc6
@ -111,7 +111,7 @@ class StoreOrderBehalf extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 生成二维码
|
* 生成二维码
|
||||||
*/
|
*/
|
||||||
public function logisticsCode($id)
|
public function logisticsCode()
|
||||||
{
|
{
|
||||||
// $status = $this->request->param('status',1);
|
// $status = $this->request->param('status',1);
|
||||||
$order_id = $this->request->param('order_id',0);
|
$order_id = $this->request->param('order_id',0);
|
||||||
@ -120,9 +120,9 @@ class StoreOrderBehalf extends BaseController
|
|||||||
if ($mer_id) {
|
if ($mer_id) {
|
||||||
$order_id = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status','>=',0)->where('order_id',$order_id)->value('order_id');
|
$order_id = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status','>=',0)->where('order_id',$order_id)->value('order_id');
|
||||||
if ($order_id) {
|
if ($order_id) {
|
||||||
$order = $this->repository->getWhere(['order_id' => $id,'is_del' => 0]);
|
$order = $this->repository->getWhere(['order_id' => $order_id,'is_del' => 0]);
|
||||||
|
|
||||||
return app('json')->success(['qrcode' => $this->repository->logisticsQrcode($id, $order->order_sn)]);
|
return app('json')->success(['qrcode' => $this->repository->logisticsQrcode($order_id, $order->order_sn)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return app('json')->fail('信息有误:请联系官方人员');
|
return app('json')->fail('信息有误:请联系官方人员');
|
||||||
@ -138,11 +138,13 @@ class StoreOrderBehalf extends BaseController
|
|||||||
$uid = $this->request->userInfo()['uid'];
|
$uid = $this->request->userInfo()['uid'];
|
||||||
$mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id');
|
$mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id');
|
||||||
if ($mer_id) {
|
if ($mer_id) {
|
||||||
$noPostage = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status',0)
|
$noPostage = Db::name('store_order_behalf')->alias('s')
|
||||||
->join('store_order', 'store_order.status = 0')
|
->where('s.mer_id', $mer_id)->where('s.status',0)
|
||||||
|
->join('store_order o ','o.status =s.status')
|
||||||
->count();
|
->count();
|
||||||
$noDeliver = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status',1)
|
$noDeliver = Db::name('store_order_behalf')->alias('s')
|
||||||
->join('store_order', 'store_order.status = 1')
|
->where('s.mer_id', $mer_id)->where('s.status',1)
|
||||||
|
->join('store_order o ','o.status =s.status')
|
||||||
->count();
|
->count();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user