Merge branch 'feature/crmAdmin0717' into develop
This commit is contained in:
@@ -373,7 +373,10 @@ class CustomerController extends BaseController
|
|||||||
$where[] = ['created_at', '>=', $start];
|
$where[] = ['created_at', '>=', $start];
|
||||||
$where[] = ['created_at', '<', $end];
|
$where[] = ['created_at', '<', $end];
|
||||||
$customer = Customer::where($where)->count();
|
$customer = Customer::where($where)->count();
|
||||||
|
$builder = Customer::where($where)->count();
|
||||||
|
$sql = str_replace(['?'], ['\'%s\''], $builder->toSql());
|
||||||
|
$fullSql = vsprintf($sql, $builder->getBindings());
|
||||||
|
var_dump($fullSql);
|
||||||
//初步接触
|
//初步接触
|
||||||
$whereGrade = $where;
|
$whereGrade = $where;
|
||||||
$whereGrade[] = ['grade', '<=', 2];
|
$whereGrade[] = ['grade', '<=', 2];
|
||||||
|
|||||||
Reference in New Issue
Block a user