where('money_buy_detail_id' ,$Detailid)->find(); return $ret; } public function getByTypeMatch($type,$matchId){ $rets = $this->where(['game_code'=>$type,'match_id'=>$matchId])->find(); return $rets; } //查找某个订单下是否还有未处理完的订单情况 public function FindByTypeOrderResult($type,$OrderId,$result=0){ if (is_string($result)){ $ret = $this->where(['game_code'=>$type,'order_id'=>$OrderId,'result'=>$result])->find(); }else{ $ret = $this->where(['game_code'=>$type,'order_id'=>$OrderId])->whereIn('result',$result)->find(); } return $ret; } public function getByBatchId($batch_id){ $ret = $this->where('batch_id',$batch_id)->find(); return $ret; } }