|
|
@@ -438,7 +438,7 @@ class CalcServeBonusCalc extends BaseObject {
|
|
|
public function loopMonthPerfBsPGS($offset = 0) {
|
|
|
echo sprintf("时间:[%s]月业绩表个人小组业绩更新,当前offset为:【%s】" . PHP_EOL, date('Y-m-d H:i:s', time()) , $offset);
|
|
|
$allData = CalcBonusBsDetail::findUseDbCalc()
|
|
|
- ->where('PERIOD_NUM=:PERIOD_NUM AND CALC_MONTH=:CALC_MONTH', [':PERIOD_NUM' => $this->_periodNum, ':CALC_MONTH' => $this->_calcYearMonth])
|
|
|
+ ->where('PERIOD_NUM=:PERIOD_NUM AND CALC_MONTH=:CALC_MONTH AND GPV10 > 0', [':PERIOD_NUM' => $this->_periodNum, ':CALC_MONTH' => $this->_calcYearMonth])
|
|
|
->offset($offset)
|
|
|
->limit($this->_limit)
|
|
|
->asArray()
|