diff --git a/app/adminapi/logic/finance/FinanceRefundApplyLogic.php b/app/adminapi/logic/finance/FinanceRefundApplyLogic.php index 9a837a3c6..0048d0468 100644 --- a/app/adminapi/logic/finance/FinanceRefundApplyLogic.php +++ b/app/adminapi/logic/finance/FinanceRefundApplyLogic.php @@ -82,7 +82,7 @@ class FinanceRefundApplyLogic extends BaseLogic $contract = Contract::field('project_id')->where('id',$params['contract_id'])->findOrEmpty(); Db::startTrans(); try { - FinanceRefundApply::create([ + FinanceRefundApply::where('id',$params['id'])->update([ 'project_id' => $contract['project_id'], 'contract_id' => $params['contract_id'], 'refund_date' => strtotime($params['refund_date']),