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