diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 60503e2b7..6c1d35b6b 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -793,4 +793,43 @@ class TestingResourceController extends ThinkController return $this->ajaxReturn(['status' => 1, 'message' => '获取成功', 'data' => ['roles' => $roles]]); } + + public function batchList() { + $params = I('get.'); + $createTimeStart = $params['create_time_start'] ?? ''; + $createTimeEnd = $params['create_time_end'] ?? ''; + $gameId = $params['game_id'] ?? 0; + $gameName = $params['gameName'] ?? 0; + + $conditions = []; + $strCondition = '1=1'; + + if ($createTimeStart) { + $strCondition .= ' and create_time >=' . strtotime($createTimeStart . ' 00:00:00'); + } + if ($createTimeEnd) { + $strCondition .= ' and create_time <=' . strtotime($createTimeEnd . ' 23:59:59'); + } + + if ($gameId) { + $conditions['game_id'] = $gameId; + } + if ($gameName) { + $conditions['gameName'] = $gameName; + } + $conditions['_string'] = $strCondition; + + $query = M('testing_resource_batch_list', 'tab_')->where($conditions)->order('create_time desc'); + + [$records, $page, $count] = $this->paginate($query); + + $gameRepository = new GameRepository(); + + $this->assign('statusList', TestingResourceRepository::$userStatusList); + $this->assign('games', $gameRepository->getChoiceGames()); + $this->assign('count', $count); + $this->assign('records', $records); + $this->assign('_page', $page); + $this->display(); + } } \ No newline at end of file diff --git a/Application/Admin/View/TestingResource/batchList.html b/Application/Admin/View/TestingResource/batchList.html new file mode 100644 index 000000000..c499352cc --- /dev/null +++ b/Application/Admin/View/TestingResource/batchList.html @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+
+ + - +
+ + +
+
+
+ 搜索 +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 批次号申请时间游戏名称区服名称角色名称测试账号申请人审核人申请金额发放金额审核状态审核时间发放状态发放时间
aOh! 暂时还没有内容!
{$record.batch_no} + +
+ +
{$record.game_name}{$record.server_name}{$record.role_name}{$record.user_account}{$record.apply_account}{$record.verify_account}{$record.apply_amount}{$record.provide_amount} + 已审核 + + +
+ +
+ 已发放 + + +
+ +
+
+
+
+ + 导出 + + {$_page|default=''} +
+ + +
+ + + + + + + + \ No newline at end of file