|
@@ -424,7 +424,7 @@ public class DashboardService extends BaseService {
|
|
|
// analysisList.add(nwpAnalysisDto);
|
|
|
|
|
|
// 短期一期
|
|
|
- List<FileAnalysisRecord> dqList1 = fileAnalysisRecordList.stream().filter(w -> "DQ1".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
+ List<FileAnalysisRecord> dqList1 = fileAnalysisRecordList.stream().filter(w -> "DQ".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
String dqStatus1 = "0";
|
|
|
String dqTips1 = "";
|
|
|
if (dqList1.size() > 0) {
|
|
@@ -436,13 +436,13 @@ public class DashboardService extends BaseService {
|
|
|
}
|
|
|
|
|
|
ChannelStatusDto dqAnalysisDto1 = new ChannelStatusDto();
|
|
|
- dqAnalysisDto1.setChannelId("DQ1");
|
|
|
+ dqAnalysisDto1.setChannelId("DQ");
|
|
|
dqAnalysisDto1.setChannelName("光伏短期文件");
|
|
|
dqAnalysisDto1.setChannelStatus(dqStatus1);
|
|
|
dqAnalysisDto1.setTips(dqTips1);
|
|
|
analysisList.add(dqAnalysisDto1);
|
|
|
// NWP一期
|
|
|
- List<FileAnalysisRecord> nwpList1 = fileAnalysisRecordList.stream().filter(w -> "NWP1".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
+ List<FileAnalysisRecord> nwpList1 = fileAnalysisRecordList.stream().filter(w -> "NWP".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
String nwpStatus1 = "0";
|
|
|
String nwpTips1 = "";
|
|
|
if (nwpList1.size() > 0) {
|
|
@@ -453,14 +453,14 @@ public class DashboardService extends BaseService {
|
|
|
nwpTips1 = "今日未解析过光伏NWP文件";
|
|
|
}
|
|
|
ChannelStatusDto nwpAnalysisDto1 = new ChannelStatusDto();
|
|
|
- nwpAnalysisDto1.setChannelId("NWP1");
|
|
|
+ nwpAnalysisDto1.setChannelId("NWP");
|
|
|
nwpAnalysisDto1.setChannelName("光伏NWP文件");
|
|
|
nwpAnalysisDto1.setChannelStatus(nwpStatus1);
|
|
|
nwpAnalysisDto1.setTips(nwpTips1);
|
|
|
analysisList.add(nwpAnalysisDto1);
|
|
|
|
|
|
// 短期二期
|
|
|
- List<FileAnalysisRecord> dqList2 = fileAnalysisRecordList.stream().filter(w -> "DQ2".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
+ List<FileAnalysisRecord> dqList2 = fileAnalysisRecordList.stream().filter(w -> "DQ1".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
String dqStatus2 = "0";
|
|
|
String dqTips2 = "";
|
|
|
if (dqList2.size() > 0) {
|
|
@@ -472,13 +472,13 @@ public class DashboardService extends BaseService {
|
|
|
}
|
|
|
|
|
|
ChannelStatusDto dqAnalysisDto2 = new ChannelStatusDto();
|
|
|
- dqAnalysisDto2.setChannelId("DQ2");
|
|
|
+ dqAnalysisDto2.setChannelId("DQ1");
|
|
|
dqAnalysisDto2.setChannelName("风电短期文件");
|
|
|
dqAnalysisDto2.setChannelStatus(dqStatus2);
|
|
|
dqAnalysisDto2.setTips(dqTips2);
|
|
|
analysisList.add(dqAnalysisDto2);
|
|
|
// NWP二期
|
|
|
- List<FileAnalysisRecord> nwpList2 = fileAnalysisRecordList.stream().filter(w -> "NWP2".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
+ List<FileAnalysisRecord> nwpList2 = fileAnalysisRecordList.stream().filter(w -> "NWP1".equals(w.getFileType())).collect(Collectors.toList());
|
|
|
String nwpStatus2 = "0";
|
|
|
String nwpTips2 = "";
|
|
|
if (nwpList2.size() > 0) {
|
|
@@ -489,7 +489,7 @@ public class DashboardService extends BaseService {
|
|
|
nwpTips2 = "今日未解析过风电NWP文件";
|
|
|
}
|
|
|
ChannelStatusDto nwpAnalysisDto2 = new ChannelStatusDto();
|
|
|
- nwpAnalysisDto2.setChannelId("NWP2");
|
|
|
+ nwpAnalysisDto2.setChannelId("NWP1");
|
|
|
nwpAnalysisDto2.setChannelName("风电NWP文件");
|
|
|
nwpAnalysisDto2.setChannelStatus(nwpStatus2);
|
|
|
nwpAnalysisDto2.setTips(nwpTips2);
|