1.pom版本控制
2.发射特性和影响特性算法
This commit is contained in:
@@ -21,32 +21,22 @@
|
||||
<dependencies>
|
||||
|
||||
<!--pq-device-boot和pms-device-boot只能选择一个-->
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>pq-device-boot</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.njcn</groupId>-->
|
||||
<!-- <artifactId>pq-device-boot</artifactId>-->
|
||||
<!-- <version>${project.version}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>pms-device-boot</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>-->
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>common-swagger</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>4.9.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>logging-interceptor</artifactId>
|
||||
<version>4.9.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.njcn.device.pms.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -20,6 +21,7 @@ public class RMpMonitorAlarmCountM implements Serializable {
|
||||
/**
|
||||
* 单位ID
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String orgNo;
|
||||
|
||||
/**
|
||||
|
||||
@@ -168,6 +168,14 @@
|
||||
pm.Line_Name
|
||||
FROM
|
||||
pms_monitor AS pm
|
||||
<where>
|
||||
<if test="pwPmsMonitorParam.monitorTag!=null and pwPmsMonitorParam.monitorTag.size()!=0">
|
||||
AND pm.Monitor_Tag IN
|
||||
<foreach collection="pwPmsMonitorParam.monitorTag" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
) UNION ALL
|
||||
(
|
||||
SELECT
|
||||
|
||||
@@ -224,56 +224,21 @@
|
||||
</select>
|
||||
<select id="selectListAll" resultType="com.njcn.device.pms.pojo.vo.DistributionMonitorVO">
|
||||
SELECT
|
||||
t.org_id as orgNo,
|
||||
b.org_id as orgNo,
|
||||
pss.Longitude as longitude,
|
||||
pss.Latitude as latitude,
|
||||
b.Status ,
|
||||
b.*
|
||||
FROM
|
||||
(
|
||||
( SELECT id,org_id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_client
|
||||
pms_distribution_monitor b
|
||||
LEFT JOIN pms_statation_stat pss on b.Power_Station_Id=pss.Power_Id
|
||||
<where>
|
||||
org_id IN
|
||||
b.org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND STATUS = 1
|
||||
AND b.STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id,org_id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_generation_user
|
||||
<where>
|
||||
|
||||
org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id,org_id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_distributionarea
|
||||
<where>
|
||||
|
||||
org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
) UNION ALL
|
||||
( SELECT id,org_id, Operation_Id, Powerr_Id, Line_Id FROM pms_monitor
|
||||
<where>
|
||||
|
||||
org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
)
|
||||
) t
|
||||
INNER JOIN pms_distribution_monitor b ON t.id = b.Monitor_Id and b.Status=1
|
||||
LEFT JOIN pms_statation_stat pss on t.Power_Station_Id=pss.Power_Id
|
||||
</select>
|
||||
<select id="selectPhotovoltaicUser" resultType="com.njcn.device.pms.pojo.vo.OverviewVO$PhotoVoltaicVoltage">
|
||||
(select
|
||||
|
||||
@@ -119,6 +119,9 @@ public class IPwMonitorServiceImpl implements IPwMonitorService {
|
||||
.map(DeptDTO::getCode)
|
||||
.distinct()
|
||||
.collect(Collectors.toList());
|
||||
//获取分布式光伏字典id
|
||||
DictData data = dicDataFeignClient.getDicDataByCode(DicDataEnum.DISTRIBUTED_PHOTOVOLTAICS.getCode()).getData();
|
||||
pwPmsMonitorParam.setMonitorTag(Arrays.asList(data.getId()));
|
||||
//获取monitor详细数据
|
||||
return pwMonitorMapper.getPwPhotovoltaicMonitorList(deptIdList, pwPmsMonitorParam);
|
||||
|
||||
|
||||
@@ -142,10 +142,13 @@ public class OverviewServiceImpl implements OverviewService {
|
||||
|
||||
//数据 key:监测点类别 value:数量
|
||||
Map<String, Long> map = distributionMonitors.stream().collect(Collectors.groupingBy(dm -> dm.getMonitorSort(), Collectors.counting()));
|
||||
//获取监测点id
|
||||
List<String> ids = distributionMonitors.stream().map(DistributionMonitorVO::getMonitorId).collect(Collectors.toList());
|
||||
|
||||
|
||||
//获取数据库数据
|
||||
List<RMpMonitorAlarmCountM> list = rMpMonitorAlarmCountMService.list(new LambdaQueryWrapper<RMpMonitorAlarmCountM>()
|
||||
.in(RMpMonitorAlarmCountM::getOrgNo, deptListCode)
|
||||
.in(RMpMonitorAlarmCountM::getMeasurementPointId, ids)
|
||||
.eq(RMpMonitorAlarmCountM::getDataType,data.getId())
|
||||
.ge(StringUtils.isNotBlank(param.getStartTime()), RMpMonitorAlarmCountM::getDataDate, param.getStartTime())
|
||||
.le(StringUtils.isNotBlank(param.getEndTime()), RMpMonitorAlarmCountM::getDataDate, param.getEndTime())
|
||||
|
||||
Reference in New Issue
Block a user