监测点稳态超标添加字段

This commit is contained in:
xy
2024-10-17 14:34:39 +08:00
parent 119e26728f
commit e52db859a3
5 changed files with 42 additions and 11 deletions

View File

@@ -46,6 +46,9 @@ public class OverLimitMonitor {
//协议容量 //协议容量
private Float xycMp; private Float xycMp;
//监测装置安装位置
private String devLocation;
//超标天数 //超标天数
private int overLimitDay; private int overLimitDay;
@@ -750,6 +753,14 @@ public class OverLimitMonitor {
this.diffFlickerData = diffFlickerData; this.diffFlickerData = diffFlickerData;
} }
public String getDevLocation() {
return devLocation;
}
public void setDevLocation(String devLocation) {
this.devLocation = devLocation;
}
@Override @Override
public String toString() { public String toString() {
return "OverLimitMonitor{" + return "OverLimitMonitor{" +
@@ -766,6 +777,7 @@ public class OverLimitMonitor {
", dlcMp=" + dlcMp + ", dlcMp=" + dlcMp +
", devcMp=" + devcMp + ", devcMp=" + devcMp +
", xycMp=" + xycMp + ", xycMp=" + xycMp +
", devLocation='" + devLocation + '\'' +
", overLimitDay=" + overLimitDay + ", overLimitDay=" + overLimitDay +
", overVoltageDeviationDay=" + overVoltageDeviationDay + ", overVoltageDeviationDay=" + overVoltageDeviationDay +
", maxVoltageDeviationData=" + maxVoltageDeviationData + ", maxVoltageDeviationData=" + maxVoltageDeviationData +

View File

@@ -709,7 +709,7 @@ public class ComplexHeadExcel{
xssfSheet.addMergedRegion(region12); xssfSheet.addMergedRegion(region12);
CellRangeAddress region13 = new CellRangeAddress(0, 2, 13, 13); CellRangeAddress region13 = new CellRangeAddress(0, 2, 13, 13);
xssfSheet.addMergedRegion(region13); xssfSheet.addMergedRegion(region13);
CellRangeAddress region14 = new CellRangeAddress(0, 0, 14, 70); CellRangeAddress region14 = new CellRangeAddress(0, 0, 14, 69);
xssfSheet.addMergedRegion(region14); xssfSheet.addMergedRegion(region14);
//电压变差 //电压变差
CellRangeAddress region15 = new CellRangeAddress(1, 1, 14, 17); CellRangeAddress region15 = new CellRangeAddress(1, 1, 14, 17);
@@ -748,8 +748,11 @@ public class ComplexHeadExcel{
CellRangeAddress region26 = new CellRangeAddress(1, 1, 62, 69); CellRangeAddress region26 = new CellRangeAddress(1, 1, 62, 69);
xssfSheet.addMergedRegion(region26); xssfSheet.addMergedRegion(region26);
//监测点编号 //监测点编号
CellRangeAddress region27 = new CellRangeAddress(1, 2, 70, 70); CellRangeAddress region27 = new CellRangeAddress(0, 2, 70, 70);
xssfSheet.addMergedRegion(region27); xssfSheet.addMergedRegion(region27);
//监测装置安装位置
CellRangeAddress region28 = new CellRangeAddress(0, 2, 71, 71);
xssfSheet.addMergedRegion(region28);
//设置单元格大小 //设置单元格大小
xssfSheet.setColumnWidth(0, 2000); xssfSheet.setColumnWidth(0, 2000);
@@ -823,6 +826,7 @@ public class ComplexHeadExcel{
xssfSheet.setColumnWidth(68, 2500); xssfSheet.setColumnWidth(68, 2500);
xssfSheet.setColumnWidth(69, 2500); xssfSheet.setColumnWidth(69, 2500);
xssfSheet.setColumnWidth(70, 2500); xssfSheet.setColumnWidth(70, 2500);
xssfSheet.setColumnWidth(71, 2500);
//一级表头 //一级表头
cell = row.createCell(0); cell = row.createCell(0);
@@ -885,6 +889,14 @@ public class ComplexHeadExcel{
cell.setCellValue("各项指标超标明细"); cell.setCellValue("各项指标超标明细");
cell.setCellStyle(getStyle(1)); cell.setCellStyle(getStyle(1));
cell = row.createCell(70);
cell.setCellValue("监测点编号");
cell.setCellStyle(getStyle(1));
cell = row.createCell(71);
cell.setCellValue("监测装置安装位置");
cell.setCellStyle(getStyle(1));
//二级表头 //二级表头
cell = row2.createCell(14); cell = row2.createCell(14);
cell.setCellValue("电压偏差"); cell.setCellValue("电压偏差");
@@ -934,10 +946,6 @@ public class ComplexHeadExcel{
cell.setCellValue("各次谐波电流幅值"); cell.setCellValue("各次谐波电流幅值");
cell.setCellStyle(getStyle(1)); cell.setCellStyle(getStyle(1));
cell = row2.createCell(70);
cell.setCellValue("监测点编号");
cell.setCellStyle(getStyle(1));
//三级表头 //三级表头
cell = row3.createCell(14); cell = row3.createCell(14);
cell.setCellValue("超标天数"); cell.setCellValue("超标天数");
@@ -1292,6 +1300,10 @@ public class ComplexHeadExcel{
cell = row.createCell(70); cell = row.createCell(70);
cell.setCellValue(list.get(i).getMonitorNumber()); cell.setCellValue(list.get(i).getMonitorNumber());
cell = row.createCell(71);
cell.setCellValue(list.get(i).getDevLocation());
xssfWorkbook.write(os); xssfWorkbook.write(os);
} }

View File

@@ -17,6 +17,7 @@
primary.DLCMP dlcMp, primary.DLCMP dlcMp,
primary.DEVCMP devcMp, primary.DEVCMP devcMp,
primary.XYCMP xycMp, primary.XYCMP xycMp,
primary.devLocation devLocation,
NVL(A.OVERTIMES, 0) overLimitDay, NVL(A.OVERTIMES, 0) overLimitDay,
NVL(B.OVERTIMES, 0) overFrequencyDeviationDay, NVL(B.OVERTIMES, 0) overFrequencyDeviationDay,
NVL(C.OVERTIMES, 0) overVoltageDeviationDay, NVL(C.OVERTIMES, 0) overVoltageDeviationDay,
@@ -55,6 +56,7 @@
fir.DLCMP , fir.DLCMP ,
fir.DEVCMP , fir.DEVCMP ,
fir.XYCMP , fir.XYCMP ,
fir.devLocation,
A.DIC_NAME cityCompany, A.DIC_NAME cityCompany,
B.DEPTSNAME provinceCompany, B.DEPTSNAME provinceCompany,
C.DIC_NAME MONITORVOLTAGELEVEL, C.DIC_NAME MONITORVOLTAGELEVEL,
@@ -75,13 +77,15 @@
D.NAME subName, D.NAME subName,
D.SCALE subScale, D.SCALE subScale,
E.objname objName, E.objname objName,
E.POWER_SUBSTATION_NAME powerSubstationName E.POWER_SUBSTATION_NAME powerSubstationName,
F.DEV_LOCATION devLocation
FROM FROM
PQ_LINE A, PQ_LINE A,
PQS_DEPTSLINE B, PQS_DEPTSLINE B,
PQS_DEPTS C, PQS_DEPTS C,
PQ_SUBSTATION D, PQ_SUBSTATION D,
PQ_LINEDETAIL E PQ_LINEDETAIL E,
PQ_DEVICEDETAIL F
WHERE A.LINE_INDEX IN WHERE A.LINE_INDEX IN
<foreach collection="list" item="list1" open="(" close=")" separator=","> <foreach collection="list" item="list1" open="(" close=")" separator=",">
#{list1} #{list1}
@@ -96,6 +100,7 @@
<if test=" vollevel != ''"> <if test=" vollevel != ''">
AND A.SCALE=#{vollevel} AND A.SCALE=#{vollevel}
</if> </if>
AND A.DEV_INDEX = F.DEV_INDEX
) fir ) fir
LEFT JOIN LEFT JOIN
PQS_DICDATA A PQS_DICDATA A

View File

@@ -146,7 +146,9 @@
<th style="line-height: 90px" rowspan="3">供电设备容量</th> <th style="line-height: 90px" rowspan="3">供电设备容量</th>
<th style="line-height: 90px" rowspan="3">用户协议容量</th> <th style="line-height: 90px" rowspan="3">用户协议容量</th>
<th style="line-height: 90px" rowspan="3">超标天数</th> <th style="line-height: 90px" rowspan="3">超标天数</th>
<th colspan="57">各项指标超标明细</th> <th colspan="56">各项指标超标明细</th>
<th style="line-height: 90px" rowspan="3">监测点编号</th>
<th style="line-height: 90px" rowspan="3">监测装置安装位置</th>
</tr> </tr>
<tr> <tr>
<th colspan="4">电压偏差</th> <th colspan="4">电压偏差</th>
@@ -161,7 +163,6 @@
<th colspan="4">闪变</th> <th colspan="4">闪变</th>
<th colspan="8">各次谐波电压含有率超标天数</th> <th colspan="8">各次谐波电压含有率超标天数</th>
<th colspan="8">各次谐波电流含量超标天数</th> <th colspan="8">各次谐波电流含量超标天数</th>
<th style="line-height: 50px" rowspan="2">监测点编号</th>
</tr> </tr>
<tr> <tr>
<th>超标天数</th> <th>超标天数</th>

View File

@@ -279,7 +279,8 @@ function initTable(data){
{width: "1%",data:"overCurrentTwentyThirdTimes"}, {width: "1%",data:"overCurrentTwentyThirdTimes"},
{width: "1%",data:"overCurrentTwentyFiveTimes"}, {width: "1%",data:"overCurrentTwentyFiveTimes"},
{width: "1%",data:"overCurrentOtherTimes"}, {width: "1%",data:"overCurrentOtherTimes"},
{width: "2%",data:"monitorNumber"} {width: "2%",data:"monitorNumber"},
{width: "2%",data:"devLocation"}
], ],
bAutoWidth:false, bAutoWidth:false,
serverSide : false, serverSide : false,