监测点污染值、用户污染值、变电站污染值导出功能

This commit is contained in:
wr
2025-07-29 16:35:22 +08:00
parent 9f9baa9991
commit 4f66c4833f
20 changed files with 937 additions and 36 deletions

View File

@@ -0,0 +1,27 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class GdPollution implements Serializable {
/**
* 供电公司名称
*/
@Excel(name = "供电公司", width = 30, needMerge = true)
private String gdName;
/**
* 变电站集合
* name不要赋值
*/
@ExcelCollection(name = "")
private List<SubstationPollution> substationPollutionList;
}

View File

@@ -0,0 +1,84 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
@Data
public class LineItemPollution implements Serializable {
/**
* 终端名称
*/
@Excel(name = "终端名称", width = 30, replace = "/_null")
private String devName;
/**
* 终端厂家
*/
@Excel(name = "终端厂家", width = 30, replace = "/_null")
private String manufacturer;
/**
* 终端型号
*/
@Excel(name = "终端型号", width = 30, replace = "/_null")
private String devType;
/**
* 终端投运时间
*/
@Excel(name = "投运时间", width = 30, replace = "/_null")
private String loginTime;
/**
* 监测点名称
*/
@Excel(name = "监测点名称", width = 35, replace = "/_null")
private String lineName;
/**
* 统计间隔
*/
@Excel(name = "统计间隔", width = 30, replace = "/_null")
private Integer interval;
/**
* 谐波电压污染值
*/
@Excel(name = "谐波电压污染值", width = 35, replace = "/_null")
private Double vHarmonicValue;
@Excel(name = "谐波电压污染值", width = 35, replace = "/_null")
private Double iHarmonicValue;
/**
* 暂升次数 1.1~1.8
* 10ms ~ 1min
*/
// @Excel(name = "暂升次数(次)", width = 32, replace = "/_null")
private Integer upCounts;
/**
* 暂降次数 0.1~0.9
* 10ms ~ 1min
*/
// @Excel(name = "电压暂降(次)", width = 32, replace = "/_null")
private Integer downCounts;
/**
* 短时中断 0~0.1
* 10ms ~ 1min
*/
// @Excel(name = "短时中断(次)", width = 32, replace = "/_null")
private Integer breakCounts;
/**
* 备注
*/
@Excel(name = "备注", width = 30, replace = "/_null")
private String remark;
}

View File

@@ -0,0 +1,152 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
@Data
public class LinePollution implements Serializable {
/**
* 供电公司名称
*/
@Excel(name = "供电公司", width = 30)
private String gdName;
/**
* 所属变电站
*/
@Excel(name = "变电站", width = 30)
private String subStationName;
/**
* 终端名称
*/
@Excel(name = "终端名称", width = 30)
private String devName;
/**
* 终端厂家
*/
@Excel(name = "终端厂家", width = 30)
private String manufacturer;
/**
* 终端型号
*/
@Excel(name = "终端型号", width = 30)
private String devType;
/**
* 终端投运时间
*/
@Excel(name = "投运时间", width = 30)
private String loginTime;
/**
* 监测点索引
*/
private String lineId;
/**
* 监测点名称
*/
@Excel(name = "监测点名称", width = 30)
private String lineName;
/**
* 位置,电网侧&非电网侧
*/
@Excel(name = "监测位置", width = 30)
private String powerFlag;
/**
* 新增
* 监测点电压等级
*/
@Excel(name = "监测点电压等级", width = 30)
private String lineVoltage;
/**
* 干扰源类型
*/
@Excel(name = "干扰源类型", width = 30)
private String loadType;
/**
* 监测对象
*/
@Excel(name = "监测对象名称", width = 30)
private String objName;
/**
* 统计间隔
*/
@Excel(name = "统计间隔", width = 30)
private Integer interval;
/**
* 新增
* 在线率
*/
@Excel(name = "在线率(%)", width = 30)
private Double onlineRate;
/**
* 新增
* 完整性
*/
@Excel(name = "完整率(%)", width = 30)
private Double integrity;
/**
* 谐波电压污染值
*/
@Excel(name = "谐波电压污染值", width = 20)
private Double vHarmonicValue;
/**
* 谐波电压污染值
*/
@Excel(name = "谐波电流污染值", width = 20)
private Double iHarmonicValue;
/**
* 暂升次数 1.1~1.8
* 10ms ~ 1min
*/
@Excel(name = "暂升次数(次)", width = 20)
private Integer upCounts;
/**
* 暂降次数 0.1~0.9
* 10ms ~ 1min
*/
@Excel(name = "电压暂降(次)", width = 20)
private Integer downCounts;
/**
* 短时中断 0~0.1
* 10ms ~ 1min
*/
@Excel(name = "短时中断(次)", width = 20)
private Integer breakCounts;
@Excel(name = "是否关联敏感用户", width = 30, replace = "/_null")
private String isMg;
@Excel(name = "敏感及重要用户", width = 30,replace = "/_null")
private String importUser;
@Excel(name = "一类监测点", width = 30,replace = "/_null")
private String monitorId;
// /**
// * 备注
// */
// @Excel(name = "备注", width = 30, replace = "/_null")
// private String remark;
}

