监测点评价_日统计接口开发
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
package com.njcn.prepare.harmonic.pojo.mysql;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/19 15:42【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
/**
|
||||
* 监测点评价表
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "r_mp_monitor_evaluate_d")
|
||||
public class RMpMonitorEvaluateDPO {
|
||||
@MppMultiId(value = "time_id")
|
||||
@ApiModelProperty(value="")
|
||||
private Date timeId;
|
||||
|
||||
/**
|
||||
* 监测点Id
|
||||
*/
|
||||
@MppMultiId(value = "measurement_point_id")
|
||||
private String measurementPointId;
|
||||
|
||||
/**
|
||||
* 总接入分钟数
|
||||
*/
|
||||
@TableField(value = "all_minute_count")
|
||||
private Integer allMinuteCount;
|
||||
|
||||
/**
|
||||
* 有效接入分钟数
|
||||
*/
|
||||
@TableField(value = "effective_minute_count")
|
||||
private Integer effectiveMinuteCount;
|
||||
|
||||
/**
|
||||
* 频率平均值指标数据个数
|
||||
*/
|
||||
@TableField(value = "freq_count")
|
||||
private Integer freqCount;
|
||||
|
||||
/**
|
||||
* 相电压有效值平均值指标数据个数
|
||||
*/
|
||||
@TableField(value = "phase_voltage_count")
|
||||
private Integer phaseVoltageCount;
|
||||
|
||||
/**
|
||||
* 线电压有效值平均值指标数据个数
|
||||
*/
|
||||
@TableField(value = "line_voltage_count")
|
||||
private Integer lineVoltageCount;
|
||||
|
||||
/**
|
||||
* 电压总谐波畸变率平均值指标数据个数
|
||||
*/
|
||||
@TableField(value = "v_thd_count")
|
||||
private Integer vThdCount;
|
||||
|
||||
/**
|
||||
* 三相电压不平衡度平均值指标数据个数
|
||||
*/
|
||||
@TableField(value = "unbalance_count")
|
||||
private Integer unbalanceCount;
|
||||
|
||||
/**
|
||||
* 监测点短时闪变、电压波动类指标数据个数
|
||||
*/
|
||||
@TableField(value = "pst_count")
|
||||
private Integer pstCount;
|
||||
|
||||
/**
|
||||
* 长时闪变数据个数
|
||||
*/
|
||||
@TableField(value = "plt_count")
|
||||
private Integer pltCount;
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import java.util.Date;
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "PQ_LINEDETAIL")
|
||||
public class PqLinedetailPO {
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.njcn.prepare.harmonic.utils;
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.njcn.device.pq.constant.Param;
|
||||
import com.njcn.system.pojo.po.DictData;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
@@ -124,5 +125,20 @@ public class PublicUtil {
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 根据电压字典获取电压等级
|
||||
* @Param: [id, dictDataList]
|
||||
* @return: java.lang.Double
|
||||
* @Author: clam
|
||||
* @Date: 2023/2/23
|
||||
*/
|
||||
public static Double getVoltage(String id, List<DictData> dictDataList) {
|
||||
for (DictData dictData : dictDataList) {
|
||||
if (dictData.getId ( ).equals (id)) {
|
||||
Double result = Double.valueOf (dictData.getValue ( ));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user