|
@@ -304,7 +304,7 @@ class PullCalcBonusData extends BaseBusiness
|
|
|
$param = $info['param_name'];
|
|
$param = $info['param_name'];
|
|
|
$res = self::pageDeleteAll($info['table'], $info['condition_field'] . '=' . $this->$param);
|
|
$res = self::pageDeleteAll($info['table'], $info['condition_field'] . '=' . $this->$param);
|
|
|
} else if (isset($info['condition_type']) && $info['condition_type'] == 'custom' && $info['condition'] == 'group') {
|
|
} else if (isset($info['condition_type']) && $info['condition_type'] == 'custom' && $info['condition'] == 'group') {
|
|
|
- $res = self::pageDeleteAll($info['table'], "CALC_MONTH = $this->_calcMonth and CALC_YEAR=$this->_calcYear")->queryAll();
|
|
|
|
|
|
|
+ $res = self::pageDeleteAll($info['table'], "CALC_MONTH = $this->_calcMonth and CALC_YEAR=$this->_calcYear");
|
|
|
} else {
|
|
} else {
|
|
|
$res = self::pageDeleteAll($info['table'], 'PERIOD_NUM=' . $this->_periodNum);
|
|
$res = self::pageDeleteAll($info['table'], 'PERIOD_NUM=' . $this->_periodNum);
|
|
|
}
|
|
}
|
|
@@ -342,7 +342,7 @@ class PullCalcBonusData extends BaseBusiness
|
|
|
$limit = 10000;
|
|
$limit = 10000;
|
|
|
$sql = sprintf('DELETE FROM %s WHERE %s LIMIT %d', $table, $where, $limit);
|
|
$sql = sprintf('DELETE FROM %s WHERE %s LIMIT %d', $table, $where, $limit);
|
|
|
try {
|
|
try {
|
|
|
- $affectRow = Yii::$app->db->createCommand($sql)->execute();
|
|
|
|
|
|
|
+ $affectRow = \Yii::$app->db->createCommand($sql)->execute();
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|