$queryObj = $this->alias('xxx');
$options=$queryObj->getOptions(); $total = $queryObj->count('*'); //为了解决count查询清空查询条件 call_user_func(\Closure::bind(function () use ($queryObj,$options) { $queryObj->options = $options; }, null, Query::class));
$queryObj = $this->alias('xxx');
$options=$queryObj->getOptions(); $total = $queryObj->count('*'); //为了解决count查询清空查询条件 call_user_func(\Closure::bind(function () use ($queryObj,$options) { $queryObj->options = $options; }, null, Query::class));