View File

@@ -0,0 +1,92 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
@Data
public class LoadTypeLineItemPollution implements Serializable {
/**
* 所属变电站
*/
@Excel(name = "变电站", width = 30, needMerge = true)
private String subStationName;
/**
* 终端名称
*/
@Excel(name = "终端名称", width = 30, replace = "/_null")
private String devName;
/**
* 终端厂家
*/
@Excel(name = "终端厂家", width = 30, replace = "/_null")
private String manufacturer;
/**
* 终端型号
*/
@Excel(name = "终端型号", width = 30, replace = "/_null")
private String devType;
/**
* 终端投运时间
*/
@Excel(name = "投运时间", width = 30, replace = "/_null")
private String loginTime;
/**
* 监测点名称
*/
@Excel(name = "监测点名称", width = 30, replace = "/_null")
private String lineName;
/**
* 统计间隔
*/
@Excel(name = "统计间隔", width = 30, replace = "/_null")
private Integer interval;
/**
* 谐波电压污染值
*/
@Excel(name = "测点谐波电压污染值", width = 20, replace = "/_null")
private Double vHarmonicValue;
/**
* 谐波电压污染值
*/
@Excel(name = "测点谐波电流污染值", width = 20, replace = "/_null")
private Double iHarmonicValue;
/**
* 暂升次数 1.1~1.8
* 10ms ~ 1min
*/
// @Excel(name = "暂升次数(次)", width = 20, replace = "/_null")
private Integer upCounts;
/**
* 暂降次数 0.1~0.9
* 10ms ~ 1min
*/
// @Excel(name = "电压暂降(次)", width = 20, replace = "/_null")
private Integer downCounts;
/**
* 短时中断 0~0.1
* 10ms ~ 1min
*/
// @Excel(name = "短时中断(次)", width = 20, replace = "/_null")
private Integer breakCounts;
/**
* 备注
*/
@Excel(name = "备注", width = 30, replace = "/_null")
private String remark;
}

View File

@@ -0,0 +1,46 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class ObjPollution implements Serializable {
/**
* 对象名称
*/
@Excel(name = "用户名称", width = 30, needMerge = true)
private String objName;
/**
* 干扰源类型
*/
@Excel(name = "干扰源类型", width = 30, needMerge = true)
private String loadType;
/**
* 行业类型
*/
@Excel(name = "行业类型", width = 30, needMerge = true)
private String businessType;
/**
* 用户污染值
*/
@Excel(name = "用户谐波电压污染值", width = 30, needMerge = true)
private String objVValue;
@Excel(name = "用户谐波电流污染值", width = 30, needMerge = true)
private String objIValue;
/**
* 下面监测点详细污染值
*/
@ExcelCollection(name = "")
private List<LoadTypeLineItemPollution> lineItemPollutionList;
}

View File

@@ -0,0 +1,35 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class PowerFlagPollution implements Serializable {
/**
* 监测位置
*/
@Excel(name = "监测位置", width = 30, needMerge = true)
private String powerFlag;
/**
* 监测污染值
*/
@Excel(name = "监测谐波电压污染值", width = 40, needMerge = true, replace = "/_null")
private String powerVValue;
@Excel(name = "监测谐波电流污染值", width = 40, needMerge = true, replace = "/_null")
private String powerIValue;
/**
* 当前位置下,各测点的污染数据
*/
@ExcelCollection(name = "")
private List<LineItemPollution> lineItemPollutionList;
}

View File

@@ -0,0 +1,40 @@
package com.njcn.harmonic.pojo.excel.pollution;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class SubstationPollution implements Serializable {
/**
* 所属变电站
*/
@Excel(name = "变电站", width = 30, needMerge = true)
private String subStationName;
/**
* 电站污染值
*/
@Excel(name = "电站谐波电压污染值", width = 25, needMerge = true)
private String subVStationValue;
/**
* 电站污染值
*/
@Excel(name = "电站谐波电流污染值", width = 25, needMerge = true)
private String subIStationValue;
/**
* 电网侧&非电网侧
* name不要赋值
*/
@ExcelCollection(name = "")
private List<PowerFlagPollution> powerFlagPollutionList;
}