diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php index 8dd589ec4..19f2096b4 100644 --- a/Application/Admin/Controller/StatementMangementController.class.php +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -508,9 +508,9 @@ class StatementMangementController extends ThinkController } //dd($settlment_info); // 更新结算信息 -// if ($id) { -// M('reward_detail', 'tab_')->where(['record_id'=>$id])->delete(); -// } + if ($id) { + M('reward_detail', 'tab_')->where(['record_id'=>$id])->delete(); + } if (!empty($settlment_info[RewardModel::REWARD_TYPE_REWARD]) && !empty($settlment_info[RewardModel::REWARD_TYPE_PUNISH])) { $data['reward_type'] = RewardModel::REWARD_TYPE_ALL; } else if (!empty($settlment_info[RewardModel::REWARD_TYPE_REWARD])) {