From 7bc2fe684ba3b31b5d8e7350562cdb4dabf3e5cd Mon Sep 17 00:00:00 2001 From: xuyang <748613696@qq.com> Date: Thu, 15 Jun 2023 09:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/njcn/oss/constant/OssPath.java | 5 +++ .../influx/pojo/dto/StatisticalDataDTO.java | 2 ++ .../system/pojo/param/EleEpdPqdParam.java | 9 +++-- .../service/impl/EleEpdPqdServiceImpl.java | 36 +++++++++++++++---- 4 files changed, 42 insertions(+), 10 deletions(-) diff --git a/pqs-common/common-oss/src/main/java/com/njcn/oss/constant/OssPath.java b/pqs-common/common-oss/src/main/java/com/njcn/oss/constant/OssPath.java index c4a105c57..62a77bc4d 100644 --- a/pqs-common/common-oss/src/main/java/com/njcn/oss/constant/OssPath.java +++ b/pqs-common/common-oss/src/main/java/com/njcn/oss/constant/OssPath.java @@ -82,4 +82,9 @@ public interface OssPath { * 日志文件 */ String LOGBAK = "logbak/"; + + /*** + * 组态图元 + */ + String ELEMENT = "element/"; } diff --git a/pqs-influx/src/main/java/com/njcn/influx/pojo/dto/StatisticalDataDTO.java b/pqs-influx/src/main/java/com/njcn/influx/pojo/dto/StatisticalDataDTO.java index fd6008fb1..377b0cd53 100644 --- a/pqs-influx/src/main/java/com/njcn/influx/pojo/dto/StatisticalDataDTO.java +++ b/pqs-influx/src/main/java/com/njcn/influx/pojo/dto/StatisticalDataDTO.java @@ -36,5 +36,7 @@ public class StatisticalDataDTO { private String statisticalName; + private String target; + } diff --git a/pqs-system/system-api/src/main/java/com/njcn/system/pojo/param/EleEpdPqdParam.java b/pqs-system/system-api/src/main/java/com/njcn/system/pojo/param/EleEpdPqdParam.java index f658df7cf..8b4d68661 100644 --- a/pqs-system/system-api/src/main/java/com/njcn/system/pojo/param/EleEpdPqdParam.java +++ b/pqs-system/system-api/src/main/java/com/njcn/system/pojo/param/EleEpdPqdParam.java @@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; +import java.util.List; /** * 类的介绍: @@ -36,7 +37,6 @@ public class EleEpdPqdParam { private String type; @ApiModelProperty(value = "相别") - @NotBlank(message="相别不能为空!") private String phase; @ApiModelProperty(value = "单位") @@ -53,7 +53,7 @@ public class EleEpdPqdParam { private String classId; @ApiModelProperty(value = "数据统计方法") - private String statMethod; + private List statMethod; @ApiModelProperty(value = "系统类别") private String systemType; @@ -113,7 +113,10 @@ public class EleEpdPqdParam { @EqualsAndHashCode(callSuper = true) public static class EleEpdPqdQueryParam extends BaseParam { @ApiModelProperty("dataType") - private String dataType; + private List dataType; + + @ApiModelProperty("classId") + private List classId; } } diff --git a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/EleEpdPqdServiceImpl.java b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/EleEpdPqdServiceImpl.java index 1858c02c1..9e43d0e72 100644 --- a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/EleEpdPqdServiceImpl.java +++ b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/EleEpdPqdServiceImpl.java @@ -1,5 +1,6 @@ package com.njcn.system.service.impl; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -20,13 +21,12 @@ import com.njcn.system.service.IEleEpdPqdService; import com.njcn.web.factory.PageFactory; import lombok.RequiredArgsConstructor; import org.apache.commons.lang.StringUtils; +import org.apache.logging.log4j.util.Strings; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.stream.Collectors; /** @@ -62,6 +62,15 @@ public class EleEpdPqdServiceImpl extends ServiceImpl(PageFactory.getPageNum(queryParam), PageFactory.getPageSize(queryParam)), queryWrapper); @@ -171,7 +192,8 @@ public class EleEpdPqdServiceImpl extends ServiceImpl