更新
This commit is contained in:
parent
84460f27e1
commit
68b896f990
@ -69,11 +69,12 @@ class RetailOrderController extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function merchant_order_count()
|
public function merchant_order_count()
|
||||||
{
|
{
|
||||||
|
$date = $this->request->get('date', date('Y-m-d'));
|
||||||
$where[] = ['merchant', '=',$this->userInfo['merchant']['mer_id']];
|
$where[] = ['merchant', '=',$this->userInfo['merchant']['mer_id']];
|
||||||
$where[] = ['paid', '=',1];
|
$where[] = ['paid', '=',1];
|
||||||
$where[] = ['pay_type', '<>',9];
|
$where[] = ['pay_type', '<>',9];
|
||||||
$where[] = ['is_opurchase', '=',0];
|
$where[] = ['is_opurchase', '=',0];
|
||||||
$res = Cashierclass::where($where)->count();
|
$res = Cashierclass::where($where)->whereDay('create_time', $date)->count();
|
||||||
return $this->success('ok', ['order_count' => $res]);
|
return $this->success('ok', ['order_count' => $res]);
|
||||||
}
|
}
|
||||||
public function order_count()
|
public function order_count()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user