bug调整
This commit is contained in:
@@ -21,4 +21,8 @@ public interface GeneralConstant {
|
|||||||
String DAT =".DAT";
|
String DAT =".DAT";
|
||||||
String HDR =".HDR";
|
String HDR =".HDR";
|
||||||
|
|
||||||
|
String CFG_LOWER =".cfg";
|
||||||
|
String DAT_LOWER =".dat";
|
||||||
|
String HDR_LOWER =".hdr";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class PollutionLineDTO {
|
|||||||
@ApiModelProperty("变电站id")
|
@ApiModelProperty("变电站id")
|
||||||
private String substationId;
|
private String substationId;
|
||||||
|
|
||||||
|
@ApiModelProperty("变电站排序")
|
||||||
|
private Integer substationSort;
|
||||||
|
|
||||||
@ApiModelProperty("母线")
|
@ApiModelProperty("母线")
|
||||||
private String busBar;
|
private String busBar;
|
||||||
|
|
||||||
|
|||||||
@@ -676,6 +676,7 @@
|
|||||||
A1.Name busBar,
|
A1.Name busBar,
|
||||||
A3.Name substation,
|
A3.Name substation,
|
||||||
A3.Id substationId,
|
A3.Id substationId,
|
||||||
|
A3.sort substationSort,
|
||||||
A4.Name powerCompany
|
A4.Name powerCompany
|
||||||
FROM
|
FROM
|
||||||
pq_line A,
|
pq_line A,
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
<foreach collection="subIndex" item="item" open="(" close=")" separator=",">
|
<foreach collection="subIndex" item="item" open="(" close=")" separator=",">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
order by sub.Sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--根据监测点索引集合获取监测点详细参数-->
|
<!--根据监测点索引集合获取监测点详细参数-->
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import cn.hutool.core.collection.CollUtil;
|
|||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.njcn.common.pojo.enums.common.ServerEnum;
|
import com.njcn.common.pojo.enums.common.ServerEnum;
|
||||||
import com.njcn.common.pojo.exception.BusinessException;
|
import com.njcn.common.pojo.exception.BusinessException;
|
||||||
@@ -15,7 +14,6 @@ import com.njcn.device.pq.api.LineFeignClient;
|
|||||||
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
||||||
import com.njcn.device.pq.pojo.param.DeviceInfoParam;
|
import com.njcn.device.pq.pojo.param.DeviceInfoParam;
|
||||||
import com.njcn.device.pq.pojo.vo.AreaLineInfoVO;
|
import com.njcn.device.pq.pojo.vo.AreaLineInfoVO;
|
||||||
import com.njcn.device.pq.pojo.vo.LineDeviceStateVO;
|
|
||||||
import com.njcn.device.pq.pojo.vo.SubstationDetailVO;
|
import com.njcn.device.pq.pojo.vo.SubstationDetailVO;
|
||||||
import com.njcn.event.mapper.majornetwork.PqDeviceMapper;
|
import com.njcn.event.mapper.majornetwork.PqDeviceMapper;
|
||||||
import com.njcn.event.mapper.majornetwork.RStatOnlinerateDMapper;
|
import com.njcn.event.mapper.majornetwork.RStatOnlinerateDMapper;
|
||||||
@@ -50,7 +48,8 @@ import java.util.function.BiFunction;
|
|||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.njcn.event.influxdb.QueryBuilder.*;
|
import static com.njcn.event.influxdb.QueryBuilder.beginOfDay;
|
||||||
|
import static com.njcn.event.influxdb.QueryBuilder.endOfDay;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author denghuajun
|
* @author denghuajun
|
||||||
@@ -141,8 +140,8 @@ public class AreaLineServiceImpl implements AreaLineService {
|
|||||||
GeneralDeviceDTO generalDeviceDTO = generalDeviceDTOList.get(i);
|
GeneralDeviceDTO generalDeviceDTO = generalDeviceDTOList.get(i);
|
||||||
lineIndexs = generalDeviceDTO.getLineIndexes();
|
lineIndexs = generalDeviceDTO.getLineIndexes();
|
||||||
// 获取暂降数据
|
// 获取暂降数据
|
||||||
if (lineIndexs.size() > 0) {
|
if (!lineIndexs.isEmpty()) {
|
||||||
Integer tail = 0;
|
int tail = 0;
|
||||||
//数据暂降查询
|
//数据暂降查询
|
||||||
List<RmpEventDetailPO> info = eventDetailService.list(new QueryWrapper<RmpEventDetailPO>()
|
List<RmpEventDetailPO> info = eventDetailService.list(new QueryWrapper<RmpEventDetailPO>()
|
||||||
.select("measurement_point_id as measurementPointId,count(file_flag) as fileFlag")
|
.select("measurement_point_id as measurementPointId,count(file_flag) as fileFlag")
|
||||||
@@ -153,17 +152,18 @@ public class AreaLineServiceImpl implements AreaLineService {
|
|||||||
.groupBy("measurement_point_id")
|
.groupBy("measurement_point_id")
|
||||||
);
|
);
|
||||||
|
|
||||||
if (info.size() > 0) {
|
if (!info.isEmpty()) {
|
||||||
|
Map<String, RmpEventDetailPO> map = info.stream().collect(Collectors.toMap(RmpEventDetailPO::getMeasurementPointId, Function.identity()));
|
||||||
List<String> lineIds = info.stream().map(RmpEventDetailPO::getMeasurementPointId).distinct().collect(Collectors.toList());
|
List<String> lineIds = info.stream().map(RmpEventDetailPO::getMeasurementPointId).distinct().collect(Collectors.toList());
|
||||||
List<AreaLineInfoVO> areaAnalysisVOList = lineFeignClient.getBaseLineAreaInfo(lineIds).getData();
|
List<AreaLineInfoVO> areaAnalysisVOList = lineFeignClient.getBaseLineAreaInfo(lineIds).getData();
|
||||||
|
|
||||||
for (AreaLineInfoVO areaLineInfoVO : areaAnalysisVOList) {
|
for (AreaLineInfoVO areaLineInfoVO : areaAnalysisVOList) {
|
||||||
List<AreaLineInfoVO> ev = new ArrayList<>();
|
List<AreaLineInfoVO> ev = new ArrayList<>();
|
||||||
Integer count = info.stream()
|
RmpEventDetailPO po = map.get(areaLineInfoVO.getLineId());
|
||||||
.filter(obj -> obj.getMeasurementPointId().equals( areaLineInfoVO.getLineId()))
|
if (po != null) {
|
||||||
.collect(Collectors.toList()).size();
|
tail = tail + po.getFileFlag();
|
||||||
tail+=count;
|
areaLineInfoVO.setTail(po.getFileFlag());
|
||||||
areaLineInfoVO.setTail(count);
|
}
|
||||||
ev.add(areaLineInfoVO);
|
ev.add(areaLineInfoVO);
|
||||||
eventHeatMapDetailList.add(ev);
|
eventHeatMapDetailList.add(ev);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import com.njcn.influx.utils.InfluxDbUtils;
|
|||||||
import com.njcn.system.api.DicDataFeignClient;
|
import com.njcn.system.api.DicDataFeignClient;
|
||||||
import com.njcn.system.enums.DicDataEnum;
|
import com.njcn.system.enums.DicDataEnum;
|
||||||
import com.njcn.system.pojo.po.DictData;
|
import com.njcn.system.pojo.po.DictData;
|
||||||
|
import com.njcn.user.api.DeptFeignClient;
|
||||||
|
import com.njcn.user.pojo.po.Dept;
|
||||||
import com.njcn.web.utils.RequestUtil;
|
import com.njcn.web.utils.RequestUtil;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -61,6 +63,7 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
|||||||
private final CommTerminalGeneralClient commTerminalGeneralClient;
|
private final CommTerminalGeneralClient commTerminalGeneralClient;
|
||||||
private final LineFeignClient lineFeignClient;
|
private final LineFeignClient lineFeignClient;
|
||||||
private final DeptLineFeignClient deptLineFeignClient;
|
private final DeptLineFeignClient deptLineFeignClient;
|
||||||
|
private final DeptFeignClient deptFeignClient;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -195,14 +198,10 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
|||||||
deptLineList.forEach(item->{
|
deptLineList.forEach(item->{
|
||||||
String deptLineId = item.getId();
|
String deptLineId = item.getId();
|
||||||
dept.add(deptLineId);
|
dept.add(deptLineId);
|
||||||
DeptGetLineParam deptGetLineParam = new DeptGetLineParam();
|
//获取上级部门
|
||||||
deptGetLineParam.setDeptId(deptLineId);
|
Dept deptInfo = deptFeignClient.getDeptById(deptLineId).getData();
|
||||||
List<DeptGetBase> deptList = commTerminalGeneralClient.getDeptChildrenByParent(deptGetLineParam).getData();
|
String[] idsArray = deptInfo.getPids().split(",");
|
||||||
if (CollectionUtil.isNotEmpty(deptList)) {
|
dept.addAll(Arrays.asList(idsArray));
|
||||||
deptList.forEach(item2->{
|
|
||||||
dept.addAll(item2.getUnitChildrenList());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
SendEventVO vo = new SendEventVO();
|
SendEventVO vo = new SendEventVO();
|
||||||
vo.setDeptList(dept);
|
vo.setDeptList(dept);
|
||||||
|
|||||||
@@ -14,30 +14,31 @@ import com.njcn.device.pms.api.MonitorClient;
|
|||||||
import com.njcn.device.pms.pojo.param.MonitorTerminalParam;
|
import com.njcn.device.pms.pojo.param.MonitorTerminalParam;
|
||||||
import com.njcn.device.pms.pojo.vo.MonitorVO;
|
import com.njcn.device.pms.pojo.vo.MonitorVO;
|
||||||
import com.njcn.device.pq.api.DeviceTreeClient;
|
import com.njcn.device.pq.api.DeviceTreeClient;
|
||||||
import com.njcn.device.pq.pojo.vo.TerminalTree;
|
|
||||||
import com.njcn.event.file.pojo.dto.WaveDataDTO;
|
|
||||||
import com.njcn.event.file.component.WaveFileComponent;
|
|
||||||
import com.njcn.event.file.pojo.enums.WaveFileResponseEnum;
|
|
||||||
import com.njcn.event.mapper.distribution.PwRmpEventDetailMapper;
|
|
||||||
import com.njcn.event.mapper.majornetwork.RmpEventDetailMapper;
|
|
||||||
import com.njcn.event.pojo.param.EventVerifyReasonParam;
|
|
||||||
import com.njcn.event.pojo.po.RmpEventDetailPO;
|
|
||||||
import com.njcn.oss.constant.GeneralConstant;
|
|
||||||
import com.njcn.oss.constant.OssPath;
|
|
||||||
import com.njcn.device.pq.api.GeneralDeviceInfoClient;
|
import com.njcn.device.pq.api.GeneralDeviceInfoClient;
|
||||||
import com.njcn.device.pq.api.LineFeignClient;
|
import com.njcn.device.pq.api.LineFeignClient;
|
||||||
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
import com.njcn.device.pq.pojo.dto.GeneralDeviceDTO;
|
||||||
import com.njcn.device.pq.pojo.vo.AreaLineInfoVO;
|
import com.njcn.device.pq.pojo.vo.AreaLineInfoVO;
|
||||||
import com.njcn.device.pq.pojo.vo.LineDetailDataVO;
|
import com.njcn.device.pq.pojo.vo.LineDetailDataVO;
|
||||||
|
import com.njcn.device.pq.pojo.vo.TerminalTree;
|
||||||
import com.njcn.event.enums.EventResponseEnum;
|
import com.njcn.event.enums.EventResponseEnum;
|
||||||
|
import com.njcn.event.file.component.WaveFileComponent;
|
||||||
|
import com.njcn.event.file.pojo.dto.WaveDataDTO;
|
||||||
|
import com.njcn.event.file.pojo.enums.WaveFileResponseEnum;
|
||||||
|
import com.njcn.event.mapper.distribution.PwRmpEventDetailMapper;
|
||||||
|
import com.njcn.event.mapper.majornetwork.RmpEventDetailMapper;
|
||||||
import com.njcn.event.mapper.majornetwork.TransientMapper;
|
import com.njcn.event.mapper.majornetwork.TransientMapper;
|
||||||
|
import com.njcn.event.pojo.param.EventVerifyReasonParam;
|
||||||
import com.njcn.event.pojo.param.TransientParam;
|
import com.njcn.event.pojo.param.TransientParam;
|
||||||
import com.njcn.event.pojo.po.EventDetail;
|
import com.njcn.event.pojo.po.EventDetail;
|
||||||
import com.njcn.event.pojo.po.EventDetailNew;
|
import com.njcn.event.pojo.po.EventDetailNew;
|
||||||
|
import com.njcn.event.pojo.po.RmpEventDetailPO;
|
||||||
import com.njcn.event.pojo.vo.TransientVO;
|
import com.njcn.event.pojo.vo.TransientVO;
|
||||||
import com.njcn.event.service.majornetwork.EventDetailService;
|
import com.njcn.event.service.majornetwork.EventDetailService;
|
||||||
import com.njcn.event.service.majornetwork.TransientService;
|
import com.njcn.event.service.majornetwork.TransientService;
|
||||||
|
import com.njcn.minioss.config.MinIossProperties;
|
||||||
|
import com.njcn.minioss.util.MinIoUtils;
|
||||||
|
import com.njcn.oss.constant.GeneralConstant;
|
||||||
|
import com.njcn.oss.constant.OssPath;
|
||||||
import com.njcn.oss.utils.FileStorageUtil;
|
import com.njcn.oss.utils.FileStorageUtil;
|
||||||
import com.njcn.system.api.DicDataFeignClient;
|
import com.njcn.system.api.DicDataFeignClient;
|
||||||
import com.njcn.system.enums.DicDataTypeEnum;
|
import com.njcn.system.enums.DicDataTypeEnum;
|
||||||
@@ -96,6 +97,10 @@ public class TransientServiceImpl implements TransientService {
|
|||||||
|
|
||||||
private final DeviceTreeClient deviceTreeClient;
|
private final DeviceTreeClient deviceTreeClient;
|
||||||
|
|
||||||
|
private final MinIoUtils minIoUtils;
|
||||||
|
|
||||||
|
private final MinIossProperties minIossProperties;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<TransientVO> getTransientData(TransientParam transientParam) {
|
public Page<TransientVO> getTransientData(TransientParam transientParam) {
|
||||||
@@ -467,16 +472,18 @@ public class TransientServiceImpl implements TransientService {
|
|||||||
public void copyTempData(List<String> eventIds) {
|
public void copyTempData(List<String> eventIds) {
|
||||||
List<RmpEventDetailPO> rmpEventDetailPOList = eventDetailService.listByIds(eventIds);
|
List<RmpEventDetailPO> rmpEventDetailPOList = eventDetailService.listByIds(eventIds);
|
||||||
List<RmpEventDetailPO> nullWave = rmpEventDetailPOList.stream().filter(item -> Objects.isNull(item.getWavePath())).collect(Collectors.toList());
|
List<RmpEventDetailPO> nullWave = rmpEventDetailPOList.stream().filter(item -> Objects.isNull(item.getWavePath())).collect(Collectors.toList());
|
||||||
if (nullWave.size() != 0) {
|
if (!nullWave.isEmpty()) {
|
||||||
throw new BusinessException("请选择存在波形的事件导出!");
|
throw new BusinessException("请选择存在波形的事件导出!");
|
||||||
}
|
}
|
||||||
if (CollUtil.isNotEmpty(rmpEventDetailPOList)) {
|
if (CollUtil.isNotEmpty(rmpEventDetailPOList)) {
|
||||||
for (int i = 0; i < rmpEventDetailPOList.size(); i++) {
|
String cfg = GeneralConstant.CFG;
|
||||||
|
String dat = GeneralConstant.DAT;
|
||||||
|
for (RmpEventDetailPO po : rmpEventDetailPOList) {
|
||||||
//根据监测点id获取监测点详情
|
//根据监测点id获取监测点详情
|
||||||
LineDetailDataVO lineDetailData = lineFeignClient.getLineDetailData(rmpEventDetailPOList.get(i).getMeasurementPointId()).getData();
|
LineDetailDataVO lineDetailData = lineFeignClient.getLineDetailData(po.getMeasurementPointId()).getData();
|
||||||
if (Objects.nonNull(lineDetailData)) {
|
if (Objects.nonNull(lineDetailData)) {
|
||||||
String ip = lineDetailData.getIp();
|
String ip = lineDetailData.getIp();
|
||||||
String waveName = rmpEventDetailPOList.get(i).getWavePath();
|
String waveName = po.getWavePath();
|
||||||
if (StrUtil.isBlank(ip) && StrUtil.isBlank(waveName)) {
|
if (StrUtil.isBlank(ip) && StrUtil.isBlank(waveName)) {
|
||||||
throw new BusinessException(EventResponseEnum.EVENT_NOT_FOUND);
|
throw new BusinessException(EventResponseEnum.EVENT_NOT_FOUND);
|
||||||
}
|
}
|
||||||
@@ -488,32 +495,54 @@ public class TransientServiceImpl implements TransientService {
|
|||||||
try {
|
try {
|
||||||
if (generalInfo.getBusinessWaveFileStorage() == GeneralConstant.LOCAL_DISK) {
|
if (generalInfo.getBusinessWaveFileStorage() == GeneralConstant.LOCAL_DISK) {
|
||||||
cfgPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator + waveName + GeneralConstant.CFG;
|
cfgPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator + waveName + GeneralConstant.CFG;
|
||||||
|
//判断文件是否存在
|
||||||
|
boolean result1 = minIoUtils.checkFileIsExist(minIossProperties.getBucket(), cfgPath);
|
||||||
|
if (!result1) {
|
||||||
|
cfgPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.CFG_LOWER;
|
||||||
|
cfg = GeneralConstant.CFG_LOWER;
|
||||||
|
}
|
||||||
|
|
||||||
datPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator + waveName + GeneralConstant.DAT;
|
datPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator + waveName + GeneralConstant.DAT;
|
||||||
|
boolean result2 = minIoUtils.checkFileIsExist(minIossProperties.getBucket(), datPath);
|
||||||
|
if (!result2) {
|
||||||
|
datPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.DAT_LOWER;
|
||||||
|
dat = GeneralConstant.DAT_LOWER;
|
||||||
|
}
|
||||||
|
|
||||||
cfgStream = waveFileComponent.getFileInputStreamByFilePath(cfgPath);
|
cfgStream = waveFileComponent.getFileInputStreamByFilePath(cfgPath);
|
||||||
datStream = waveFileComponent.getFileInputStreamByFilePath(datPath);
|
datStream = waveFileComponent.getFileInputStreamByFilePath(datPath);
|
||||||
if (Objects.isNull(cfgStream) || Objects.isNull(datStream)) {
|
|
||||||
throw new BusinessException(WaveFileResponseEnum.ANALYSE_WAVE_NOT_FOUND);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
cfgPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.CFG;
|
cfgPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.CFG;
|
||||||
|
boolean result1 = minIoUtils.checkFileIsExist(minIossProperties.getBucket(), cfgPath);
|
||||||
|
if (!result1) {
|
||||||
|
cfgPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.CFG_LOWER;
|
||||||
|
cfg = GeneralConstant.CFG_LOWER;
|
||||||
|
}
|
||||||
|
|
||||||
datPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.DAT;
|
datPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.DAT;
|
||||||
|
boolean result2 = minIoUtils.checkFileIsExist(minIossProperties.getBucket(), datPath);
|
||||||
|
if (!result2) {
|
||||||
|
datPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.DAT_LOWER;
|
||||||
|
dat = GeneralConstant.DAT_LOWER;
|
||||||
|
}
|
||||||
|
|
||||||
System.out.println("波形路径-------------------" + cfgPath);
|
System.out.println("波形路径-------------------" + cfgPath);
|
||||||
|
|
||||||
cfgStream = fileStorageUtil.getFileStream(cfgPath);
|
cfgStream = fileStorageUtil.getFileStream(cfgPath);
|
||||||
datStream = fileStorageUtil.getFileStream(datPath);
|
datStream = fileStorageUtil.getFileStream(datPath);
|
||||||
|
|
||||||
|
}
|
||||||
if (Objects.isNull(cfgStream) || Objects.isNull(datStream)) {
|
if (Objects.isNull(cfgStream) || Objects.isNull(datStream)) {
|
||||||
throw new BusinessException(WaveFileResponseEnum.ANALYSE_WAVE_NOT_FOUND);
|
throw new BusinessException(WaveFileResponseEnum.ANALYSE_WAVE_NOT_FOUND);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
String fileMu = generalInfo.getBusinessTempPath() + File.separator + "comtrade" + File.separator + ip;
|
String fileMu = generalInfo.getBusinessTempPath() + File.separator + "comtrade" + File.separator + ip;
|
||||||
File mulu = new File(fileMu);
|
File mulu = new File(fileMu);
|
||||||
if (!mulu.exists()) {
|
if (!mulu.exists()) {
|
||||||
mulu.mkdirs();
|
mulu.mkdirs();
|
||||||
}
|
}
|
||||||
File fileCfg = new File(fileMu + File.separator + waveName + GeneralConstant.CFG);
|
File fileCfg = new File(fileMu + File.separator + waveName + cfg);
|
||||||
File fileDat = new File(fileMu + File.separator + waveName + GeneralConstant.DAT);
|
File fileDat = new File(fileMu + File.separator + waveName + dat);
|
||||||
|
|
||||||
fileCfg.createNewFile();
|
fileCfg.createNewFile();
|
||||||
fileDat.createNewFile();
|
fileDat.createNewFile();
|
||||||
|
|||||||
@@ -62,6 +62,10 @@ public class THDistortionVO implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@ApiModelProperty("总畸变率")
|
@ApiModelProperty("总畸变率")
|
||||||
private Double distortion = 3.14159;
|
private Double distortion = 3.14159;
|
||||||
|
|
||||||
|
@ApiModelProperty("排序")
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 子集
|
* 子集
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -37,7 +37,8 @@
|
|||||||
Id,
|
Id,
|
||||||
Pid,
|
Pid,
|
||||||
Pids,
|
Pids,
|
||||||
Name
|
Name,
|
||||||
|
Sort
|
||||||
FROM
|
FROM
|
||||||
pq_line
|
pq_line
|
||||||
WHERE
|
WHERE
|
||||||
@@ -45,6 +46,7 @@
|
|||||||
<foreach item="item" collection="list" separator="," open="(" close=")">
|
<foreach item="item" collection="list" separator="," open="(" close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
order by Sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
<foreach item="item" collection="list" separator="," open="(" close=")">
|
<foreach item="item" collection="list" separator="," open="(" close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
order by sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,10 +40,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Comparator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
@@ -126,7 +123,13 @@ public class ComAssessServiceImpl extends ServiceImpl<RStatComassesDMapper, RSta
|
|||||||
PollutionParamDTO paramDTO = new PollutionParamDTO();
|
PollutionParamDTO paramDTO = new PollutionParamDTO();
|
||||||
paramDTO.setLineList(ids);
|
paramDTO.setLineList(ids);
|
||||||
lineInfo = lineFeignClient.getLineInfo(paramDTO).getData();
|
lineInfo = lineFeignClient.getLineInfo(paramDTO).getData();
|
||||||
Map<String, List<PollutionLineDTO>> map = lineInfo.stream().collect(Collectors.groupingBy(PollutionLineDTO::getSubstationId));
|
Map<String, List<PollutionLineDTO>> map = lineInfo.stream()
|
||||||
|
.sorted(Comparator.comparing(PollutionLineDTO::getSubstationSort))
|
||||||
|
.collect(Collectors.groupingBy(
|
||||||
|
PollutionLineDTO::getSubstationId,
|
||||||
|
LinkedHashMap::new,
|
||||||
|
Collectors.toList()
|
||||||
|
));
|
||||||
List<ComAssessDTO> childrenDTOS = new ArrayList<>();
|
List<ComAssessDTO> childrenDTOS = new ArrayList<>();
|
||||||
map.forEach((sub,list) -> {
|
map.forEach((sub,list) -> {
|
||||||
//获取变电站信息
|
//获取变电站信息
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ public class TerminalServiceImpl implements TerminalService {
|
|||||||
public TerminalCensusVO getTerminalDataCensus(DeviceInfoParam.BusinessParam terminalCensusParam) {
|
public TerminalCensusVO getTerminalDataCensus(DeviceInfoParam.BusinessParam terminalCensusParam) {
|
||||||
TerminalCensusVO terminalCensusVO = new TerminalCensusVO();
|
TerminalCensusVO terminalCensusVO = new TerminalCensusVO();
|
||||||
terminalCensusParam.setServerName(generalInfo.getMicroServiceName());
|
terminalCensusParam.setServerName(generalInfo.getMicroServiceName());
|
||||||
List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceInfoClient.getPracticalRunDeviceInfo(terminalCensusParam).getData();
|
// List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceInfoClient.getPracticalRunDeviceInfo(terminalCensusParam).getData();
|
||||||
|
List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceInfoClient.getPracticalAllDeviceInfo(new DeviceInfoParam(terminalCensusParam.getStatisticalType(), terminalCensusParam.getDeptIndex(), generalInfo.getMicroServiceName(), null, terminalCensusParam.getManufacturer(), null)).getData();
|
||||||
List<String> type = new ArrayList<>();
|
List<String> type = new ArrayList<>();
|
||||||
List<Double> single = new ArrayList<>();
|
List<Double> single = new ArrayList<>();
|
||||||
List<Integer> runFlag = new ArrayList<>(),reaFlag = new ArrayList<>(),stopFlag = new ArrayList<>();
|
List<Integer> runFlag = new ArrayList<>(),reaFlag = new ArrayList<>(),stopFlag = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user