sth
This commit is contained in:
parent
4704965778
commit
e62b8a7dc4
|
|
@ -142,6 +142,14 @@ class Dispatch extends Backend
|
|||
if (!$order) {
|
||||
$this->error(__('No results were found'));
|
||||
}
|
||||
|
||||
//判断 是否存在有效派单任务
|
||||
$existDispatch = OrderDispatch::where('order_id', $params['order_id'])->where('status', '>',0)->find();
|
||||
|
||||
if(!empty($existDispatch)){
|
||||
$this->error('该订单已经派单,不可重复操作');
|
||||
}
|
||||
|
||||
$insert = [
|
||||
'admin_id' => $this->auth->id,
|
||||
'admin_user' => $this->auth->nickname,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user