} else { $query->orderBy($property, $direction); } } } /* // {property: "id", direction: 'asc'} // {property: "id,GB2312", direction: 'asc'} mysql 按指定编码查询 foreach ($sorts as $sort) { $driver = DB::connection()->getDriverName(); $field = explode(',', $sort->property ?? 'id'); $direction = $sort->direction ?? 'asc'; if (!$field[0]) { continue; } if (count($field) === 1 || $driver !== 'mysql') { $query->orderBy($field[0], $direction); } else { // 按指定编码查询 $query->orderByRaw("convert({$field[0]} using {$field[1]}) {$direction}"); } } */ // 关联 if (is_string($relation)) { $relation = $relation = explode(',', $relation); } $query->with($relation); return $query; } /** * 分析过滤器 * 过滤器格式: * [{ * property: 数据库字段名称 * value: 字段的查询条件 * operator: 查询操作符, 默认 '=' * sensitive: 比较时是否区分大小写, 默认 false * boolean: 查询逻辑, 默认 'and' * relation: 关联查询 * relation: 关联名称 * }] * * @param QueryBuilder|EloquentBuilder $query * @param array $filter */ private function parseFilter(&$query, &$filter) { /** @var \stdClass $filter */ $property = $filter->property ?? null; $value = $filter->value ?? null; $operator = $filter->operator ?? '='; $sensitive = $filter->sensitive ?? false; $boolean = $filter->boolean ?? 'and'; $filterMethod = 'queryFilter' . studly_case(strtolower(gettype($value))); if (!$property0��� ���� ��� ��������� ����@�X�� �����)Z�� �)Z�� ����@ ����P���� �������� ��������� ��������� �����)Z�� ��������� �����r�� ����p��� �������� ��������� ��������� �����)Z�� ��������� ����w�� ��������� �e<�����I E:\wwwroot\LocalUser\nem-cn\www\vendor\kalnoy\nestedset\src\NodeTrait.php _"开头的$pr����� V /** * Whether the node has moved since last save. * * @var bool */ t���� H /** * Call pending action. * * @return null|false */ or, $where, $bo���� J /** * Relation to the parent. * * @return BelongsTo */ $this->query���� J /** * Make this node a root node. * * @return $this */ �值的类型`��� K /** * Restore the descendants. * * @param $deletedAt */ traParams = ���� J /** * @param string $table * * @return QueryBuilder */ or, $boolean,���� M /** * Get node height (rgt - lft + 1). * * @return int */ perty, $va`��� L /** * Get number of descendant nodes. * * @return int */ tor = '>=',���� J /** * Get whether node is root. * * @return boolean */ $operator, $b@��� L /** * Get the parent id key name. * * @return string */ erty, $oper���� W /** * Get the value of the model's lft key. * * @return integer */ ��� W /** * Get the value of the model's rgt key. * * @return integer */ ���� I /** * @param array $columns * * @return Collection */ = $boolean === ��� P /** * @param array $columns * * @return Collection|self[] */ } p��� P /** * @param array $columns * * @return Collection|self[] */ ���� P /** * @param array $columns * * @return Collection|self[] */ /** P��� P /** * @param array $columns * * @return Collection|self[] */ \Builde���� 8i�� ����0lx�� plx�� ����` �� ��� ����XL�� ������� 8i�� ����0lx�� plx�� ���� j�� @��� �����Q�� �����:̧� ���� ����R��� 8i�� ����pMw�� pMw�� �����T�� ����0��� ��� ����&�� &�� ��������� ���� �����w�� �������� ��� ����`��� ��� ������� ��� ����X��� ������� 9Y�� !�� x��� ����h!�� 0 ���� �����#�� �������� ��� ���� � ��������� ���� ���� � ������� ����P1̧� I /** * 模型使用的表名称 * * @var string */ m string $oper ��� K 四川兴能新材料有限公司党支部被评为先进基层党组织。 vate functio���� K 四川兴能新材料有限公司党支部被评为先进基层党组织。 thod = $bool���� H 甘孜州泸兴锂业有限公司场地平整工程开工仪式举行。 tIn'); ���� H 甘孜州泸兴锂业有限公司场地平整工程开工仪式举行。 am \Illuminate\ 0̧� T 泸定县人民政府与我公司正式签订泸兴锂业有限公司投资项目。 ���p��� T 泸定县人民政府与我公司正式签订泸兴锂业有限公司投资项目。 ����0̧� L 国家扶贫攻坚第三方评估小组 莅临兴能剑阁基地调研考核 terNull(&$query, $property, $value = null, $operator = '', $boolean = 'and'`��� P �`��� ` ��b��� P � � .@��� P p`��� � <�m��� � � 40n��� � � +@��� P @ p ��� � �`���� � P B`��� � <����� � >�⽰� P $ +@��� P ` % p`��� � % <�T��� � � % p`��� � % <�T��� � � % p`��� % <P���� % L��� � % *�\��� ���� & p`��� & <0n��� & +�\��� ���� ' p`��� 0 ' <�T��� 0 ' p`��� @ ' <�T��� @ ' p`��� P ' <P���� P ` ' L��� @ ' *�\��� ���u@ ( p`��� p ( <�T��� p ` ( p`��� � ( <�T��� � � ( p`��� � ( <�T��� � � ( p`��� � ( <P���� � ` ( p���� ` ( f��� p ( &�\��� � - p`��� � - <�⽰� P � - +@��� P � - p`��� � - <P���� � � - L��� @ - *����� � - ���� � � � - 0n��� � ` - +@��� p . p#��� 0 . �0W��� P 1 t`��� 1 <0K��� � 1 &� ��� � @ 0 3 0n��� 0 @ 3 + ���� P 3 >0R��� � ` @ 6 0n��� @ � 6 +�\��� �_ �` 7 pP���� ` � P 7 0W��� P P 7 t`��� ` 7 <����� ` 7 > L��� @ 7 *0R��� ` � p : 0n��� p � : +�\��� � ; pP���� � ` � ; 0W��� � P ; t`��� � ; <����� � ; > L��� @ ; * ���� � > > L��� � > *@��� p � C p`��� � C <����� � � � C 0V��� � ` � C 0n��� � � C +�\��� � E p@��� p E p`��� � E <0_��� � P E 2`��� � E <����� � E >@��� p I p�ͽ�� ` P I B`��� � I <0K��� � � &