|
|
@@ -49,6 +49,7 @@ class MoneyBuyMatch extends Model
|
|
|
];
|
|
|
$data = $this->join('money_buy_simplex', 'money_buy_match.batch_id', '=', 'money_buy_simplex.batch_id')->select($select)->whereIn('money_buy_match.match_id',$match_ids)->where($typeWhere)->get();
|
|
|
}else{
|
|
|
+ $where[] = array('money_buy_simplex.status', '=', 1);
|
|
|
$data = $this->join('money_buy_simplex', 'money_buy_match.batch_id', '=', 'money_buy_simplex.batch_id')->join('st_odds_code', 'money_buy_match.odds_code', '=', 'st_odds_code.odds_code')->select($select)->where($where)->get();
|
|
|
}
|
|
|
return $data;
|
|
|
@@ -63,6 +64,7 @@ class MoneyBuyMatch extends Model
|
|
|
$where[] = array('money_buy_match.bet_type', '=', 2);
|
|
|
if(!empty($game_code)){
|
|
|
$where[] = array('money_buy_match.game_code', '=', $game_code);
|
|
|
+ $where[] = array('money_buy_str.status', '=', 1);
|
|
|
}
|
|
|
if(empty($select)){
|
|
|
$select = ['money_buy_str.order_id'];
|