pms算法调整
This commit is contained in:
@@ -11,6 +11,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
*/
|
||||
public interface RStatDevSignalDMapper extends BaseMapper<RStatDevSignalD> {
|
||||
|
||||
/**
|
||||
* 获取最新的装置状态
|
||||
* @author cdf
|
||||
* @date 2023/9/28
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class PollutionLineDTO {
|
||||
private String busBar;
|
||||
|
||||
@ApiModelProperty("数据")
|
||||
private Double data = -1.0;
|
||||
private Double data = 3.14159;
|
||||
|
||||
@Data
|
||||
public static class PVPollution extends PollutionLineDTO{
|
||||
|
||||
@@ -25,6 +25,6 @@ public class PollutionSubstationDTO {
|
||||
private String voltageLevel;
|
||||
|
||||
@ApiModelProperty("数据")
|
||||
private Double data = -1.0;
|
||||
private Double data = 3.14159;
|
||||
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ import java.util.Date;
|
||||
@TableName(value = "r_operating_index_d")
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Deprecated
|
||||
public class ROperatingIndexDPO {
|
||||
/**
|
||||
* 单位ID
|
||||
|
||||
@@ -45,7 +45,7 @@ public class PollutionSubstationVO {
|
||||
private String pollutionStatis;
|
||||
|
||||
@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
|
||||
org_no,
|
||||
effective_measurement_accrued as allCount,
|
||||
freq_pass_rate,
|
||||
v_dev_pass_rate,
|
||||
flicker_pass_rate
|
||||
sum(effective_measurement_accrued) as allCount,
|
||||
avg(freq_pass_rate) freq_pass_rate,
|
||||
avg(v_dev_pass_rate) v_dev_pass_rate,
|
||||
avg(flicker_pass_rate) flicker_pass_rate
|
||||
from
|
||||
r_stat_org_m rso
|
||||
<where>
|
||||
@@ -170,6 +170,7 @@
|
||||
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
||||
AND rso.data_date <= #{param.endTime}
|
||||
</if>
|
||||
group by org_no
|
||||
</where>
|
||||
</select>
|
||||
<select id="getPwMonthRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
||||
|
||||
@@ -148,11 +148,11 @@
|
||||
</select>
|
||||
<select id="getQuarterRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
||||
select
|
||||
org_no,
|
||||
effective_measurement_accrued as allCount,
|
||||
freq_pass_rate,
|
||||
v_dev_pass_rate,
|
||||
flicker_pass_rate
|
||||
org_no,
|
||||
sum(effective_measurement_accrued) as allCount,
|
||||
avg(freq_pass_rate) freq_pass_rate,
|
||||
avg(v_dev_pass_rate) v_dev_pass_rate,
|
||||
avg(flicker_pass_rate) flicker_pass_rate
|
||||
from
|
||||
r_stat_org_q rso
|
||||
<where>
|
||||
@@ -169,6 +169,7 @@
|
||||
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
||||
AND rso.data_date <= #{param.endTime}
|
||||
</if>
|
||||
group by org_no
|
||||
</where>
|
||||
</select>
|
||||
<select id="getPwQuarterRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
||||
|
||||
@@ -149,11 +149,11 @@
|
||||
</select>
|
||||
<select id="getYearRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.RStatOrgIndexVO$RStatOrgIndexInfoVO">
|
||||
select
|
||||
org_no,
|
||||
effective_measurement_accrued as allCount,
|
||||
freq_pass_rate,
|
||||
v_dev_pass_rate,
|
||||
flicker_pass_rate
|
||||
org_no,
|
||||
sum(effective_measurement_accrued) as allCount,
|
||||
avg(freq_pass_rate) freq_pass_rate,
|
||||
avg(v_dev_pass_rate) v_dev_pass_rate,
|
||||
avg(flicker_pass_rate) flicker_pass_rate
|
||||
from
|
||||
r_stat_org_y rso
|
||||
<where>
|
||||
@@ -170,6 +170,7 @@
|
||||
<if test="param!=null and param.endTime != null and param.endTime != ''">
|
||||
AND rso.data_date <= #{param.endTime}
|
||||
</if>
|
||||
group by org_no
|
||||
</where>
|
||||
</select>
|
||||
<select id="getPwYearRStatOrgIndex" resultType="com.njcn.harmonic.pojo.vo.PwRStatOrgVO">
|
||||
|
||||
@@ -184,15 +184,15 @@ public class PollutionSubstationServiceImpl extends ServiceImpl<RStatPollutionSu
|
||||
//获取统计类型
|
||||
pmsDeviceInfoParam.setStatisticalType(harmonicPublicParam.getStatisticalType());
|
||||
//获取主网台账信息
|
||||
List<PmsGeneralDeviceDTO> deviceList = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData();
|
||||
deviceList.forEach(temp -> {
|
||||
List<PmsGeneralDeviceDTO> orgList = pmsGeneralDeviceInfoClient.getPmsDeviceInfoWithInOrg(pmsDeviceInfoParam).getData();
|
||||
orgList.forEach(temp -> {
|
||||
PollutionVO pollutionVO = new PollutionVO ();
|
||||
String detpid = temp.getIndex ();
|
||||
String name =temp.getName ();
|
||||
List<String> powers = temp.getPowerrIdList ( );
|
||||
pollutionVO.setId (detpid);
|
||||
pollutionVO.setName (name+"\n("+temp.getMonitorIdList().size()+")");
|
||||
pollutionVO.setData (-1.0);
|
||||
pollutionVO.setData (3.14159);
|
||||
setData(harmonicPublicParam, pollutionType, searchBeginTime,harmonicPublicParam.getSearchEndTime(), pollutionVO, detpid);
|
||||
if(CollectionUtil.isNotEmpty(powers)) {
|
||||
//子集变电站
|
||||
|
||||
Reference in New Issue
Block a user