统计条件

This commit is contained in:
2025-03-19 12:53:30 +08:00
parent 69bd7bd4a7
commit 430e66ac00
+1 -1
View File
@@ -267,7 +267,7 @@ class CustomerController
}
$userId = $request->user['id'];
$id = Util::getParam($request, 'id');
$where = ['user_id', '=', $userId];
$where[] = ['user_id', '=', $userId];
$where[] = ['created_at', '>', strtotime($created.'-01')];
$customer = Customer::where($where)->count();
$whereVisit = $where;