From 52ff4a2bc6e3cd8595594580502d0275097fed05 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 8 Dec 2020 09:57:39 +0800 Subject: [PATCH] =?UTF-8?q?12=E6=9C=88=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementPoolController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 68b0ac5af..ec2124064 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -1047,6 +1047,12 @@ class CompanyStatementPoolController extends ThinkController public function delPayInfo($id) { $company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select(); + //有一笔单子已打款将不可撤回 + foreach ($company_statement_info as $key => $value) { + if($value['pay_status'] == 1) { + return; + } + } M("company_statement_info","tab_")->where("pool_id={$id}")->save(['verify_status'=>0,'pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]);