添加奖金池总额

master
ELF 3 years ago
parent 556e3ba624
commit 546abbfa72

@ -189,13 +189,13 @@ class BusinessAffairsAwardController extends ThinkController
$map['verify_status'] = ['like',"%{$_REQUEST['verify_status']}%"];
}
$data = M("business_affairs_award_pool","tab_")
$query = M("business_affairs_award_pool","tab_")
->where($map);
if (!$_REQUEST['export']) {
$data->page($page, $row);
$query->page($page, $row);
}
$data = $data->order("time desc")->select();
$data = $query->order("time desc")->select();
foreach ($data as $key => $value) {
@ -246,6 +246,10 @@ class BusinessAffairsAwardController extends ThinkController
$count = M("business_affairs_award_pool","tab_")
->where($map)
->count();
$gameBonusPool = M("business_affairs_award_pool","tab_")
->where($map)
->sum('game_bonus_pool');
if(IS_ROOT){
$this->assign('verify_check',true);
@ -264,7 +268,7 @@ class BusinessAffairsAwardController extends ThinkController
}
$this->assign("list",$data);
$this->assign("gameBonusPool", round(floatval($gameBonusPool), 2));
$this->display();
}

@ -215,6 +215,9 @@
</tr>
</volist>
<tr>
<td colspan="16" class="text-center">奖金池总额:{$gameBonusPool}</td>
</tr>
</notemtpy>
</tbody>
</table>

Loading…
Cancel
Save