添加奖金池总额

master
ELF 3 years ago
parent 556e3ba624
commit 546abbfa72

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

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

Loading…
Cancel
Save