From 68e57ab1f54f0e852a61de99fc17488ea80b52a7 Mon Sep 17 00:00:00 2001 From: zyx Date: Fri, 8 Nov 2019 09:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=93=BE=E8=B7=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ExportController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 5c65c1408..337e43bd6 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -5714,7 +5714,7 @@ if ($key == 'model'){ if (!empty(I("root_id"))) { $root_id = I("root_id"); $parentData = $this->getParentSpendData($root_id,$month,2); - $map['chain'] =['like','%'.$root_id.'%']; + $map['chain'] =['like','%/'.$root_id.'/%']; $map['level'] = 2; } else if(!empty(I("sign"))){ $map['parent_id'] = ['neq',0]; @@ -5793,7 +5793,7 @@ if ($key == 'model'){ $parentData = $this->getParentSpendData($root_id,$month,3); - $map['chain'] =['like','%'.$root_id.'%']; + $map['chain'] =['like','%/'.$root_id.'/%']; $map['level'] = 3; } else if(!empty(I("sign"))){ @@ -5873,7 +5873,7 @@ if ($key == 'model'){ $parent_id = I("parent_id"); $parentData = $this->getParentSpendData($parent_id,$month,4); - $map['chain'] =['like','%'.$parent_id.'%']; + $map['chain'] =['like','%/'.$parent_id.'/%']; $map['level'] = 4; }