1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| /**
| * 搜索
| * @param array $where
| * @return \crmeb\basic\BaseModel
| * @throws \ReflectionException
| * @date {%DATE%}
| */
| public function searchCrudModel(array $where = [], $field = ['*'], string $order = '', array $with = [])
| {
| return $this->getModel()->field($field)->when($order !== '', function ($query) use ($order) {
| $query->order($order);
| })->when($with, function ($query) use ($with) {
| $query->with($with);
| }){%CONTENT_SEARCH_PHP%}
| }
|
|