|
|
|
@ -346,7 +346,6 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
')
|
|
|
|
|
->where($map)
|
|
|
|
|
->join('tab_reward_detail as rd on rd.record_id = r.id', 'LEFT')->select();
|
|
|
|
|
|
|
|
|
|
if ($list) {
|
|
|
|
|
$record = [];
|
|
|
|
|
foreach ($list as $item) {
|
|
|
|
@ -529,12 +528,14 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
$this->success('保存成功', U('StatementMangement/rewardManageList'));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
$data['create_time'] = time();
|
|
|
|
|
$data['creater_id'] = is_login();
|
|
|
|
|
$ins = M('reward_record', 'tab_')->add($data);
|
|
|
|
|
|
|
|
|
|
$record_id = M('reward_record', 'tab_')->getLastInsID();
|
|
|
|
|
foreach ($settlmentSet as $item) {
|
|
|
|
|
$item['record_id'] = M('reward_record', 'tab_')->getLastInsID();
|
|
|
|
|
$item['record_id'] = $record_id;
|
|
|
|
|
M('reward_detail', 'tab_')->add($item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|