|
|
@@ -859,7 +859,11 @@ class BonusCalc extends BaseObject {
|
|
|
return false;
|
|
|
}
|
|
|
echo sprintf("时间:[%s]店服务奖金计算--紧缩方式,当前offset为:【%s】" . PHP_EOL, date('Y-m-d H:i:s', time()) , $offset);
|
|
|
- $allData = CalcCache::getHasPerfUsers($this->_periodNum, $offset, $this->_limit);
|
|
|
+// $allData = CalcCache::getHasPerfUsers($this->_periodNum, $offset, $this->_limit);
|
|
|
+ $allData = StorePerfLog::find()
|
|
|
+ ->where('PERIOD_NUM=:PERIOD_NUM AND CALC_MONTH=:CALC_MONTH', [':PERIOD_NUM' => $this->_periodNum, ':CALC_MONTH' => $this->_calcYearMonth])
|
|
|
+ ->column('USER_ID');
|
|
|
+
|
|
|
if ($allData) {
|
|
|
$insertBonusData = [];
|
|
|
foreach ($allData as $userId) {
|
|
|
@@ -929,7 +933,7 @@ class BonusCalc extends BaseObject {
|
|
|
}
|
|
|
CalcBonusST::batchInsert($insertBonusData);
|
|
|
unset($allData, $insertBonusData);
|
|
|
- return $this->calcStoreBonusReduce($offset + $this->_limit);
|
|
|
+// return $this->calcStoreBonusReduce($offset + $this->_limit);
|
|
|
}
|
|
|
|
|
|
unset($allData);
|