月结统计bug修正

master
zyx 5 years ago
parent 12016f1b34
commit ce008b284e

@ -383,7 +383,7 @@ class FinanceController extends ThinkController
if ($page == 1) { if ($page == 1) {
$parentData = $this->getParentSpendData($root_id,$month,2); $parentData = $this->getParentSpendData($root_id,$month,2);
} }
$map['chain'] =['like','%'.$root_id.'%']; $map['chain'] =['like','%/'.$root_id.'/%'];
$map['level'] = 2; $map['level'] = 2;
} else if(!empty(I("sign"))){ } else if(!empty(I("sign"))){
$map['parent_id'] = ['neq',0]; $map['parent_id'] = ['neq',0];
@ -461,7 +461,7 @@ class FinanceController extends ThinkController
if ($page == 1) { if ($page == 1) {
$parentData = $this->getParentSpendData($root_id,$month,3); $parentData = $this->getParentSpendData($root_id,$month,3);
} }
$map['chain'] =['like','%'.$root_id.'%']; $map['chain'] =['like','%/'.$root_id.'/%'];
$map['level'] = 3; $map['level'] = 3;
} else if(!empty(I("sign"))){ } else if(!empty(I("sign"))){
@ -539,7 +539,7 @@ class FinanceController extends ThinkController
$parentData = $this->getParentSpendData($parent_id,$month,4); $parentData = $this->getParentSpendData($parent_id,$month,4);
} }
$map['chain'] =['like','%'.$parent_id.'%']; $map['chain'] =['like','%/'.$parent_id.'/%'];
$map['level'] = 4; $map['level'] = 4;
} }

Loading…
Cancel
Save