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: "打款详情",