|
@@ -193,7 +193,7 @@ public class CollegeData {
|
|
|
for (int i = 0; i < tdDatas.size(); i++) {
|
|
|
//sy_colledge_enroll_data
|
|
|
JSONObject row = tdDatas.getJSONObject(i);
|
|
|
- row.put("provinceId",ProvinceId);
|
|
|
+// row.put("provinceId",ProvinceId);
|
|
|
row.put("Location",Location);
|
|
|
row.put("type",type);
|
|
|
row.put("font_id",fontId);
|
|
@@ -258,7 +258,7 @@ public class CollegeData {
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
private void byCollege(Integer collegeId,Integer liberalScience,Integer queryType,String Location,Integer ProvinceId) throws IOException {
|
|
|
-// ThreadUtil.safeSleep(2 * 1000);
|
|
|
+ ThreadUtil.safeSleep(2 * 1000);
|
|
|
|
|
|
StringBuilder sb = new StringBuilder(host);
|
|
|
// sb.append("/years");
|
|
@@ -275,11 +275,13 @@ public class CollegeData {
|
|
|
// dataJSONObject.put("id",yearLast);
|
|
|
// dataJSONObject.put("year",yearLast);
|
|
|
// Integer year = dataJSONObject.getInteger("year");
|
|
|
- Integer year = 2021;
|
|
|
-
|
|
|
+ List<Integer> yearList = Arrays.asList(2021,2020,2019);
|
|
|
+ for(int year:yearList){
|
|
|
sb = new StringBuilder(host);
|
|
|
if(queryType==2){
|
|
|
sb.append("/query/majorScore/byCollege");
|
|
|
+ //没有2021
|
|
|
+ if(year==2021) continue;
|
|
|
}else if(queryType==3){
|
|
|
sb.append("/query/majorPlan/byCollege");
|
|
|
|
|
@@ -368,7 +370,7 @@ public class CollegeData {
|
|
|
// }else {
|
|
|
// log.error("byCollege res is {}, request is {} ",res,sb.toString());
|
|
|
// }
|
|
|
-// }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|