|
@@ -2,17 +2,12 @@ package com.welampiot.controller;
|
|
|
|
|
|
import com.welampiot.common.BaseResult;
|
|
|
import com.welampiot.common.InterfaceResultEnum;
|
|
|
-import com.welampiot.dto.GlobalLocationDTO;
|
|
|
-import com.welampiot.dto.LampInfoDTO;
|
|
|
-import com.welampiot.dto.LoopDTO;
|
|
|
-import com.welampiot.dto.SectionDTO;
|
|
|
-import com.welampiot.service.GlobalLocationService;
|
|
|
-import com.welampiot.service.LampService;
|
|
|
-import com.welampiot.service.LoopService;
|
|
|
-import com.welampiot.service.SectionService;
|
|
|
+import com.welampiot.dto.*;
|
|
|
+import com.welampiot.service.*;
|
|
|
import com.welampiot.utils.ExcelUtil;
|
|
|
import com.welampiot.utils.ToolUtils;
|
|
|
import com.welampiot.vo.LampVO;
|
|
|
+import com.welampiot.vo.LoopDataLogVO;
|
|
|
import com.welampiot.vo.LoopVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -51,6 +46,9 @@ public class LoopController {
|
|
|
@Autowired
|
|
|
private GlobalLocationService globalLocationService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private LoopDataLogService loopDataLogService;
|
|
|
+
|
|
|
/**
|
|
|
* 获取回路列表
|
|
|
* @param request 路段筛选,分页
|
|
@@ -491,4 +489,19 @@ public class LoopController {
|
|
|
|
|
|
return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取回路历史数据
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getLogList", method = RequestMethod.POST)
|
|
|
+ public BaseResult<?> getLogList(LoopDataLogVO loopDataLogVO) {
|
|
|
+ Integer version = loopDataLogVO.getVersion();
|
|
|
+ Integer id = loopDataLogVO.getId();
|
|
|
+ if (id == null || id == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
|
|
|
+ loopDataLogVO.setPageAndCount(loopDataLogVO.getPage(), loopDataLogVO.getCount());
|
|
|
+ List<LoopDataLogDTO> loopDatalogList = loopDataLogService.getLoopDataLogListByLoopDataLogVO(loopDataLogVO);
|
|
|
+ LoopDataLogVO loopDataLogVO1 = new LoopDataLogVO();
|
|
|
+ loopDataLogVO1.setList(loopDatalogList);
|
|
|
+ return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,loopDataLogVO1);
|
|
|
+ }
|
|
|
}
|