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