新增根据地区查询商品总数

This commit is contained in:
yaooo 2023-08-23 14:48:09 +08:00
parent 65294eb944
commit de6cea16ac

View File

@ -1040,10 +1040,10 @@ class Auth extends BaseController
if ($endDate) {
$prodQueryBuilder = $prodQueryBuilder->whereTime('create_time', '<=', trim($endDate) . ' 23:59:59');
}
$prodNum = $prodQueryBuilder->fetchSql(false)->count();
$goodsNum = $prodQueryBuilder->fetchSql(false)->count();
$data = [
'where' => $this->request->param(),
'goods_num' => $prodNum
'goods_num' => $goodsNum
];
return app('json')->success($data);
}