初始化

This commit is contained in:
2022-06-21 20:47:46 +08:00
parent b666a24a98
commit 59da3376c1
1246 changed files with 129600 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
package com.njcn.poi.pojo.bo;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.njcn.poi.pojo.constant.DeviceInfoConstant;
import lombok.Data;
import java.io.Serializable;
/**
* @author hongawen
* @version 1.0.0
* @date 2022年03月31日 16:28
*/
@Data
public class BaseLineExcelBody implements Serializable {
@Excel(name = "统计名称", width = 20, mergeVertical = true)
private String statisticsName;
@Excel(name = DeviceInfoConstant.UNIT_NAME, width = 25, mergeVertical = true)
private String gdName;
@Excel(name = DeviceInfoConstant.DEPARTMENT_NAME, width = 25, mergeVertical = true)
private String subName;
@Excel(name = DeviceInfoConstant.DEPARTMENT_NAME_SCALE, width = 20)
private String subScale;
@Excel(name = "终端名称", width = 15, mergeVertical = true)
private String deviceName;
@Excel(name = "网络参数", width = 15, mergeVertical = true)
private String networkParam;
@Excel(name = "通讯状态", replace = {"中断_0", "正常_1"}, width = 15)
private String comState;
@Excel(name = "终端厂家", width = 15)
private String factoryName;
@Excel(name = "最新更新数据时间", width = 18)
private String time;
@Excel(name = "母线电压等级", width = 15, mergeVertical = true)
private String subvScale;
@Excel(name = "监测点名称", width = 20)
private String lineName;
}

View File

@@ -0,0 +1,54 @@
package com.njcn.poi.pojo.bo;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.njcn.poi.pojo.constant.DeviceInfoConstant;
import lombok.Data;
import java.io.Serializable;
/**
* @author hongawen
* @version 1.0.0
* @date 2022年04月01日 15:07
*/
@Data
public class BaseLineProExcelBody implements Serializable {
@Excel(name = "统计名称", width = 20, mergeVertical = true)
private String statisticsName;
@Excel(name = DeviceInfoConstant.PROJECT_NAME, width = 25, mergeVertical = true)
private String provincialName;
@Excel(name = DeviceInfoConstant.UNIT_NAME, width = 25, mergeVertical = true)
private String gdName;
@Excel(name = DeviceInfoConstant.DEPARTMENT_NAME, width = 25, mergeVertical = true)
private String subName;
@Excel(name = DeviceInfoConstant.DEPARTMENT_NAME_SCALE, width = 20)
private String subScale;
@Excel(name = "终端名称", width = 15, mergeVertical = true)
private String deviceName;
@Excel(name = "网络参数", width = 15, mergeVertical = true)
private String networkParam;
@Excel(name = "通讯状态", replace = {"中断_0", "正常_1"}, width = 15)
private String comState;
@Excel(name = "终端厂家", width = 15)
private String factoryName;
@Excel(name = "最新更新数据时间", width = 18)
private String time;
@Excel(name = "母线电压等级", width = 15, mergeVertical = true)
private String subvScale;
@Excel(name = "监测点名称", width = 25)
private String lineName;
}

View File

@@ -0,0 +1,21 @@
package com.njcn.poi.pojo.constant;
/**
* @author hongawen
* @version 1.0.0
* @date 2022年03月31日 18:39
*/
public interface DeviceInfoConstant {
/**
* 【工程名称】-【单位】-【部门】
* 在数据中心、电网省公司为:【省级】-【供电公司】-【变电站】
*
* 企业用户:【企业】-【区域】-【单位】
**/
String PROJECT_NAME="省级";
String UNIT_NAME = "供电公司";
String DEPARTMENT_NAME = "变电站";
String DEPARTMENT_NAME_SCALE = "变电站电压等级";
}