From 9837ba3682a97afb77e4d75f1ceed4d03850fd93 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 1 Mar 2021 10:28:24 +0800 Subject: [PATCH] =?UTF-8?q?2.28=E5=8F=B7=E5=8A=9F=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index b04ff82ce..a2974226e 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -312,11 +312,11 @@ class CompanyStatementPoolController extends ThinkController $infolist = SM("company_statement_info","tab_")->field("*,'1' as st")->where("pool_id = '{$id}' and pay_status!=1")->select(); //获取母单 $pool_info = SM("company_statement_pool","tab_")->field('wm_statement_ids,statement_num,create_lack_ids,verify_status,is_payment,withdraw_type,statement_begin_time,statement_end_time')->where("id={$id}")->find(); -// if(!empty($pool_info['create_lack_ids'])){ -// $l_ids = $pool_info['create_lack_ids']; -// $lack_info = SM("company_lack_statement_info","tab_")->field("*,'0' as st")->where("id in ({$l_ids})")->select(); -// $infolist =array_merge($infolist,$lack_info); -// } + if(!empty($pool_info['create_lack_ids'])){ + $l_ids = $pool_info['create_lack_ids']; + $lack_info = SM("company_lack_statement_info","tab_")->field("*,'0' as st")->where("id in ({$l_ids})")->select(); + $infolist =array_merge($infolist,$lack_info); + } // dump($infolist);die(); @@ -1906,7 +1906,7 @@ class CompanyStatementPoolController extends ThinkController $clsi = SM("company_lack_statement_info","tab_")->where("is_pool = 1 and id in ({$create_lack_ids})")->find(); $re_op = true; if(!empty($clsi)){ -// $re_op = false; //被引用无法重算 + $re_op = false; //被引用无法重算 } } if($re_op){