feat(admin): 优化预售订单搜索功能

- 将 order_id 的搜索方式从精确匹配 (=) 改为模糊匹配 (%like)
- 保留其他搜索条件不变
This commit is contained in:
mkm 2024-11-14 15:59:50 +08:00
parent 9267218da0
commit a93649615e

View File

@ -30,7 +30,8 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte
public function setSearch(): array
{
return [
'=' => ['store_id', 'order_id', 'paid','status','order_type','order_sn'],
'=' => ['store_id','paid','status','order_type','order_sn'],
'%like'=>['order_id'],
'between_time' => 'create_time'
];
}