allocatr/application/services/OrderDispatchService.php
2025-03-30 10:23:25 +08:00

19 lines
491 B
PHP

<?php
namespace app\services;
use app\admin\model\OrderDispatch;
class OrderDispatchService extends BaseService
{
public function dispatchList(int $workerId, int $pageSize)
{
$model = $this->getOrderDispatchModel()
->where('status', OrderDispatch::STATUS_TOGET)
->where('worker_id', $workerId)
->field(['id', 'order_id', 'status', 'remark', 'plan_time', 'create_time'])
->paginate($pageSize);
return $model;
}
}