This commit is contained in:
mkm 2024-05-16 17:25:47 +08:00
parent 84460f27e1
commit 68b896f990

View File

@ -69,11 +69,12 @@ class RetailOrderController extends BaseApiController
*/
public function merchant_order_count()
{
$date = $this->request->get('date', date('Y-m-d'));
$where[] = ['merchant', '=',$this->userInfo['merchant']['mer_id']];
$where[] = ['paid', '=',1];
$where[] = ['pay_type', '<>',9];
$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]);
}
public function order_count()