|
|
|
@ -821,6 +821,10 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$query = M('testing_resource_batch_list', 'tab_')->where($conditions)->order('create_time desc');
|
|
|
|
|
|
|
|
|
|
$totalRow = M('testing_resource_batch_list', 'tab_')->field('sum(provide_amount) provide_amount_total')->where($conditions)->find();
|
|
|
|
|
|
|
|
|
|
$total = $totalRow['provide_amount_total'] ?? 0;
|
|
|
|
|
|
|
|
|
|
[$records, $page, $count] = $this->paginate($query);
|
|
|
|
|
|
|
|
|
|
$gameRepository = new GameRepository();
|
|
|
|
@ -828,6 +832,7 @@ class TestingResourceController extends ThinkController
|
|
|
|
|
$this->assign('statusList', TestingResourceRepository::$userStatusList);
|
|
|
|
|
$this->assign('games', $gameRepository->getChoiceGames());
|
|
|
|
|
$this->assign('count', $count);
|
|
|
|
|
$this->assign('total', $total);
|
|
|
|
|
$this->assign('records', $records);
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
$this->display();
|
|
|
|
|