1.报告模板bug
This commit is contained in:
@@ -101,12 +101,7 @@ public class LineIntegrityDataServiceImpl extends ServiceImpl<LineIntegrityDataM
|
|||||||
if (CollectionUtil.isEmpty(alarmStrategyVos)) {
|
if (CollectionUtil.isEmpty(alarmStrategyVos)) {
|
||||||
throw new BusinessException(DeviceResponseEnum.QUERY_ALARMSTRATEGY_DATA_EMPTY);
|
throw new BusinessException(DeviceResponseEnum.QUERY_ALARMSTRATEGY_DATA_EMPTY);
|
||||||
}
|
}
|
||||||
List<AlarmStrategyVO> alarmAlgoDescribe = lineIntegrityDataMapper.getAlarmAlgoDescribe(alarmStrategyVos);
|
|
||||||
Map<Integer, Integer> mapAlarm = alarmAlgoDescribe.stream().collect(Collectors.toMap(AlarmStrategyVO::getAlgoDescribe, AlarmStrategyVO::getIntegrityValue));
|
|
||||||
|
|
||||||
Map<String, Integer> mapA = alarmStrategyVos.stream().collect(Collectors.toMap(AlarmStrategyVO::getId, AlarmStrategyVO::getIntegrityValue));
|
Map<String, Integer> mapA = alarmStrategyVos.stream().collect(Collectors.toMap(AlarmStrategyVO::getId, AlarmStrategyVO::getIntegrityValue));
|
||||||
|
|
||||||
|
|
||||||
// 遍历集合
|
// 遍历集合
|
||||||
for (GeneralDeviceDTO generalDeviceDTO : generalDeviceDTOList) {
|
for (GeneralDeviceDTO generalDeviceDTO : generalDeviceDTOList) {
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ public class GridServiceImpl implements IGridService {
|
|||||||
if (param.getAreaType() == 0) {
|
if (param.getAreaType() == 0) {
|
||||||
AssessVo.AssessTrendVo vo = new AssessVo.AssessTrendVo();
|
AssessVo.AssessTrendVo vo = new AssessVo.AssessTrendVo();
|
||||||
vo.setDeptId(param.getDeptIndex());
|
vo.setDeptId(param.getDeptIndex());
|
||||||
vo.setDeptName("冀北");
|
vo.setDeptName(deptFeignClient.getDeptById(param.getDeptIndex()).getData().getName());
|
||||||
List<AssessVo> children = new ArrayList<>();
|
List<AssessVo> children = new ArrayList<>();
|
||||||
map.forEach((k1, v1) -> {
|
map.forEach((k1, v1) -> {
|
||||||
AssessVo assessVo = new AssessVo();
|
AssessVo assessVo = new AssessVo();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.njcn.harmonic.rstatlimitrate.mapper.RStatDataVDMapper">
|
<mapper namespace="com.njcn.harmonic.common.mapper.RStatDataVDMapper">
|
||||||
|
|
||||||
<select id="getFreqDev" resultType="com.njcn.harmonic.pojo.po.RStatDataVD">
|
<select id="getFreqDev" resultType="com.njcn.harmonic.pojo.po.RStatDataVD">
|
||||||
select
|
select
|
||||||
@@ -131,7 +131,8 @@ public class EventDictServiceImpl extends ServiceImpl<EventDictMapper, ReportDic
|
|||||||
queryWrapper.eq("report_dict.state", DataStateEnum.ENABLE.getCode()).eq("report_dict.Type",dictQueryParam.getType());
|
queryWrapper.eq("report_dict.state", DataStateEnum.ENABLE.getCode()).eq("report_dict.Type",dictQueryParam.getType());
|
||||||
List<ReportDict> reportAllDicts = this.baseMapper.selectList(queryWrapper);
|
List<ReportDict> reportAllDicts = this.baseMapper.selectList(queryWrapper);
|
||||||
List<ReportDict> reportDicts = new ArrayList<>();
|
List<ReportDict> reportDicts = new ArrayList<>();
|
||||||
reportAllDicts.stream().filter(reportDict -> reportDict.getId().equals(dictQueryParam.getId())).forEach(reportDict -> {
|
List<ReportDict> rootList = reportAllDicts.stream().filter(reportDict -> Objects.equals(reportDict.getPid(),"0")).collect(Collectors.toList());
|
||||||
|
rootList.forEach(reportDict -> {
|
||||||
reportDicts.add(reportDict);
|
reportDicts.add(reportDict);
|
||||||
getChild(reportDicts, reportDict, reportAllDicts);
|
getChild(reportDicts, reportDict, reportAllDicts);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user