From d2fe06e5b1428a9c7a02dfaed09b69403705771d Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sun, 18 Sep 2022 11:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90-=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TestingResourceController.class.php | 39 +++ .../Admin/View/TestingResource/batchList.html | 266 ++++++++++++++++++ 2 files changed, 305 insertions(+) create mode 100644 Application/Admin/View/TestingResource/batchList.html 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