|
|
@@ -42,7 +42,7 @@ class TraceUpQyList extends \common\libs\dataList\DataList implements DataListIn
|
|
|
$userId = $this->others['userId'];
|
|
|
$periodNum = $this->others['periodNum'];
|
|
|
$data = UserNetwork::getAllParentFromPeriodWithPage($userId, $periodNum);
|
|
|
- if ($data['list']) {
|
|
|
+ if (isset($data['list']) && $data['list']) {
|
|
|
$decTotal = CalcCache::nowPeriodPerf($userId, $periodNum);
|
|
|
foreach ($data['list'] as $key => $value) {
|
|
|
$perfPeriod = PerfPeriod::findOneAsArray('USER_ID=:USER_ID AND PERIOD_NUM=:PERIOD_NUM',[':USER_ID'=>$value['USER_ID'],':PERIOD_NUM'=>$periodNum]);
|
|
|
@@ -73,6 +73,8 @@ class TraceUpQyList extends \common\libs\dataList\DataList implements DataListIn
|
|
|
$data['list'][$key]['QY_5L'] = $data['list'][$key]['PV_5L_TOUCH'] + $pervSurplusPerf['SURPLUS_5L'];
|
|
|
unset($bonus,$bigLocation);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ $data['list'] = [];
|
|
|
}
|
|
|
$this->listData = $data;
|
|
|
}
|