From dd5e0ffd61adc607853b1f2a61456b7d0a7cafb1 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 20 Dec 2023 14:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/logic/contract/SubcontractingContractLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adminapi/logic/contract/SubcontractingContractLogic.php b/app/adminapi/logic/contract/SubcontractingContractLogic.php index 326874ede..c5f88bef8 100644 --- a/app/adminapi/logic/contract/SubcontractingContractLogic.php +++ b/app/adminapi/logic/contract/SubcontractingContractLogic.php @@ -151,7 +151,7 @@ class SubcontractingContractLogic extends BaseLogic */ public static function delete(array $params): bool { - SubcontractingContractDetail::where('subcontracting_contract_id', $subcontractingContract->id)->update(['delete_time' =>time()]); + SubcontractingContractDetail::where('subcontracting_contract_id', $params['id'])->update(['delete_time' =>time()]); return ProcurementContract::destroy($params['id']); }