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; }