|
|
@@ -17,7 +17,7 @@ use App\Models;
|
|
|
use Request;
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ *1
|
|
|
*/
|
|
|
class SoccerNoteListController extends Controller
|
|
|
{
|
|
|
@@ -244,7 +244,7 @@ class SoccerNoteListController extends Controller
|
|
|
$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') : '';
|
|
|
+ // $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';
|
|
|
@@ -276,16 +276,33 @@ class SoccerNoteListController extends Controller
|
|
|
if (!empty($match_id)) {
|
|
|
$where[] = array('money_buy_simplex.match_id', $match_id);
|
|
|
}
|
|
|
+
|
|
|
+ //调整状态查询 1,2,3为订单状态 1投注 2作废 3撤单
|
|
|
+ if($order_status == 1 || $order_status == 2 || $order_status == 3){
|
|
|
+ $where[] = array('money_buy_simplex.status', '=', $order_status);
|
|
|
+ }
|
|
|
+ //4 5为结算状态 4未结算 5已结算
|
|
|
+ if($order_status == 4){
|
|
|
+ $status = 1;
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
+ }
|
|
|
+ if($order_status == 5){
|
|
|
+ $status = 2;
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
+ }
|
|
|
+ /*
|
|
|
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);
|
|
|
}
|
|
|
|
|
|
@@ -405,12 +422,29 @@ class SoccerNoteListController extends Controller
|
|
|
if (!empty($match_id)) {
|
|
|
$where[] = array('money_buy_simplex.match_id', $match_id);
|
|
|
}
|
|
|
+
|
|
|
+ //调整状态查询 1,2,3为订单状态 1投注 2作废 3撤单
|
|
|
+ if($order_status == 1 || $order_status == 2 || $order_status == 3){
|
|
|
+ $where[] = array('money_buy_simplex.status', '=', $order_status);
|
|
|
+ }
|
|
|
+ //4 5为结算状态 4未结算 5已结算
|
|
|
+ if($order_status == 4){
|
|
|
+ $status = 1;
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
+ }
|
|
|
+ if($order_status == 5){
|
|
|
+ $status = 2;
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
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);
|
|
|
@@ -574,12 +608,30 @@ class SoccerNoteListController extends Controller
|
|
|
if (!empty($match_id)) {
|
|
|
$where[] = array('money_buy_simplex.match_id', $match_id);
|
|
|
}
|
|
|
+
|
|
|
+ //调整状态查询 1,2,3为订单状态 1投注 2作废 3撤单
|
|
|
+ if($order_status == 1 || $order_status == 2 || $order_status == 3){
|
|
|
+ $where[] = array('money_buy_simplex.status', '=', $order_status);
|
|
|
+ }
|
|
|
+ //4 5为结算状态 4未结算 5已结算
|
|
|
+ if($order_status == 4){
|
|
|
+ $status = 1;
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
+ }
|
|
|
+ if($order_status == 5){
|
|
|
+ $status = 2;
|
|
|
+ $where[] = array('money_buy_simplex.settle_status', '=', $status);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /*
|
|
|
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);
|