|
|
|
@ -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])) {
|
|
|
|
|