1.大屏重要测点暂降发生次数接口
This commit is contained in:
@@ -545,4 +545,14 @@ public class LineController extends BaseController {
|
||||
List<DevAndLine> list = lineService.getByDeptDevLine(id);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@ApiOperation("根据部门获取所有指定等级的监测点id")
|
||||
@GetMapping("/getLevelMonitorIdByDept")
|
||||
HttpResult<List<String>> getLevelMonitorIdByDept(@RequestParam("level") String level,@RequestParam("deptId")String deptId){
|
||||
String methodDescribe = getMethodDescribe("getLevelMonitorIdByDept");
|
||||
List<String> list = lineService.getLevelMonitorByDept(level,deptId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.njcn.device.biz.pojo.po.Overlimit;
|
||||
import com.njcn.device.pq.pojo.po.LineDetail;
|
||||
import com.njcn.device.pq.pojo.po.TopMsgPO;
|
||||
import com.njcn.device.pq.pojo.vo.*;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -137,19 +138,19 @@ public interface LineService extends IService<Line> {
|
||||
/**
|
||||
* @Description: 通过部门索引查询其下监测点数
|
||||
* @Param: [deviceInfoParam] 监测点查询条件
|
||||
* @return: java.util.List<com.njcn.device.pq.pojo.vo.DeptLineCountVO>
|
||||
* @Author: clam
|
||||
* @Date: 2022/10/10
|
||||
*/
|
||||
* @return: java.util.List<com.njcn.device.pq.pojo.vo.DeptLineCountVO>
|
||||
* @Author: clam
|
||||
* @Date: 2022/10/10
|
||||
*/
|
||||
List<DeptLineCountVO> getDeptLineCount(DeviceInfoParam deviceInfoParam);
|
||||
|
||||
/**
|
||||
* @Description: 获取变电站和监测点的关系(分稳态暂态)
|
||||
* @Param: [devDataType]
|
||||
* @return: java.util.Map<java.lang.String,java.util.List<java.lang.String>>
|
||||
* @Author: clam
|
||||
* @Date: 2022/10/20
|
||||
*/
|
||||
* @Description: 获取变电站和监测点的关系(分稳态暂态)
|
||||
* @Param: [devDataType]
|
||||
* @return: java.util.Map<java.lang.String,java.util.List<java.lang.String>>
|
||||
* @Author: clam
|
||||
* @Date: 2022/10/20
|
||||
*/
|
||||
Map<String, List<String>> getLineBySubstationRelation(Integer devDataType);
|
||||
|
||||
/**
|
||||
@@ -161,20 +162,20 @@ public interface LineService extends IService<Line> {
|
||||
*/
|
||||
List<LineDetailDataVO> getLineDetailList(List<String> lineIds);
|
||||
/**
|
||||
* @Description: 获取变电站下终端数
|
||||
* @Param: [subIndex]
|
||||
* @return: java.lang.Integer
|
||||
* @Author: clam
|
||||
* @Date: 2022/11/9
|
||||
*/
|
||||
* @Description: 获取变电站下终端数
|
||||
* @Param: [subIndex]
|
||||
* @return: java.lang.Integer
|
||||
* @Author: clam
|
||||
* @Date: 2022/11/9
|
||||
*/
|
||||
Integer getDeviceCountBySubstation(String subIndex);
|
||||
/**
|
||||
* @Description: 获取变电站下监测点数
|
||||
* @Description: 获取变电站下监测点数
|
||||
* @Param: [subIndex]
|
||||
* @return: java.lang.Integer
|
||||
* @Author: clam
|
||||
* @Date: 2022/11/9
|
||||
*/
|
||||
* @return: java.lang.Integer
|
||||
* @Author: clam
|
||||
* @Date: 2022/11/9
|
||||
*/
|
||||
Integer getLineCountBySubstation(String subIndex);
|
||||
|
||||
Page<LineFlowMealDetailVO>getNewDeviceRunStatistics(PqsParam deviceInfoParam);
|
||||
@@ -187,7 +188,7 @@ public interface LineService extends IService<Line> {
|
||||
|
||||
/**
|
||||
* @Description: 根据监测点获取监测点信息
|
||||
* @param id
|
||||
* @param id
|
||||
* @return: com.njcn.device.biz.pojo.dto.LineDTO
|
||||
* @Author: wr
|
||||
* @Date: 2023/9/22 10:46
|
||||
@@ -230,4 +231,7 @@ public interface LineService extends IService<Line> {
|
||||
* @return
|
||||
*/
|
||||
List<DevAndLine> getByDeptDevLine(String id);
|
||||
|
||||
List<String> getLevelMonitorByDept(@RequestParam("level") String level, @RequestParam("deptId")String deptId);
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ import com.njcn.influx.pojo.po.PqsCommunicate;
|
||||
import com.njcn.influx.query.InfluxQueryWrapper;
|
||||
import com.njcn.system.api.AreaFeignClient;
|
||||
import com.njcn.system.api.DicDataFeignClient;
|
||||
import com.njcn.system.enums.DicDataEnum;
|
||||
import com.njcn.system.enums.DicDataTypeEnum;
|
||||
import com.njcn.system.pojo.po.Area;
|
||||
import com.njcn.system.pojo.po.DictData;
|
||||
@@ -92,7 +93,7 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
||||
|
||||
private final TopMsgMapper topMsgMapper;
|
||||
|
||||
private final PqsCommunicateMapper pqsCommunicateMapper;
|
||||
private final PqsCommunicateMapper pqsCommunicateMapper;
|
||||
|
||||
private final TerminalMaintainMapper terminalMaintainMapper;
|
||||
private final DeptFeignClient deptFeignClient;
|
||||
@@ -398,7 +399,7 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
||||
|
||||
LineStateVO lineStateVO;
|
||||
//获取状态
|
||||
// lineStateVO = lineMapper.getLineStatisticsDetail(generalDeviceDTO.getLineIndexes());
|
||||
// lineStateVO = lineMapper.getLineStatisticsDetail(generalDeviceDTO.getLineIndexes());
|
||||
lineStateVO = lineMapper.getDeviceStatus(generalDeviceDTO.getDeviceIndexes());
|
||||
BeanUtil.copyProperties(lineStateVO, lineStatisticsDetail);
|
||||
normalStateTail += lineStateVO.getNormalStateNum();
|
||||
@@ -587,7 +588,7 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
||||
LineDetailDataVO lineDetailDataVO = new LineDetailDataVO();
|
||||
|
||||
String areaId = "",gdId="",subStationId = "", devId = "", voId = "",lineId="",
|
||||
areaName = "",gdName="",subStationName = "", devName = "", voName = "",lineName="";
|
||||
areaName = "",gdName="",subStationName = "", devName = "", voName = "",lineName="";
|
||||
for (LineDataVO lineDataVO : lineDataVOList) {
|
||||
switch (lineDataVO.getLevel()) {
|
||||
case 1:
|
||||
@@ -647,7 +648,7 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
||||
LineALLInfoDTO.LineSubStationDTO lineSubStationDTO = new LineALLInfoDTO.LineSubStationDTO();
|
||||
lineSubStationDTO.setSubStationId(subStationId);
|
||||
lineSubStationDTO.setSubStationName(subStationName);
|
||||
|
||||
|
||||
lineALLInfoDTO.setLineSubStationDTO(lineSubStationDTO);
|
||||
//todo 处理部门信息后续需要部门信息在添加
|
||||
|
||||
@@ -729,6 +730,14 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
||||
return info;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getLevelMonitorByDept(String level, String deptId) {
|
||||
List<String> deptIds = deptFeignClient.getDepSonIdtByDeptId(deptId).getData();
|
||||
List<String> lineIds = deptLineService.list(new LambdaQueryWrapper<DeptLine>().in(DeptLine::getId,deptIds)).stream().map(DeptLine::getLineId).distinct().collect(Collectors.toList());
|
||||
List<String> result = lineDetailMapper.selectList(new LambdaQueryWrapper<LineDetail>().select(LineDetail::getId).in(LineDetail::getId,lineIds).eq(LineDetail::getLineGrade,level)).stream().map(LineDetail::getId).distinct().collect(Collectors.toList());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Overlimit> getOverLimitByList(PollutionParamDTO pollutionParamDTO) {
|
||||
return overlimitMapper.selectBatchIds(pollutionParamDTO.getLineList());
|
||||
@@ -799,10 +808,10 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
||||
/**
|
||||
* @Description: 通过部门索引查询其下监测点数
|
||||
* @Param: [deviceInfoParam] 监测点查询条件
|
||||
* @return: java.util.List<com.njcn.device.pq.pojo.vo.DeptLineCountVO>
|
||||
* @Author: clam
|
||||
* @Date: 2022/10/10
|
||||
*/
|
||||
* @return: java.util.List<com.njcn.device.pq.pojo.vo.DeptLineCountVO>
|
||||
* @Author: clam
|
||||
* @Date: 2022/10/10
|
||||
*/
|
||||
@Override
|
||||
public List<DeptLineCountVO> getDeptLineCount(DeviceInfoParam deviceInfoParam) {
|
||||
List<DeptLineCountVO> deptLineCountVOList = new ArrayList<> ();
|
||||
|
||||
Reference in New Issue
Block a user