This commit is contained in:
2021-04-12 16:15:44 +08:00
parent c590efb739
commit e43e301d07
+6
View File
@@ -396,6 +396,12 @@ use {$model_namespace}\\{$managerName};
//列表输出
$model = ' . $managerName . '::find()->where($this->input->gets())->orderBy($order);
$keyword = $this->input->get(\'keyword\', null);
if (!empty($keyword)) {
$model->like(\'keyword\', $keyword);
}
if ((int) $count === 1) {
$count = $model->count();
}