完善生产异常维修与备件管理功能
This commit is contained in:
@@ -49,7 +49,8 @@ class RepairRecordController extends Crud
|
||||
];
|
||||
$order = $order ?: 'repaired_at DESC, id DESC';
|
||||
$total = $this->service->getCount($where);
|
||||
$list = $this->service->selectList($where, $field, $page, $limit, $order, [], false);
|
||||
// 与总数查询保持一致,启用关键词搜索字段。
|
||||
$list = $this->service->selectList($where, $field, $page, $limit, $order, [], true);
|
||||
return call_user_func([$this, $methods[$format] ?? 'formatNormal'], $list, $total);
|
||||
} catch (\Throwable $e) {
|
||||
return Json::fail($e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user