|
|
@@ -26,12 +26,13 @@ class MoneyBuyMatch extends Model
|
|
|
}
|
|
|
|
|
|
//赛事下所有下注单式下单
|
|
|
- function allsimplexorder($ssid){
|
|
|
+ function allsimplexorder($ssid,$code){
|
|
|
//单式下单
|
|
|
$where = array();
|
|
|
$where[] = array('money_buy_match.match_id', '=', $ssid);
|
|
|
$where[] = array('money_buy_match.bet_type', '=', 1);
|
|
|
- $data = $this->join('money_buy_simplex','money_buy_match.batch_id','=','money_buy_simplex.batch_id')->select('money_buy_simplex.order_id','money_buy_simplex.money','money_buy_simplex.account_identity','money_buy_simplex.info_identity','money_buy_simplex.match_id')->where($where)->get()->toArray();
|
|
|
+ $where[] = array('money_buy_match.game_code', '=', $code);
|
|
|
+ $data = $this->join('money_buy_simplex','money_buy_match.match_id','=','money_buy_simplex.match_id')->select('money_buy_simplex.order_id','money_buy_simplex.money','money_buy_simplex.account_identity','money_buy_simplex.info_identity','money_buy_simplex.match_id')->where($where)->get()->toArray();
|
|
|
return $data;
|
|
|
}
|
|
|
|