| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import org.xml.sax.InputSource; |
| | | |
| | | import static com.moral.common.util.ResourceUtil.getValue; |
| | | import static com.moral.common.util.WebUtils.getParametersStartingWith; |
| | | import static java.util.Calendar.*; |
| | |
| | | |
| | | @Resource |
| | | private QualityDailyService qualityDailyService; |
| | | |
| | | |
| | | /** |
| | | * Screen login. 大屏登录 |
| | |
| | | List list=deviceService.byMonitorIdGetDeviceAndWind(monitorPointId,time,table); |
| | | return list; |
| | | } |
| | | |
| | | //局部风场 |
| | | @GetMapping("/windAndDeviceDataByArea") |
| | | @ResponseBody |
| | | public List windAndDeviceDataByArea(String monitorPointId) { |
| | |
| | | mon=""+month; |
| | | } |
| | | String table="history_minutely_"+year+mon; |
| | | log.info(table); |
| | | log.info(time); |
| | | List list=deviceService.byMonitorIdGetDeviceAndWindSpecial(monitorPointId,time,table); |
| | | return list; |
| | | } |
| | |
| | | return new ResultBean<List<Map<String, Object>>>(list); |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("/contrastFactor") |
| | | @ApiOperation(value = "因子对比", notes = "因子对比") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "mac", value = "设备mac", required = true, paramType = "query", dataType = "String"), |
| | | @ApiImplicitParam(name = "sensor", value = "因子", required = true, paramType = "query", dataType = "String"), |
| | | @ApiImplicitParam(name = "time", value = "时间(格式:2020-03-19、20、21)", required = true, paramType = "query", dataType = "String")}) |
| | | public ResultBean<List<Map<String, Object>>> contrastFactor(HttpServletRequest request) throws Exception { |
| | | Map<String, Object> parameters = getParametersStartingWith(request, null); |
| | | List list=historyHourlyService.getDataByMacAndTime(parameters); |
| | | //System.out.println(list); |
| | | return new ResultBean<List<Map<String, Object>>>(list); |
| | | } |
| | | } |