|
|
@@ -361,7 +361,7 @@ class CalcServeBonusCalc extends BaseObject {
|
|
|
public function loopUpdateMonthPerf($offset = 0) {
|
|
|
echo sprintf("时间:[%s]修正月业绩表最新聘级字段,当前offset为:【%s】" . PHP_EOL, date('Y-m-d H:i:s', time()) , $offset);
|
|
|
$allData = PerfMonth::findUseDbCalc()
|
|
|
- ->where('CALC_MONTH=:CALC_MONTH', [':CALC_MONTH' => $this->_calcMonth])
|
|
|
+ ->where('CALC_MONTH=:CALC_MONTH', [':CALC_MONTH' => $this->_calcYearMonth])
|
|
|
->offset($offset)
|
|
|
->limit($this->_limit)
|
|
|
->asArray()
|
|
|
@@ -373,7 +373,7 @@ class CalcServeBonusCalc extends BaseObject {
|
|
|
PerfMonth::updateAll(['LAST_EMP_LV' => $nowBsEmpLv], 'USER_ID=:USER_ID AND CALC_MONTH=:CALC_MONTH',
|
|
|
[
|
|
|
':USER_ID' => $data['USER_ID'],
|
|
|
- ':CALC_MONTH' => $this->_calcMonth
|
|
|
+ ':CALC_MONTH' => $this->_calcYearMonth
|
|
|
]
|
|
|
);
|
|
|
}
|