|
@@ -67,6 +67,8 @@ public class BigScreenController {
|
|
|
private BroadcastService broadcastService;
|
|
|
@Autowired
|
|
|
private AllAlarmInfoLogService allAlarmInfoLogService;
|
|
|
+ @Autowired
|
|
|
+ private LoopService loopService;
|
|
|
|
|
|
/**
|
|
|
* 用电量统计
|
|
@@ -645,4 +647,20 @@ public class BigScreenController {
|
|
|
lampPoleInfoVO.setAlarmList(alarmList);
|
|
|
return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,lampPoleInfoVO);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 灯杆大屏回路列表
|
|
|
+ * @param request 灯杆id
|
|
|
+ * @return 回路列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/loopList", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> loopList(HttpServletRequest request) {
|
|
|
+ Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
|
|
|
+ Integer lampPoleId = (Integer) toolUtils.getRequestContent(request,"lampPoleId",1);
|
|
|
+ if (lampPoleId == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ List<LoopDTO> loopList = loopService.getLoopListByLampPoleId(lampPoleId);
|
|
|
+ LoopVO loopVO = new LoopVO();
|
|
|
+ loopVO.setList(loopList);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,loopVO);
|
|
|
+ }
|
|
|
}
|