|
|
@@ -1201,7 +1201,7 @@ class PerfCalc {
|
|
|
$userId = $everyData['USER_ID'];
|
|
|
$pv = $everyData['MONTH_PV'];
|
|
|
$userBaseInfo = CalcCache::getUserInfo($userId, $this->_periodNum);
|
|
|
- $userNetWork = CalcCache::getUserNetWorkNewInfo($userId, $this->_periodNum);
|
|
|
+ $userRelation = CalcCache::getUserRelationInfo($userId, $this->_periodNum);
|
|
|
// 记录有业绩单的用户
|
|
|
StorePerfLog::addOrUpdate(
|
|
|
$this->_periodNum,
|
|
|
@@ -1214,7 +1214,7 @@ class PerfCalc {
|
|
|
'PERIOD_NUM' => $this->_periodNum,
|
|
|
'CALC_MONTH' => $this->_calcYearMonth,
|
|
|
'CREATE_AT' => time(),
|
|
|
- 'PARENT_UID' => $userNetWork['PARENT_UID']
|
|
|
+ 'PARENT_UID' => $userRelation['PARENT_UID']
|
|
|
],
|
|
|
$pv
|
|
|
);
|
|
|
@@ -1228,7 +1228,7 @@ class PerfCalc {
|
|
|
// 如果此用户不是店铺,继续上找到店铺并累加上去PV
|
|
|
$this->loopRelationParentDo($userId, function ($parent) use (&$everyData) {
|
|
|
$parentUser = CalcCache::getUserInfo($parent['PARENT_UID'], $this->_periodNum);
|
|
|
- $userNetWork = CalcCache::getUserNetWorkNewInfo($parent['PARENT_UID'], $this->_periodNum);
|
|
|
+ $userRelation = CalcCache::getUserRelationInfo($parent['PARENT_UID'], $this->_periodNum);
|
|
|
$isStudio = $parentUser['IS_STUDIO'] == 1 ? true : false;
|
|
|
$appendPv = $isStudio ? $everyData['MONTH_PV'] : 0;
|
|
|
StorePerfLog::addOrUpdate(
|
|
|
@@ -1242,7 +1242,7 @@ class PerfCalc {
|
|
|
'PERIOD_NUM' => $this->_periodNum,
|
|
|
'CALC_MONTH' => $this->_calcYearMonth,
|
|
|
'CREATE_AT' => time(),
|
|
|
- 'PARENT_UID' => $userNetWork['PARENT_UID']
|
|
|
+ 'PARENT_UID' => $userRelation['PARENT_UID']
|
|
|
],
|
|
|
$appendPv
|
|
|
);
|