|
@@ -26,7 +26,7 @@ import java.util.*;
|
|
@RestController
|
|
@RestController
|
|
@CrossOrigin
|
|
@CrossOrigin
|
|
@RequestMapping("/data")
|
|
@RequestMapping("/data")
|
|
-public class DataController {
|
|
|
|
|
|
+public class DataController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private LampService lampService;
|
|
private LampService lampService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -699,4 +699,19 @@ public class DataController {
|
|
WeatherDTO weatherInfo = WeatherUtil.getTodayWeatherInfo(String.valueOf(longitude), String.valueOf(latitude));
|
|
WeatherDTO weatherInfo = WeatherUtil.getTodayWeatherInfo(String.valueOf(longitude), String.valueOf(latitude));
|
|
return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS, version, weatherInfo);
|
|
return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS, version, weatherInfo);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 路段统计信息
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "/sectionStatisticsInfo", method = RequestMethod.POST)
|
|
|
|
+ public BaseResult<?> sectionStatisticsInfo(BaseVO baseVO) {
|
|
|
|
+ Integer version = baseVO.getVersion();
|
|
|
|
+ List<Integer> sectionList = getSectionList(baseVO.getUsername());
|
|
|
|
+ baseVO.setSectionList(sectionList);
|
|
|
|
+ baseVO.setPageAndCount(baseVO.getPage(), baseVO.getCount());
|
|
|
|
+ List<SectionDTO> sectionLampCountsList = sectionService.getSectionLampCountsListByBaseVO(baseVO);
|
|
|
|
+ SectionVO sectionVO = new SectionVO();
|
|
|
|
+ sectionVO.setList(sectionLampCountsList);
|
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS, version, sectionVO);
|
|
|
|
+ }
|
|
}
|
|
}
|