|
@@ -59,6 +59,98 @@ class SoccerNoteListController extends Controller
|
|
|
return view('sports/sports_notelist', $dt->render($request));
|
|
return view('sports/sports_notelist', $dt->render($request));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //冠军注单手工结算
|
|
|
|
|
+ public function championset(Req $req)
|
|
|
|
|
+ {
|
|
|
|
|
+ $request['name_chinese'] = isset($req->name_chinese) ? trim($req->name_chinese) : null;
|
|
|
|
|
+ $request['sureblurs'] = isset($req->sureblurs) ? $req->sureblurs : 'on';
|
|
|
|
|
+ $request['account'] = isset($req->account) ? trim($req->account) : null;
|
|
|
|
|
+ $request['star_time'] = isset($req->star_time) ? trim($req->star_time) : null;
|
|
|
|
|
+ $request['end_time'] = isset($req->end_time) ? trim($req->end_time) : null;
|
|
|
|
|
+ $request['order_id'] = isset($req->order_id) ? trim($req->order_id) : null;
|
|
|
|
|
+ $request['match_id'] = isset($req->match_id) ? trim($req->match_id) : null;
|
|
|
|
|
+ $request['status'] = isset($req->status) ? trim($req->status) : '-1';
|
|
|
|
|
+ $request['order_status'] = isset($req->order_status) ? trim($req->order_status) : '-1';
|
|
|
|
|
+ $request['type'] = isset($req->type) ? trim($req->type) : 'zq';
|
|
|
|
|
+ $dt = \App\Lib\DataTable\DataTable::init();
|
|
|
|
|
+ $dt->setDataSource('/admin/SoccerNoteList/championsetinfo');
|
|
|
|
|
+ $dt->setLang('sportsnotelist');
|
|
|
|
|
+ //$dt->addColsFields('id', array('templet' => '#userdetail', 'sort' => true, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('lg_id_order', array('sort' => true, 'width' => 200));
|
|
|
|
|
+ $dt->addColsFields('league', array('templet' => '#userdetail', 'sort' => false, 'width' => 100));
|
|
|
|
|
+ $dt->addColsFields('home_guest', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('content', array('templet' => '#userdetail', 'sort' => false, 'width' => 250));
|
|
|
|
|
+ $dt->addColsFields('money', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('water_return', array('templet' => '#userdetail', 'sort' => false, 'width' => 70));
|
|
|
|
|
+ $dt->addColsFields('prize_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('result', array('templet' => '#userdetail', 'sort' => false, 'width' => 70));
|
|
|
|
|
+ $dt->addColsFields('money_match_time', array('templet' => '#userdetail', 'sort' => false, 'width' => 200));
|
|
|
|
|
+ $dt->addColsFields('order_status', array('sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('account_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 110));
|
|
|
|
|
+ $dt->addColsFields('game_status', array('templet' => '#game_status', 'sort' => false, 'width' => 90));
|
|
|
|
|
+ //$arr[] = 'view';
|
|
|
|
|
+// if (checkRriv('/admin/SoccerNoteList/edit')) {
|
|
|
|
|
+// $arr[] = 'edit';
|
|
|
|
|
+// }
|
|
|
|
|
+// $dt->setToolBar($arr, array('width' => 70));
|
|
|
|
|
+ $dt->enableCheckBox();//var_dump($request['type']);
|
|
|
|
|
+ return view('sports/sports_notelist', $dt->render($request));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function championsetinfo()
|
|
|
|
|
+ {
|
|
|
|
|
+ $page = Request::has('page') ? Request::get('page') : '';
|
|
|
|
|
+ $list = Request::has('limit') ? Request::get('limit') : 10;
|
|
|
|
|
+ $account = Request::get('account') ? Request::get('account') : '';
|
|
|
|
|
+ $star_time = Request::get('star_time') ? Request::get('star_time') . ' 00:00:00' : '';
|
|
|
|
|
+ $end_time = Request::get('end_time') ? Request::get('end_time') . ' 23:59:59' : '';
|
|
|
|
|
+ $order_id = Request::get('order_id') ? Request::get('order_id') : '';
|
|
|
|
|
+ $match_id = Request::get('match_id') ? Request::get('match_id') : '';
|
|
|
|
|
+ $status = Request::has('status') ? Request::get('status') : '-1';
|
|
|
|
|
+ $order_status = Request::has('order_status') ? Request::get('order_status') : '';
|
|
|
|
|
+ $sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
|
|
|
+ $type = Request::has('type') ? Request::get('type') : 'zq';
|
|
|
|
|
+ $where = array();
|
|
|
|
|
+ $where[] = array('money_buy_simplex.is_champion',1);
|
|
|
|
|
+ if (!empty($account)) {
|
|
|
|
|
+ if (empty($sureblur) || $sureblur == 'off') {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.account_name', 'like', '%' . $account . '%');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.account_name', '=', $account);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($star_time)) {
|
|
|
|
|
+ if (!empty($end_time)) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '>', $star_time);
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '<', $end_time);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '>', $star_time);
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (empty($star_time)) {
|
|
|
|
|
+ if (!empty($end_time)) {
|
|
|
|
|
+
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '<', $end_time);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($order_id)) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.order_id', $order_id);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($match_id)) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.match_id', $match_id);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($status != -1) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($order_status != -1) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.status', '=', $order_status);
|
|
|
|
|
+ }
|
|
|
|
|
+ $where[] = array('money_buy_simplex.game_code', $type);
|
|
|
|
|
+ $newapp = new \App\Models\SportsNoteList();
|
|
|
|
|
+ $data = $newapp->info($list, $page, $where, $type);
|
|
|
|
|
+ //$alldata = Models\MoneyBuyMatch::where('bet_type',1)->where('is_rolling',1)->distinct('order_id')->count('order_id');
|
|
|
|
|
+ return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total'], 0, $where);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//修改冠军单订单结果
|
|
//修改冠军单订单结果
|
|
|
function orderupgj(Req $req)
|
|
function orderupgj(Req $req)
|
|
|
{
|
|
{
|
|
@@ -157,6 +249,7 @@ class SoccerNoteListController extends Controller
|
|
|
$sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
$sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
|
$type = Request::has('type') ? Request::get('type') : 'zq';
|
|
$type = Request::has('type') ? Request::get('type') : 'zq';
|
|
|
$where = array();
|
|
$where = array();
|
|
|
|
|
+ $where[] = array('money_buy_simplex.is_champion','<>',1);
|
|
|
if (!empty($account)) {
|
|
if (!empty($account)) {
|
|
|
if (empty($sureblur) || $sureblur == 'off') {
|
|
if (empty($sureblur) || $sureblur == 'off') {
|
|
|
$where[] = array('money_buy_simplex.account_name', 'like', '%' . $account . '%');
|
|
$where[] = array('money_buy_simplex.account_name', 'like', '%' . $account . '%');
|
|
@@ -233,6 +326,98 @@ class SoccerNoteListController extends Controller
|
|
|
return view('sports/sports_search', $dt->render($request));
|
|
return view('sports/sports_search', $dt->render($request));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //冠军注单
|
|
|
|
|
+ public function champion(Req $req)
|
|
|
|
|
+ {
|
|
|
|
|
+ $request['name_chinese'] = isset($req->name_chinese) ? trim($req->name_chinese) : null;
|
|
|
|
|
+ $request['sureblurs'] = isset($req->sureblurs) ? $req->sureblurs : 'on';
|
|
|
|
|
+ $request['account'] = isset($req->account) ? trim($req->account) : null;
|
|
|
|
|
+ $request['star_time'] = isset($req->star_time) ? trim($req->star_time) : null;
|
|
|
|
|
+ $request['end_time'] = isset($req->end_time) ? trim($req->end_time) : null;
|
|
|
|
|
+ $request['order_id'] = isset($req->order_id) ? trim($req->order_id) : null;
|
|
|
|
|
+ $request['match_id'] = isset($req->match_id) ? trim($req->match_id) : null;
|
|
|
|
|
+ $request['status'] = isset($req->status) ? trim($req->status) : '-1';
|
|
|
|
|
+ $request['order_status'] = isset($req->order_status) ? trim($req->order_status) : '-1';
|
|
|
|
|
+ $request['type'] = isset($req->type) ? trim($req->type) : 'zq';
|
|
|
|
|
+ $dt = \App\Lib\DataTable\DataTable::init();
|
|
|
|
|
+ $dt->setDataSource('/admin/SoccerNoteList/championinfo');
|
|
|
|
|
+ $dt->setLang('sportsnotelist');
|
|
|
|
|
+ //$dt->addColsFields('id', array('templet' => '#userdetail', 'sort' => true, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('lg_id_order', array('sort' => true, 'width' => 200));
|
|
|
|
|
+ $dt->addColsFields('league', array('templet' => '#userdetail', 'sort' => false, 'width' => 100));
|
|
|
|
|
+ $dt->addColsFields('home_guest', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('content', array('templet' => '#userdetail', 'sort' => false, 'width' => 250));
|
|
|
|
|
+ $dt->addColsFields('money', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('water_return', array('templet' => '#userdetail', 'sort' => false, 'width' => 70));
|
|
|
|
|
+ $dt->addColsFields('prize_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('result', array('templet' => '#userdetail', 'sort' => false, 'width' => 70));
|
|
|
|
|
+ $dt->addColsFields('money_match_time', array('templet' => '#userdetail', 'sort' => false, 'width' => 200));
|
|
|
|
|
+ $dt->addColsFields('order_status', array('sort' => false, 'width' => 80));
|
|
|
|
|
+ $dt->addColsFields('account_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 110));
|
|
|
|
|
+ $dt->addColsFields('game_status', array('sort' => false, 'width' => 90));
|
|
|
|
|
+ //$arr[] = 'view';
|
|
|
|
|
+// if (checkRriv('/admin/SoccerNoteList/edit')) {
|
|
|
|
|
+// $arr[] = 'edit';
|
|
|
|
|
+// }
|
|
|
|
|
+// $dt->setToolBar($arr, array('width' => 70));
|
|
|
|
|
+ $dt->enableCheckBox();
|
|
|
|
|
+ return view('sports/sports_search', $dt->render($request));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function championinfo()
|
|
|
|
|
+ {
|
|
|
|
|
+ $page = Request::has('page') ? Request::get('page') : '';
|
|
|
|
|
+ $list = Request::has('limit') ? Request::get('limit') : 10;
|
|
|
|
|
+ $account = Request::get('account') ? Request::get('account') : '';
|
|
|
|
|
+ $star_time = Request::get('star_time') ? Request::get('star_time') . ' 00:00:00' : '';
|
|
|
|
|
+ $end_time = Request::get('end_time') ? Request::get('end_time') . ' 23:59:59' : '';
|
|
|
|
|
+ $order_id = Request::get('order_id') ? Request::get('order_id') : '';
|
|
|
|
|
+ $match_id = Request::get('match_id') ? Request::get('match_id') : '';
|
|
|
|
|
+ $status = Request::has('status') ? Request::get('status') : '';
|
|
|
|
|
+ $order_status = Request::has('order_status') ? Request::get('order_status') : '';
|
|
|
|
|
+ $sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
|
|
|
+ $type = Request::has('type') ? Request::get('type') : 'zq';
|
|
|
|
|
+ $where = array();
|
|
|
|
|
+ $where[] = array('money_buy_simplex.is_champion', 1);
|
|
|
|
|
+ if (!empty($account)) {
|
|
|
|
|
+ if (empty($sureblur) || $sureblur == 'off') {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.account_name', 'like', '%' . $account . '%');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.account_name', '=', $account);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($star_time)) {
|
|
|
|
|
+ if (!empty($end_time)) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '>', $star_time);
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '<', $end_time);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '>', $star_time);
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (empty($star_time)) {
|
|
|
|
|
+ if (!empty($end_time)) {
|
|
|
|
|
+
|
|
|
|
|
+ $where[] = array('money_buy_simplex.money_time', '<', $end_time);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($order_id)) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.order_id', $order_id);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($match_id)) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.match_id', $match_id);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($status != -1) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($order_status != -1) {
|
|
|
|
|
+ $where[] = array('money_buy_simplex.status', '=', $order_status);
|
|
|
|
|
+ }
|
|
|
|
|
+ $where[] = array('money_buy_simplex.game_code', $type);
|
|
|
|
|
+ $newapp = new \App\Models\SportsNoteList();
|
|
|
|
|
+ $data = $newapp->getinfo($list, $page, $where, $type);
|
|
|
|
|
+
|
|
|
|
|
+ return \App\Lib\DataTable\DataTable::init()->toJson($data['data'], $data['total'], 0, $where);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//查询赛事结果
|
|
//查询赛事结果
|
|
|
// function Sairesult(Req $req){
|
|
// function Sairesult(Req $req){
|
|
|
// $did = $req->did;
|
|
// $did = $req->did;
|
|
@@ -362,6 +547,7 @@ class SoccerNoteListController extends Controller
|
|
|
$sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
$sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
|
$type = Request::has('type') ? Request::get('type') : 'zq';
|
|
$type = Request::has('type') ? Request::get('type') : 'zq';
|
|
|
$where = array();
|
|
$where = array();
|
|
|
|
|
+ $where[] = array('money_buy_simplex.is_champion','<>',1);
|
|
|
if (!empty($account)) {
|
|
if (!empty($account)) {
|
|
|
if (empty($sureblur) || $sureblur == 'off') {
|
|
if (empty($sureblur) || $sureblur == 'off') {
|
|
|
$where[] = array('money_buy_simplex.account_name', 'like', '%' . $account . '%');
|
|
$where[] = array('money_buy_simplex.account_name', 'like', '%' . $account . '%');
|