TP5解决count查询清空查询条件
$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::.
原创
2020-07-17 11:38:18 ·
1366 阅读 ·
0 评论