国网推送
This commit is contained in:
@@ -6,88 +6,83 @@ import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/12/6 15:22【需求编号】
|
||||
* Date: 2023/12/6 15:30【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class ConverterDetailStatisticsDTO {
|
||||
/*主键 是否必填:是*/
|
||||
private String id;
|
||||
|
||||
/*统计日期 是否必填:是*/
|
||||
private String statisticalDate;
|
||||
/*统计类型 是否必填:是*/
|
||||
private String statisticalType;
|
||||
|
||||
/*主键 是否必填:是*/
|
||||
private String id;
|
||||
/*省级单位id 是否必填:是*/
|
||||
private String provinceId;
|
||||
/*省级单位名称 是否必填:否*/
|
||||
private String provinceName;
|
||||
/*市级单位id 是否必填:是*/
|
||||
private String cityId;
|
||||
/*市级单位名称 是否必填:否*/
|
||||
private String cityName;
|
||||
/*县级单位id 是否必填:否*/
|
||||
private String countyId;
|
||||
/*县级单位名称 是否必填:否*/
|
||||
private String countyName;
|
||||
|
||||
/*省级单位名称 是否必填:否*/
|
||||
private String provinceName;
|
||||
/*省级单位id 是否必填:是*/
|
||||
private String provinceId;
|
||||
/*换流站id 是否必填:是*/
|
||||
private String converterId;
|
||||
/*换流站名称 是否必填:是*/
|
||||
private String converterName;
|
||||
/*电压等级 是否必填:是*/
|
||||
private String voltageLevel;
|
||||
|
||||
/*市级单位id 是否必填:是*/
|
||||
private String cityId;
|
||||
/*市级单位名称 是否必填:否*/
|
||||
private String cityName;
|
||||
/*母线id 是否必填:否*/
|
||||
private String busId;
|
||||
/*母线名称 是否必填:否*/
|
||||
private String busName;
|
||||
/*母线电压等级 是否必填:否*/
|
||||
private String busVoltageLevel;
|
||||
|
||||
/*监测点id 是否必填:否*/
|
||||
private String monitorId;
|
||||
|
||||
/*站内有效监测点数量(个) 是否必填:是*/
|
||||
private Integer effectiveMonitorNum;
|
||||
/*谐波电压超标天数 是否必填:否*/
|
||||
private Integer harmvOvDay;
|
||||
/*当年累计月数 是否必填:否*/
|
||||
private Integer monthsCount;
|
||||
/*月均超标天数 是否必填:否*/
|
||||
private BigDecimal monthOvDays;
|
||||
|
||||
/*统计日期 是否必填:是*/
|
||||
private String statisticalDate;
|
||||
/*统计类型 是否必填:是*/
|
||||
private String statisticalType;
|
||||
|
||||
/*统计层级 是否必填:是*/
|
||||
private String statisticalLevel;
|
||||
|
||||
|
||||
/*在运交流母线数量(条) 是否必填:是*/
|
||||
private Integer onlineAlternatingBusNum;
|
||||
/*在运换流站数量(座) 是否必填:是*/
|
||||
private Integer onlineConverterNum;
|
||||
|
||||
/*发生超标或暂态母线数量(条) 是否必填:是*/
|
||||
private Integer abnormalBusNum;
|
||||
|
||||
|
||||
/*监测换流站数量(座) 是否必填:是*/
|
||||
private Integer monitorConverterNum;
|
||||
/*监测交流母线数量(条) 是否必填:否*/
|
||||
private Integer monitorAlternatingBusNum;
|
||||
|
||||
/*累计发生超标或暂态换流站数量(座) 是否必填:否*/
|
||||
private Integer abnormalConverterCount;
|
||||
/*累计监测换流站数量(座) 是否必填:否*/
|
||||
private Integer monitorConverterCount;
|
||||
/*累计发生超标或暂态母线数量(座) 是否必填:否*/
|
||||
private Integer abnormalBusCount;
|
||||
/*累计监测交流母线数量(座) 是否必填:否*/
|
||||
private Integer monitorAlternatingBusCount;
|
||||
|
||||
|
||||
|
||||
|
||||
/*发生超标或暂态换流站数量(条) 是否必填:否*/
|
||||
private Integer abnormalConverterNum;
|
||||
|
||||
/*发生超标或暂态母线日均占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalBusAvgRate;
|
||||
|
||||
/*发生超标或暂态母线占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalBusRate;
|
||||
/*发生超标或暂态换流站日均占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalConverterAvgRate;
|
||||
|
||||
/*发生超标或暂态换流站占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalConverterRate;
|
||||
|
||||
|
||||
/*交流母线监测率(%) 是否必填:否*/
|
||||
private BigDecimal monitorAlternatingBusRate;
|
||||
|
||||
/*换流站监测率(%) 是否必填:*/
|
||||
private BigDecimal monitorConverterRate;
|
||||
|
||||
|
||||
/*奇次谐波电压限值(%) 是否必填:是*/
|
||||
private BigDecimal oddVoltLimit;
|
||||
/*累计超标天数 是否必填:否*/
|
||||
private Integer totalOvDays;
|
||||
/*11次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v11;
|
||||
/*13次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v13;
|
||||
/*23次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v23;
|
||||
/*25次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v25;
|
||||
/*3次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v3;
|
||||
/*5次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v5;
|
||||
/*7次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v7;
|
||||
|
||||
/*电压总谐波畸变率95%概率值统计值(%) 是否必填:否*/
|
||||
private BigDecimal vthd;
|
||||
/*电压总谐波畸变率95%概率值限值(%) 是否必填:是*/
|
||||
private BigDecimal vthdLimit;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.njcn.harmonic.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/12/6 15:22【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class ConverterIndexStatisticsDTO {
|
||||
|
||||
|
||||
/*主键 是否必填:是*/
|
||||
private String id;
|
||||
|
||||
/*省级单位名称 是否必填:否*/
|
||||
private String provinceName;
|
||||
/*省级单位id 是否必填:是*/
|
||||
private String provinceId;
|
||||
|
||||
/*市级单位id 是否必填:是*/
|
||||
private String cityId;
|
||||
/*市级单位名称 是否必填:否*/
|
||||
private String cityName;
|
||||
|
||||
|
||||
|
||||
/*统计日期 是否必填:是*/
|
||||
private String statisticalDate;
|
||||
/*统计类型 是否必填:是*/
|
||||
private String statisticalType;
|
||||
|
||||
/*统计层级 是否必填:是*/
|
||||
private String statisticalLevel;
|
||||
|
||||
|
||||
/*在运交流母线数量(条) 是否必填:是*/
|
||||
private Integer onlineAlternatingBusNum;
|
||||
/*在运换流站数量(座) 是否必填:是*/
|
||||
private Integer onlineConverterNum;
|
||||
|
||||
/*发生超标或暂态母线数量(条) 是否必填:是*/
|
||||
private Integer abnormalBusNum;
|
||||
|
||||
|
||||
/*监测换流站数量(座) 是否必填:是*/
|
||||
private Integer monitorConverterNum;
|
||||
/*监测交流母线数量(条) 是否必填:否*/
|
||||
private Integer monitorAlternatingBusNum;
|
||||
|
||||
/*累计发生超标或暂态换流站数量(座) 是否必填:否*/
|
||||
private Integer abnormalConverterCount;
|
||||
/*累计监测换流站数量(座) 是否必填:否*/
|
||||
private Integer monitorConverterCount;
|
||||
/*累计发生超标或暂态母线数量(座) 是否必填:否*/
|
||||
private Integer abnormalBusCount;
|
||||
/*累计监测交流母线数量(座) 是否必填:否*/
|
||||
private Integer monitorAlternatingBusCount;
|
||||
|
||||
|
||||
|
||||
|
||||
/*发生超标或暂态换流站数量(条) 是否必填:否*/
|
||||
private Integer abnormalConverterNum;
|
||||
|
||||
/*发生超标或暂态母线日均占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalBusAvgRate;
|
||||
|
||||
/*发生超标或暂态母线占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalBusRate;
|
||||
/*发生超标或暂态换流站日均占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalConverterAvgRate;
|
||||
|
||||
/*发生超标或暂态换流站占比(%) 是否必填:否*/
|
||||
private BigDecimal abnormalConverterRate;
|
||||
|
||||
|
||||
/*交流母线监测率(%) 是否必填:否*/
|
||||
private BigDecimal monitorAlternatingBusRate;
|
||||
|
||||
/*换流站监测率(%) 是否必填:*/
|
||||
private BigDecimal monitorConverterRate;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
package com.njcn.harmonic.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/12/6 15:30【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class SubstationQualityStatisticsDTO {
|
||||
/*主键 是否必填:是*/
|
||||
private String id;
|
||||
|
||||
/*统计日期 是否必填:是*/
|
||||
private String statisticalDate;
|
||||
/*统计类型 是否必填:是*/
|
||||
private String statisticalType;
|
||||
|
||||
/*省级单位id 是否必填:是*/
|
||||
private String provinceId;
|
||||
/*省级单位名称 是否必填:否*/
|
||||
private String provinceName;
|
||||
/*市级单位id 是否必填:是*/
|
||||
private String cityId;
|
||||
/*市级单位名称 是否必填:否*/
|
||||
private String cityName;
|
||||
/*县级单位id 是否必填:否*/
|
||||
private String countyId;
|
||||
/*县级单位名称 是否必填:否*/
|
||||
private String countyName;
|
||||
|
||||
/*换流站id 是否必填:是*/
|
||||
private String converterId;
|
||||
/*换流站名称 是否必填:是*/
|
||||
private String converterName;
|
||||
/*电压等级 是否必填:是*/
|
||||
private String voltageLevel;
|
||||
|
||||
/*母线id 是否必填:否*/
|
||||
private String busId;
|
||||
/*母线名称 是否必填:否*/
|
||||
private String busName;
|
||||
/*母线电压等级 是否必填:否*/
|
||||
private String busVoltageLevel;
|
||||
|
||||
/*监测点id 是否必填:否*/
|
||||
private String monitorId;
|
||||
|
||||
/*站内有效监测点数量(个) 是否必填:是*/
|
||||
private Integer effectiveMonitorNum;
|
||||
/*谐波电压超标天数 是否必填:否*/
|
||||
private Integer harmvOvDay;
|
||||
/*当年累计月数 是否必填:否*/
|
||||
private Integer monthsCount;
|
||||
/*月均超标天数 是否必填:否*/
|
||||
private BigDecimal monthOvDays;
|
||||
|
||||
/*奇次谐波电压限值(%) 是否必填:是*/
|
||||
private BigDecimal oddVoltLimit;
|
||||
/*累计超标天数 是否必填:否*/
|
||||
private Integer totalOvDays;
|
||||
/*11次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v11;
|
||||
/*13次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v13;
|
||||
/*23次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v23;
|
||||
/*25次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v25;
|
||||
/*3次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v3;
|
||||
/*5次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v5;
|
||||
/*7次谐波电压95%概率值(%) 是否必填:否*/
|
||||
private BigDecimal v7;
|
||||
|
||||
/*电压总谐波畸变率95%概率值统计值(%) 是否必填:否*/
|
||||
private BigDecimal vthd;
|
||||
/*电压总谐波畸变率95%概率值限值(%) 是否必填:是*/
|
||||
private BigDecimal vthdLimit;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -17,8 +17,8 @@ import java.math.BigDecimal;
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "substation_quality_statistics")
|
||||
public class SubstationQualityStatisticsPO {
|
||||
@TableName(value = "converter_detail_statistics")
|
||||
public class ConverterDetailStatisticsPO {
|
||||
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
private String id;
|
||||
@@ -17,8 +17,8 @@ import java.math.BigDecimal;
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "converterdetailstatistics")
|
||||
public class ConverterdetailstatisticsPO {
|
||||
@TableName(value = "converter_index_statistics")
|
||||
public class ConverterIndexStatisticsPO {
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.njcn.harmonic.utils;
|
||||
|
||||
import com.njcn.harmonic.pojo.dto.PqTypicalSourceCreateDTO;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/12/7 16:12【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public class PotoSqlUtil {
|
||||
public static String generateCreateTableSql(Class<?> entityClass) {
|
||||
StringBuilder sql = new StringBuilder("CREATE TABLE ");
|
||||
sql.append(entityClass.getSimpleName()).append(" (");
|
||||
|
||||
Field[] fields = entityClass.getDeclaredFields();
|
||||
for (int i = 0; i < fields.length; i++) {
|
||||
Field field = fields[i];
|
||||
if (!Modifier.isStatic(field.getModifiers())) {
|
||||
sql.append(field.getName()).append(" ");
|
||||
Class<?> fieldType = field.getType();
|
||||
if (fieldType == int.class || fieldType == Integer.class) {
|
||||
sql.append("INT");
|
||||
} else if (fieldType == String.class) {
|
||||
sql.append("VARCHAR(255)");
|
||||
} else if (fieldType == double.class || fieldType == Double.class) {
|
||||
sql.append("DOUBLE");
|
||||
} else if (fieldType == float.class || fieldType == Float.class) {
|
||||
sql.append("FLOAT");
|
||||
} else if (fieldType == boolean.class || fieldType == Boolean.class) {
|
||||
sql.append("BOOLEAN");
|
||||
} else if (fieldType == java.util.Date.class) {
|
||||
sql.append("DATE");
|
||||
} else if (fieldType == java.math.BigDecimal.class) {
|
||||
sql.append("decimal");
|
||||
}
|
||||
else {
|
||||
// 其他类型暂不支持,可以根据需要添加
|
||||
continue;
|
||||
}
|
||||
|
||||
if (i < fields.length - 1) {
|
||||
sql.append(", ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sql.append(");");
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String createTableSql = generateCreateTableSql(PqTypicalSourceCreateDTO.class);
|
||||
System.out.println(createTableSql);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user