feat: 工单列表调整
This commit is contained in:
parent
05529db202
commit
4066e74c1e
|
|
@ -27,7 +27,7 @@ class OrderDispatchService extends BaseService
|
|||
|
||||
/**
|
||||
* @param int $workerId 师傅id
|
||||
* @param string $type 类型:ongoing=进行中,today=当日,tomorrow=昨日,all=全部订单
|
||||
* @param string $type 类型:pending=待沟通,need_visit=待上门,ongoing=服务中,finished=已完成
|
||||
* @param int $pageSize
|
||||
*/
|
||||
public function workbenchOrderList(int $workerId, string $type, int $pageSize)
|
||||
|
|
@ -49,10 +49,10 @@ class OrderDispatchService extends BaseService
|
|||
public function countWorkbenchOrder(int $workerId)
|
||||
{
|
||||
return [
|
||||
'ongoing' => $this->getWorkbenchOrderModel($workerId, 'ongoing')->count(),
|
||||
'today' => $this->getWorkbenchOrderModel($workerId, 'today')->count(),
|
||||
'tomorrow' => $this->getWorkbenchOrderModel($workerId, 'tomorrow')->count(),
|
||||
'all' => $this->getWorkbenchOrderModel($workerId, 'all')->count(),
|
||||
'pending' => $this->getWorkbenchOrderModel($workerId, 'ongoing')->count(),
|
||||
'need_visit' => $this->getWorkbenchOrderModel($workerId, 'today')->count(),
|
||||
'ongoing' => $this->getWorkbenchOrderModel($workerId, 'tomorrow')->count(),
|
||||
'finished' => $this->getWorkbenchOrderModel($workerId, 'all')->count(),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user