/*
* 根据不同的彩种,抓取并返回数据
*/
public List<Match> getgrabClassMatchByLotteryAndissueNo(LotteryType lotteryType,
String issue_no, String grabClass) {
// 以下为抓取代码
MatchGrab matchGrab = this.getGrab(grabClass);
List<Match> macthList = null;
List<Match> rateList = null;
//List<Match> list = null;
// 判断不同的彩种调用不同的抓取
if (LotteryType.JJ_14SFC.equals(lotteryType)) {
macthList = matchGrab.queryMatch149(issue_no);
rateList = matchGrab.get14C_OP(issue_no);
} else if (LotteryType.JJ_6CBQC.equals(lotteryType)) {
macthList = matchGrab.queryMatch6(issue_no);
rateList = matchGrab.get6C_OP(issue_no);
} else {
macthList = matchGrab.queryMatch4(issue_no);
rateList = matchGrab.get4C_OP(issue_no);
}
ArrayList<Match> Match_list = new ArrayList<Match>();
for (int i =0 ; i < macthList.size(); i++) {
Match match = macthList.get(i); //前半部数据
Match rate = rateList.get(i);//后半部数据
match.setLottery_type(lotteryType);
match.setIssue_no(issue_no);
match.setHalf_score(rate.getHalf_score());
match.setFinal_score(rate.getFinal_score());
match.setWin_rate(rate.getWin_rate());
match.setDeuce_rate(rate.getDeuce_rate());
match.setLose_rate(rate.getLose_rate());
match.setMatch_time(match.getMatch_time());
}
return macthList;
}
* 根据不同的彩种,抓取并返回数据
*/
public List<Match> getgrabClassMatchByLotteryAndissueNo(LotteryType lotteryType,
String issue_no, String grabClass) {
// 以下为抓取代码
MatchGrab matchGrab = this.getGrab(grabClass);
List<Match> macthList = null;
List<Match> rateList = null;
//List<Match> list = null;
// 判断不同的彩种调用不同的抓取
if (LotteryType.JJ_14SFC.equals(lotteryType)) {
macthList = matchGrab.queryMatch149(issue_no);
rateList = matchGrab.get14C_OP(issue_no);
} else if (LotteryType.JJ_6CBQC.equals(lotteryType)) {
macthList = matchGrab.queryMatch6(issue_no);
rateList = matchGrab.get6C_OP(issue_no);
} else {
macthList = matchGrab.queryMatch4(issue_no);
rateList = matchGrab.get4C_OP(issue_no);
}
ArrayList<Match> Match_list = new ArrayList<Match>();
for (int i =0 ; i < macthList.size(); i++) {
Match match = macthList.get(i); //前半部数据
Match rate = rateList.get(i);//后半部数据
match.setLottery_type(lotteryType);
match.setIssue_no(issue_no);
match.setHalf_score(rate.getHalf_score());
match.setFinal_score(rate.getFinal_score());
match.setWin_rate(rate.getWin_rate());
match.setDeuce_rate(rate.getDeuce_rate());
match.setLose_rate(rate.getLose_rate());
match.setMatch_time(match.getMatch_time());
}
return macthList;
}