|
@@ -678,7 +678,7 @@ public class InterlockDetailHistoryServiceImpl extends ServiceImpl<InterlockDeta
|
|
}
|
|
}
|
|
|
|
|
|
// 合并 "联锁名称" 列单元格,基于 "采集时间"
|
|
// 合并 "联锁名称" 列单元格,基于 "采集时间"
|
|
- if (idx == 0 || !record.getTagTime().equals(exportList.get(idx - 1).getTagTime()) || !record.getInterlockname().equals(exportList.get(idx - 1).getInterlockname()) ) {
|
|
|
|
|
|
+ if (idx == 0 || !record.getTagTime().equals(exportList.get(idx - 1).getTagTime()) || !record.getInterlockname().equals(exportList.get(idx - 1).getInterlockname()) || !record.getSummaryid().equals(exportList.get(idx - 1).getSummaryid()) ) {
|
|
if (idx > 0 && (rowNum - startInterlockNameRow) > 1) {
|
|
if (idx > 0 && (rowNum - startInterlockNameRow) > 1) {
|
|
sheet.addMergedRegion(new CellRangeAddress(startInterlockNameRow, rowNum - 1, interlockNameCol, interlockNameCol));
|
|
sheet.addMergedRegion(new CellRangeAddress(startInterlockNameRow, rowNum - 1, interlockNameCol, interlockNameCol));
|
|
}
|
|
}
|
|
@@ -686,7 +686,7 @@ public class InterlockDetailHistoryServiceImpl extends ServiceImpl<InterlockDeta
|
|
}
|
|
}
|
|
|
|
|
|
// 合并 "联锁状态" 列单元格,基于 "采集时间" "联锁名称"
|
|
// 合并 "联锁状态" 列单元格,基于 "采集时间" "联锁名称"
|
|
- if (idx == 0 || !record.getTagTime().equals(exportList.get(idx - 1).getTagTime()) || !record.getInterlockname().equals(exportList.get(idx - 1).getInterlockname()) || !record.getInterlockStatusName().equals(exportList.get(idx - 1).getInterlockStatusName())) {
|
|
|
|
|
|
+ if (idx == 0 || !record.getTagTime().equals(exportList.get(idx - 1).getTagTime()) || !record.getInterlockname().equals(exportList.get(idx - 1).getInterlockname()) || !record.getInterlockStatusName().equals(exportList.get(idx - 1).getInterlockStatusName()) || !record.getSummaryid().equals(exportList.get(idx - 1).getSummaryid()) ) {
|
|
if (idx > 0 && (rowNum - startInterlockStatusRow) > 1) {
|
|
if (idx > 0 && (rowNum - startInterlockStatusRow) > 1) {
|
|
sheet.addMergedRegion(new CellRangeAddress(startInterlockStatusRow, rowNum - 1, interlockStatusCol, interlockStatusCol));
|
|
sheet.addMergedRegion(new CellRangeAddress(startInterlockStatusRow, rowNum - 1, interlockStatusCol, interlockStatusCol));
|
|
}
|
|
}
|
|
@@ -694,7 +694,7 @@ public class InterlockDetailHistoryServiceImpl extends ServiceImpl<InterlockDeta
|
|
}
|
|
}
|
|
|
|
|
|
// 合并 "回路健康状态" 列单元格,基于 "采集时间" "联锁名称"
|
|
// 合并 "回路健康状态" 列单元格,基于 "采集时间" "联锁名称"
|
|
- if (idx == 0 || !record.getTagTime().equals(exportList.get(idx - 1).getTagTime()) || !record.getInterlockname().equals(exportList.get(idx - 1).getInterlockname()) || !record.getLoopHealthLevel().equals(exportList.get(idx - 1).getLoopHealthLevel())) {
|
|
|
|
|
|
+ if (idx == 0 || !record.getTagTime().equals(exportList.get(idx - 1).getTagTime()) || !record.getInterlockname().equals(exportList.get(idx - 1).getInterlockname()) || !record.getLoopHealthLevel().equals(exportList.get(idx - 1).getLoopHealthLevel()) || !record.getSummaryid().equals(exportList.get(idx - 1).getSummaryid()) ) {
|
|
if (idx > 0 && (rowNum - startLoopHealthLevelRow) > 1) {
|
|
if (idx > 0 && (rowNum - startLoopHealthLevelRow) > 1) {
|
|
sheet.addMergedRegion(new CellRangeAddress(startLoopHealthLevelRow, rowNum - 1, loopHealthLevelCol, loopHealthLevelCol));
|
|
sheet.addMergedRegion(new CellRangeAddress(startLoopHealthLevelRow, rowNum - 1, loopHealthLevelCol, loopHealthLevelCol));
|
|
}
|
|
}
|