This commit is contained in:
2021-04-06 18:38:29 +08:00
parent dd6279a269
commit 78de84ae7c
+1 -3
View File
@@ -335,8 +335,6 @@ use {$model_namespace}\\{$managerName};
*/
public function actionList(): string
{
$pWhere = array();' . $this->getWhere($fields) . '
//分页处理
$count = $this->input->get(\'count\', -1);
$order = $this->input->get(\'order\', \'id\');
@@ -347,7 +345,7 @@ use {$model_namespace}\\{$managerName};
}
//列表输出
$model = ' . $managerName . '::find()->where($pWhere)->orderBy($order);
$model = ' . $managerName . '::find()->where($this->input->gets())->orderBy($order);
if((int) $count === 1){
$count = $model->count();