|  |  | 
 |  |  | 
 | 
 |  |  | import static com.moral.common.util.ResourceUtil.getValue;
 | 
 |  |  | import static com.moral.common.util.WebUtils.getParametersStartingWith;
 | 
 |  |  | import static org.assertj.core.api.Assertions.in;
 | 
 |  |  | 
 | 
 |  |  | /**
 | 
 |  |  |  * The Class ScreenController.大屏接口
 | 
 |  |  | 
 |  |  |     })
 | 
 |  |  |     public ResultBean<List<Map<String, Object>>> AIForecast (HttpServletRequest request) throws Exception {
 | 
 |  |  |         Map<String, Object> parameters = getParametersStartingWith(request, null);
 | 
 |  |  |         //System.out.println(parameters);
 | 
 |  |  |         String intoTime = parameters.get("time").toString();
 | 
 |  |  |         String[] timeArray = intoTime.split("-");
 | 
 |  |  |         //System.out.println(timeArray);
 | 
 |  |  |         Integer year = Integer.parseInt(timeArray[0]);
 | 
 |  |  |         Integer mon = Integer.parseInt(timeArray[1]);
 | 
 |  |  |         if(mon>1) {
 | 
 |  |  |             mon = mon-1;
 | 
 |  |  |         }else {
 | 
 |  |  |             mon = 12;
 | 
 |  |  |             year = year-1;
 | 
 |  |  |         }
 | 
 |  |  |         String alterTime = year.toString()+"-"+mon.toString()+"-"+timeArray[2];
 | 
 |  |  |         //System.out.println(alterTime);
 | 
 |  |  |         parameters.put("time", alterTime);
 | 
 |  |  |         ParameterUtils.getTimeType4Time(parameters);
 | 
 |  |  |         String monitor_point_id = (String) parameters.get("monitorPoint");
 | 
 |  |  |         parameters.put("monitorPointId", parameters.remove("monitorPoint"));
 |