更新细节

This commit is contained in:
yaooo 2023-12-20 14:49:59 +08:00
parent 758b34229e
commit dd5e0ffd61

View File

@ -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']);
}