From 3c326d3aa944c75631c4bc3d2b445ccdc26b7381 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 31 Dec 2021 09:53:33 +0800 Subject: [PATCH] * Fix the error report of the product summary table under statistical navigation. --- module/report/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/report/model.php b/module/report/model.php index bcfda09e5f..588c72979d 100644 --- a/module/report/model.php +++ b/module/report/model.php @@ -148,7 +148,7 @@ class reportModel extends model ->orderBy('t2.order_asc, t1.line_desc, t1.order_asc') ->fetchAll('id'); - $plans = $this->dao->select('*')->from(TABLE_PRODUCTPLAN)->where('deleted')->eq(0)->andWhere('product')->in(array_keys($products)) + $plans = $this->dao->select('id, product, branch, parent, title, begin, end')->from(TABLE_PRODUCTPLAN)->where('deleted')->eq(0)->andWhere('product')->in(array_keys($products)) ->beginIF(strpos($conditions, 'overduePlan') === false)->andWhere('end')->gt(date('Y-m-d'))->fi() ->orderBy('product,parent_desc,begin') ->fetchAll('id');