本文解答了关于《一级建造师成绩保留多长时间》相关内容,同时关于1、一级建造师成绩保留多长时间,2、一建改为4年滚动,3、一级建造师成绩保留多长时间有效,4、一级建造师考试成绩保留几年,5、一建成绩保留几年,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
历年一级建造师成绩查询时间段
Element mn = doc.getElementById("ddlMakeDateScope");
List mnlist = mn.children();
//抓取各省考试认定分
Element hs = doc.getElementById("ddlPROV_SCOREVALUE");
List hslist =hs.children();
//抓取各考试认定科目
Element sub = doc.getElementById("ddlSubject");
List sublist = sub.children();
List sublist1 = new ArrayList<>(50);
for (Element e :
sublist) {
sublist1.add(e.attr("value")+" "+e.text());
}
//抓取考试范围
Element range = doc.getElementById("ddlKSFW");
List rangees = range.children();
//抓取各考区
Element zone = doc.getElementById("ddlKSDQ");
List zonelist = zone.children();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
calendar.add(Calendar.YEAR, -1);
Date lastYear = calendar.getTime();
String format = simpleDateFormat.format(lastYear);
System.out.println("开始日期: " + format);
//因为很可能有昨天的数据所以我们使用列表存储昨天及以前的日期
//昨天日期
String format1 = simpleDateFormat.format(new Date());
System.out.println("结束日期: "+ format1);
List datalist = new ArrayList<>(50);
//记录昨天日期
datalist.add(format);
datalist.add(format1);
//记录昨天以往日期
for (int i = 0; i < mnlist.size(); i++) {
Element element = mnlist.get(i);
if (element.text().contains("前")&& !datalist.contains(element.attr("value"))) {
datalist.add(element.attr("value"));
}
}
for (String s :
datalist) {
System.out.println(s);
}
for (int i = 0; i < hslist.size(); i++) {
Element element = hslist.get(i);
String json1 = "{\"name\":\""+element.text().trim()+"\", \"value\":\""+element.attr("value").trim()+"\"}";
System.out.println(json1);
}
for (String s :
sublist1) {
System.out.println(s);
}
System.out.println("%%%%%%%%%%%%%%%");
for (int i = 0; i < rangees.size(); i++) {
Element element = rangees.get(i);
String json1 = "{\"name\":\""+element.text().trim()+"\", \"value\":\""+element.attr("value").trim()+"\"}";
System.out.println(json1);
}
System.out.println("%%%%%%%%%%%%%%%");
for (int i = 0; i < zonelist.size(); i++) {
Element element = zonelist.get(i);
String json1 = "{\"name\":\""+element.text().trim()+"\", \"value\":\""+element.attr("value").trim()+"\"}";
System.out.println(json1);
}
}
/**
* 将历史分数查询解析出来
* @param doc
* @throws Exception
*/
private static void historicalscoreCatch(Document doc) throws Exception {
Element qrslt = doc.getElementById("gv");
List trlist = qrslt.getElementsByTag("tr");
List lddenlist = new ArrayList<>(100);
for (int i = 0; i < trlist.size(); i++) {
Element element = trlist.get(i);
if (!element.hasAttr("align")) {
List tdlistlist = element.getElementsByTag("td");
for (Element element1 :
tdlistlist) {
if (element1.hasClass("bgf5")){
// System.out.println(element1.text());
List spanlist = element1.getElementsByTag("span");
HistoricalData historicalData = new HistoricalData();
historicalData.setName(spanlist.get(0).text());
historicalData.setTrustno(spanlist.get(1).text());
historicalData.setProvince(spanlist.get(2).text());
historicalData.setCategory(spanlist.get(3).text());
historicalData.setSubject(spanlist.get(4).text());
historicalData.setSdate(spanlist.get(5).text());
historicalData.setJzscore(spanlist.get(6).text());
historicalData.setProscore(spanlist.get(7).text());
lddenlist.add(historicalData);
}
}
}
}
System.out.println(lddenlist.size());
for (HistoricalData historicalData :
lddenlist) {
System.out.println(historicalData);
}
}
}
总结:以上是编辑:【蓝色飞扬】整理及AI智能原创关于《一级建造师成绩保留多长时间
》优质内容解答希望能帮助到您。