Finish mzl_dev
This commit is contained in:
@@ -1114,5 +1114,17 @@ class StockOrdersService
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function serviceDestroy(Request $request, string $scene = 'destroy')
|
||||
{
|
||||
$config = $this->buildQueryConfig($request, $scene);
|
||||
$item = $this->logicShow($config);
|
||||
if (!$item) {
|
||||
throw new BusinessException('数据不存在');
|
||||
}
|
||||
if ($item->approval_status == 1 || $item->approval_status == 2) {
|
||||
throw new BusinessException('审核中或者已审核的订单不能删除');
|
||||
}
|
||||
$deleted = $this->logicDeleteBy($config);
|
||||
return $this->postProcess(ucfirst($scene), $deleted);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user