From 747224dae9613b1d34625e9fa1c4611d5e0d8e2b Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 8 Dec 2020 09:21:47 +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 --- .../CompanyStatementPoolController.class.php | 19 ++++++++++++++++++- Application/Payment/View/Payment/lists.html | 6 ++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 9742cc7db..68b0ac5af 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -1033,6 +1033,8 @@ class CompanyStatementPoolController extends ThinkController $v['verify_log'] = json_encode($v['verify_log']); $v['verify_status']=6; + + $this->delPayInfo($v['id']); $this->DBModel->save($v); addOperationLog(['op_type'=>1,'key'=>$v['id'],"op_name"=>"审批撤回",'url'=>U('lists')]); } @@ -1042,6 +1044,21 @@ class CompanyStatementPoolController extends ThinkController )); } + public function delPayInfo($id) { + + $company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select(); + + M("company_statement_info","tab_")->where("pool_id={$id}")->save(['verify_status'=>0,'pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]); + + foreach ($company_statement_info as $key => $value) { + $is_hav = M("pay_statement_info","tab_")->where(['statement_info_id'=>$value['id']])->find(); + if ($is_hav) { + M("pay_statement_info","tab_")->where(['statement_info_id'=>$value['id']])->delete(); + } + } + + } + //线下打款 public function setUlPayment() { @@ -1807,7 +1824,7 @@ class CompanyStatementPoolController extends ThinkController public function splitForPayStatementInfo() { $ids = $_REQUEST['ids']; - $limit_amount = 10000; + $limit_amount = 50000; $dbres = $this->DBModel->field("id")->where("id in ({$ids})")->select(); foreach($dbres as $key=>$value){ diff --git a/Application/Payment/View/Payment/lists.html b/Application/Payment/View/Payment/lists.html index 7a5e1b0b7..055f4c343 100644 --- a/Application/Payment/View/Payment/lists.html +++ b/Application/Payment/View/Payment/lists.html @@ -619,6 +619,12 @@ }).get(); text = text.join(","); + + if (!text) { + layer.msg("管理后台汇总单未审核,请重新审核后再进行打款"); + return; + } + layer.open({ type: 2, title: "打款详情",