|
|
@@ -34,8 +34,9 @@ class PullCalcBonusData extends BaseBusiness
|
|
|
'calcBonusQuarter' => ['type' => 'same', 'table' => 'AR_CALC_BONUS_QUARTER'],
|
|
|
'calcBonusTourism' => ['type' => 'same', 'table' => 'AR_CALC_BONUS_TOURISM'],
|
|
|
|
|
|
- 'AR_BS_BONUS_103_CALC_1' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_CALC_1'],
|
|
|
+ 'AR_BS_BONUS_103_CALC_1' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_CALC_1', 'condition_type' => 'id', 'condition_field' => 'CALC_PERIOD_ID'],
|
|
|
'AR_BS_BONUS_103_CALC_EVENT' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_CALC_EVENT'],
|
|
|
+ 'AR_BS_BONUS_103_CALC_NET' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_CALC_NET'],
|
|
|
'AR_BS_BONUS_103_CALC_NET_1' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_CALC_NET_1'],
|
|
|
'AR_BS_BONUS_103_TEST' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_TEST'],
|
|
|
'AR_BS_BONUS_103_TEST_NET' => ['type' => 'same', 'general_clear' => true, 'table' => 'AR_BS_BONUS_103_TEST_NET'],
|
|
|
@@ -289,9 +290,14 @@ class PullCalcBonusData extends BaseBusiness
|
|
|
// CalcBonusGX::pageDeleteAll('PERIOD_NUM=' . $this->_periodNum);
|
|
|
// CalcBonusGL::pageDeleteAll('PERIOD_NUM=' . $this->_periodNum);
|
|
|
|
|
|
+
|
|
|
foreach (self::BASE_INFO_METHODS as $info) {
|
|
|
if ('same' == $info['same'] && isset($info['general_clear']) && $info['general_clear']) {
|
|
|
- $res = self::pageDeleteAll($info['table'], 'PERIOD_NUM=' . $this->_periodNum);
|
|
|
+ if (isset($info['condition_type']) && $info['condition_type'] == 'id') {
|
|
|
+ $res = self::pageDeleteAll($info['table'], $info['condition_field'] . '=' . $this->_periodId);
|
|
|
+ } else {
|
|
|
+ $res = self::pageDeleteAll($info['table'], 'PERIOD_NUM=' . $this->_periodNum);
|
|
|
+ }
|
|
|
if (!$res) {
|
|
|
CalcRecord::record($this->_periodNum, '第' . $this->_periodNum . '期的' . $info['table'] . '表清理失败');
|
|
|
}
|