1
This commit is contained in:
parent
01568416c9
commit
0df8d9b043
@ -308,9 +308,9 @@ class Order extends Model
|
||||
* @param array $params
|
||||
* @param string|int $is_platform_deep_cooperation
|
||||
* @param array $fields
|
||||
* @return array
|
||||
* @return array|Collection|\Hyperf\Collection\Collection
|
||||
*/
|
||||
public static function getDoctorWithdrawalOrderList(array $params, string|int $is_platform_deep_cooperation,array $fields = ["*"]): array
|
||||
public static function getDoctorWithdrawalOrderList(array $params, string|int $is_platform_deep_cooperation,array $fields = ["*"]): array|Collection|\Hyperf\Collection\Collection
|
||||
{
|
||||
$query = self::with(['OrderInquiry', 'OrderServicePackage'])
|
||||
->where($params)
|
||||
@ -343,6 +343,6 @@ class Order extends Model
|
||||
});
|
||||
});
|
||||
|
||||
return $query->get();
|
||||
return $query->get($fields);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user