Finish mzl_dev

This commit is contained in:
mzl
2025-11-04 13:11:54 +08:00
+13 -1
View File
@@ -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);
}
} }