pms算法调整
This commit is contained in:
@@ -11,6 +11,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
*/
|
*/
|
||||||
public interface RStatDevSignalDMapper extends BaseMapper<RStatDevSignalD> {
|
public interface RStatDevSignalDMapper extends BaseMapper<RStatDevSignalD> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取最新的装置状态
|
||||||
|
* @author cdf
|
||||||
|
* @date 2023/9/28
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class PollutionLineDTO {
|
|||||||
private String busBar;
|
private String busBar;
|
||||||
|
|
||||||
@ApiModelProperty("数据")
|
@ApiModelProperty("数据")
|
||||||
private Double data = -1.0;
|
private Double data = 3.14159;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public static class PVPollution extends PollutionLineDTO{
|
public static class PVPollution extends PollutionLineDTO{
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ public class PollutionSubstationDTO {
|
|||||||
private String voltageLevel;
|
private String voltageLevel;
|
||||||
|
|
||||||
@ApiModelProperty("数据")
|
@ApiModelProperty("数据")
|
||||||
private Double data = -1.0;
|
private Double data = 3.14159;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import lombok.NoArgsConstructor;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||||
* Date: 2022/11/25 10:01【需求编号】
|
* Date: 2022/11/25 10:01【需求编号】
|
||||||
@@ -20,12 +20,13 @@ import java.util.Date;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主网运行指标统计-月表,主网监测指标数据质量统计-月表
|
* 主网运行指标统计-月表,主网监测指标数据质量统计-月表
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName(value = "r_operating_index_d")
|
@TableName(value = "r_operating_index_d")
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@Deprecated
|
||||||
public class ROperatingIndexDPO {
|
public class ROperatingIndexDPO {
|
||||||
/**
|
/**
|
||||||
* 单位ID
|
* 单位ID
|
||||||
@@ -104,4 +105,4 @@ public class ROperatingIndexDPO {
|
|||||||
*/
|
*/
|
||||||
@TableField(value = "is_unusual")
|
@TableField(value = "is_unusual")
|
||||||
private Integer isUnusual;
|
private Integer isUnusual;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class PollutionSubstationVO {
|
|||||||
private String pollutionStatis;
|
private String pollutionStatis;
|
||||||
|
|
||||||
@ApiModelProperty("污染指标值")
|
@ApiModelProperty("污染指标值")
|
||||||
private Double pollutionData = -1.0;
|
private Double pollutionData = 3.14159;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,10 +150,10 @@
|
|||||||
<select id="getMonthRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
<select id="getMonthRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
||||||
select
|
select
|
||||||
org_no,
|
org_no,
|
||||||
effective_measurement_accrued as allCount,
|
sum(effective_measurement_accrued) as allCount,
|
||||||
freq_pass_rate,
|
avg(freq_pass_rate) freq_pass_rate,
|
||||||
v_dev_pass_rate,
|
avg(v_dev_pass_rate) v_dev_pass_rate,
|
||||||
flicker_pass_rate
|
avg(flicker_pass_rate) flicker_pass_rate
|
||||||
from
|
from
|
||||||
r_stat_org_m rso
|
r_stat_org_m rso
|
||||||
<where>
|
<where>
|
||||||
@@ -170,6 +170,7 @@
|
|||||||
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
||||||
AND rso.data_date <= #{param.endTime}
|
AND rso.data_date <= #{param.endTime}
|
||||||
</if>
|
</if>
|
||||||
|
group by org_no
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="getPwMonthRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
<select id="getPwMonthRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
||||||
|
|||||||
@@ -148,11 +148,11 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="getQuarterRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
<select id="getQuarterRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
||||||
select
|
select
|
||||||
org_no,
|
org_no,
|
||||||
effective_measurement_accrued as allCount,
|
sum(effective_measurement_accrued) as allCount,
|
||||||
freq_pass_rate,
|
avg(freq_pass_rate) freq_pass_rate,
|
||||||
v_dev_pass_rate,
|
avg(v_dev_pass_rate) v_dev_pass_rate,
|
||||||
flicker_pass_rate
|
avg(flicker_pass_rate) flicker_pass_rate
|
||||||
from
|
from
|
||||||
r_stat_org_q rso
|
r_stat_org_q rso
|
||||||
<where>
|
<where>
|
||||||
@@ -169,6 +169,7 @@
|
|||||||
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
||||||
AND rso.data_date <= #{param.endTime}
|
AND rso.data_date <= #{param.endTime}
|
||||||
</if>
|
</if>
|
||||||
|
group by org_no
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="getPwQuarterRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
<select id="getPwQuarterRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
||||||
|
|||||||
@@ -149,11 +149,11 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="getYearRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
<select id="getYearRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
||||||
select
|
select
|
||||||
org_no,
|
org_no,
|
||||||
effective_measurement_accrued as allCount,
|
sum(effective_measurement_accrued) as allCount,
|
||||||
freq_pass_rate,
|
avg(freq_pass_rate) freq_pass_rate,
|
||||||
v_dev_pass_rate,
|
avg(v_dev_pass_rate) v_dev_pass_rate,
|
||||||
flicker_pass_rate
|
avg(flicker_pass_rate) flicker_pass_rate
|
||||||
from
|
from
|
||||||
r_stat_org_y rso
|
r_stat_org_y rso
|
||||||
<where>
|
<where>
|
||||||
@@ -170,6 +170,7 @@
|
|||||||
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
||||||
AND rso.data_date <= #{param.endTime}
|
AND rso.data_date <= #{param.endTime}
|
||||||
</if>
|
</if>
|
||||||
|
group by org_no
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="getPwYearRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
<select id="getPwYearRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
||||||
|
|||||||
@@ -184,15 +184,15 @@ public class PollutionSubstationServiceImpl extends ServiceImpl<RStatPollutionSu
|
|||||||
//获取统计类型
|
//获取统计类型
|
||||||
pmsDeviceInfoParam.setStatisticalType(harmonicPublicParam.getStatisticalType());
|
pmsDeviceInfoParam.setStatisticalType(harmonicPublicParam.getStatisticalType());
|
||||||
//获取主网台账信息
|
//获取主网台账信息
|
||||||
List<PmsGeneralDeviceDTO> deviceList = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData();
|
List<PmsGeneralDeviceDTO> orgList = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData();
|
||||||
deviceList.forEach(temp -> {
|
orgList.forEach(temp -> {
|
||||||
PollutionVO pollutionVO = new PollutionVO ();
|
PollutionVO pollutionVO = new PollutionVO ();
|
||||||
String detpid = temp.getIndex ();
|
String detpid = temp.getIndex ();
|
||||||
String name =temp.getName ();
|
String name =temp.getName ();
|
||||||
List<String> powers = temp.getPowerrIdList ( );
|
List<String> powers = temp.getPowerrIdList ( );
|
||||||
pollutionVO.setId (detpid);
|
pollutionVO.setId (detpid);
|
||||||
pollutionVO.setName (name+"\n("+temp.getMonitorIdList().size()+")");
|
pollutionVO.setName (name+"\n("+temp.getMonitorIdList().size()+")");
|
||||||
pollutionVO.setData (-1.0);
|
pollutionVO.setData (3.14159);
|
||||||
setData(harmonicPublicParam, pollutionType, searchBeginTime,harmonicPublicParam.getSearchEndTime(), pollutionVO, detpid);
|
setData(harmonicPublicParam, pollutionType, searchBeginTime,harmonicPublicParam.getSearchEndTime(), pollutionVO, detpid);
|
||||||
if(CollectionUtil.isNotEmpty(powers)) {
|
if(CollectionUtil.isNotEmpty(powers)) {
|
||||||
//子集变电站
|
//子集变电站
|
||||||
|
|||||||
Reference in New Issue
Block a user