|
|
|
@ -49,12 +49,12 @@ class Recovery extends Controller |
|
|
|
|
$category_id = intval($this->request->post('category_id')); |
|
|
|
|
$where = []; |
|
|
|
|
if ($recovery_name) { |
|
|
|
|
$where[] = ['recovery.recovery_name', 'like', "%$recovery_name%"]; |
|
|
|
|
$where[] = ['server_recovery.recovery_name', 'like', "%$recovery_name%"]; |
|
|
|
|
} |
|
|
|
|
if ($category_id) { |
|
|
|
|
$where[] = ['recovery.category_id', '=', $category_id]; |
|
|
|
|
$where[] = ['server_recovery.category_id', '=', $category_id]; |
|
|
|
|
} |
|
|
|
|
$where[] = ['recovery.status', '=', 1]; |
|
|
|
|
$where[] = ['server_recovery.status', '=', 1]; |
|
|
|
|
$model = new ServerRecovery(); |
|
|
|
|
$list = $model->getList($where); |
|
|
|
|
$data['list'] = $list->items(); |
|
|
|
|