From 865b70121c29b7944b1c1b68a6569a2211606dd4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=AE=B5=E9=A3=9E=E5=AE=87?= <2684146481@qq.com>
Date: Tue, 29 Aug 2023 15:21:34 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BAwater-quality=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hzims-service-api/pom.xml | 1 +
hzims-service-api/water-quality-api/pom.xml | 20 ++
.../hnac/hzims/waterquality/entity/WqConfigD.java | 24 ++
.../hnac/hzims/waterquality/entity/WqWfrinfB.java | 54 +++
.../hnac/hzims/waterquality/entity/WqWqsinfB.java | 59 +++
.../hnac/hzims/waterquality/entity/WqWrrinfB.java | 22 ++
.../hzims/waterquality/feign/IWqWqsinfBClient.java | 50 +++
.../hnac/hzims/waterquality/vo/WqWqsinfBVo.java | 7 +
hzims-service/pom.xml | 1 +
hzims-service/water-quality/pom.xml | 68 ++++
.../waterquality/WaterQualityApplication.java | 51 +++
.../controller/WqConfigDController.java | 125 +++++++
.../controller/WqDealDataController.java | 179 ++++++++++
.../controller/WqWfrinfBController.java | 128 +++++++
.../controller/WqWqsinfBController.java | 151 ++++++++
.../controller/WqWrrinfBController.java | 128 +++++++
.../hzims/waterquality/mapper/WqConfigDMapper.java | 12 +
.../hzims/waterquality/mapper/WqConfigDMapper.xml | 10 +
.../hzims/waterquality/mapper/WqWfrinfBMapper.java | 8 +
.../hzims/waterquality/mapper/WqWfrinfBMapper.xml | 5 +
.../hzims/waterquality/mapper/WqWqsinfBMapper.java | 30 ++
.../hzims/waterquality/mapper/WqWqsinfBMapper.xml | 5 +
.../hzims/waterquality/mapper/WqWrrinfBMapper.java | 8 +
.../hzims/waterquality/mapper/WqWrrinfBMapper.xml | 5 +
.../waterquality/service/IWqConfigDService.java | 21 ++
.../waterquality/service/IWqDealDataService.java | 20 ++
.../waterquality/service/IWqWfrinfBService.java | 9 +
.../waterquality/service/IWqWqsinfBService.java | 30 ++
.../waterquality/service/IWqWrrinfBService.java | 8 +
.../service/impl/WqConfigDServiceImpl.java | 48 +++
.../service/impl/WqDealDataServiceImpl.java | 397 +++++++++++++++++++++
.../service/impl/WqWfrinfBServiceImpl.java | 13 +
.../service/impl/WqWqsinfBServiceServiceImpl.java | 34 ++
.../service/impl/WqWrrinfBServiceImpl.java | 13 +
.../hnac/hzims/waterquality/util/ParamUtil.java | 54 +++
.../waterquality/wrapper/WqWqsinfBWrapper.java | 26 ++
.../src/main/resources/application-dev.yml | 30 ++
.../src/main/resources/application-prod.yml | 28 ++
.../src/main/resources/application-test.yml | 28 ++
.../src/main/resources/application.yml | 13 +
40 files changed, 1923 insertions(+)
create mode 100644 hzims-service-api/water-quality-api/pom.xml
create mode 100644 hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqConfigD.java
create mode 100644 hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWfrinfB.java
create mode 100644 hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWqsinfB.java
create mode 100644 hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWrrinfB.java
create mode 100644 hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/feign/IWqWqsinfBClient.java
create mode 100644 hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/vo/WqWqsinfBVo.java
create mode 100644 hzims-service/water-quality/pom.xml
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/WaterQualityApplication.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqConfigDController.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqDealDataController.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqWfrinfBController.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqWqsinfBController.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqWrrinfBController.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqConfigDMapper.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqConfigDMapper.xml
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqWfrinfBMapper.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqWfrinfBMapper.xml
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqWqsinfBMapper.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqWqsinfBMapper.xml
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqWrrinfBMapper.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/mapper/WqWrrinfBMapper.xml
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/IWqConfigDService.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/IWqDealDataService.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/IWqWfrinfBService.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/IWqWqsinfBService.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/IWqWrrinfBService.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/impl/WqConfigDServiceImpl.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/impl/WqDealDataServiceImpl.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/impl/WqWfrinfBServiceImpl.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/impl/WqWqsinfBServiceServiceImpl.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/service/impl/WqWrrinfBServiceImpl.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/util/ParamUtil.java
create mode 100644 hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/wrapper/WqWqsinfBWrapper.java
create mode 100644 hzims-service/water-quality/src/main/resources/application-dev.yml
create mode 100644 hzims-service/water-quality/src/main/resources/application-prod.yml
create mode 100644 hzims-service/water-quality/src/main/resources/application-test.yml
create mode 100644 hzims-service/water-quality/src/main/resources/application.yml
diff --git a/hzims-service-api/pom.xml b/hzims-service-api/pom.xml
index 62171b4..8fcd395 100644
--- a/hzims-service-api/pom.xml
+++ b/hzims-service-api/pom.xml
@@ -31,6 +31,7 @@
digital-twin-display-api
dam-safety-api
video-image-api
+ water-quality-api
diff --git a/hzims-service-api/water-quality-api/pom.xml b/hzims-service-api/water-quality-api/pom.xml
new file mode 100644
index 0000000..c203bd2
--- /dev/null
+++ b/hzims-service-api/water-quality-api/pom.xml
@@ -0,0 +1,20 @@
+
+
+ 4.0.0
+
+ com.hnac.hzims
+ hzims-service-api
+ 4.0.0-SNAPSHOT
+
+
+ water-quality-api
+
+
+ 8
+ 8
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqConfigD.java b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqConfigD.java
new file mode 100644
index 0000000..c69e21a
--- /dev/null
+++ b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqConfigD.java
@@ -0,0 +1,24 @@
+package com.hnac.hzims.waterquality.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ *水质监测指标配置
+ */
+@Data
+@TableName("wq_config_d")
+public class WqConfigD implements Serializable {
+ @ApiModelProperty("测站编码")
+ @TableId(type=IdType.INPUT)
+ private String stcd;
+ @ApiModelProperty("指标类型")
+ private String type;
+ @ApiModelProperty("指标值")
+ private String value;
+}
diff --git a/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWfrinfB.java b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWfrinfB.java
new file mode 100644
index 0000000..6cd688b
--- /dev/null
+++ b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWfrinfB.java
@@ -0,0 +1,54 @@
+package com.hnac.hzims.waterquality.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.springblade.core.mp.base.BaseEntity;
+
+
+/**
+ *水功能区基本信息
+ */
+@Data
+@TableName("wq_wfrinf_b")
+@EqualsAndHashCode(callSuper = true)
+public class WqWfrinfB extends BaseEntity {
+ @ApiModelProperty("水功能区代码")
+ private String wfrcd;
+ @ApiModelProperty("水功能区名称")
+ private String wfrnm;
+ @ApiModelProperty("流域名称")
+ private String bsnm;
+ @ApiModelProperty("水系名称")
+ private String hnnm;
+ @ApiModelProperty("河流名称")
+ private String rvnm;
+ @ApiModelProperty("水功能区起始断面名称")
+ private String wfrscsnm;
+ @ApiModelProperty("水功能区起始断面经度")
+ private Double wfrscslgtd;
+ @ApiModelProperty("水功能区起始断面纬度")
+ private Double wfrscslttd;
+ @ApiModelProperty("水功能区终止断面名称")
+ private String wfrecsnm;
+ @ApiModelProperty("水功能区终止断面经度")
+ private Double wfrecslgtd;
+ @ApiModelProperty("水功能区终止断面纬度")
+ private Double wfrecslttd;
+
+ @ApiModelProperty("行政区划码")
+ private String addvcd;
+ @ApiModelProperty("水功能区长度")
+ private Double wfrln;
+ @ApiModelProperty("水功能区库容")
+ private Double wfrrc;
+ @ApiModelProperty("水功能区面积")
+ private Double wfrar;
+ @ApiModelProperty("水功能区水质目标")
+ private String wfrwqt;
+ @ApiModelProperty("水功能区功能排序")
+ private String wfrwfo;
+ @ApiModelProperty("备注")
+ private String nt;
+}
diff --git a/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWqsinfB.java b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWqsinfB.java
new file mode 100644
index 0000000..96c7c70
--- /dev/null
+++ b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWqsinfB.java
@@ -0,0 +1,59 @@
+package com.hnac.hzims.waterquality.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.springblade.core.mp.base.BaseEntity;
+
+import java.util.Date;
+
+/**
+ *水质监测站
+ */
+@Data
+@TableName("wq_wqsinf_b")
+@EqualsAndHashCode(callSuper = true)
+public class WqWqsinfB extends BaseEntity {
+ @ApiModelProperty("测站编码")
+ private String stcd;
+ @ApiModelProperty("测站名称")
+ private String stnm;
+ @ApiModelProperty("测站等级")
+ private String stgrd;
+ @ApiModelProperty("流域名称")
+ private String bsnm;
+ @ApiModelProperty("水系名称")
+ private String hnnm;
+ @ApiModelProperty("河流名称")
+ private String rvnm;
+ @ApiModelProperty("经度")
+ private Double lgtd;
+ @ApiModelProperty("纬度")
+ private Double lttd;
+ @ApiModelProperty("站址")
+ private String stlc;
+ @ApiModelProperty("行政区划码")
+ private String addvcd;
+ @ApiModelProperty("水资源分区码")
+ private String wrrcd;
+ @ApiModelProperty("水功能区划码")
+ private String wfrcd;
+ @ApiModelProperty("管理单位")
+ private String adag;
+ @ApiModelProperty("监测单位")
+ private String mnag;
+ @ApiModelProperty("监测频次")
+ private Integer mnfrq;
+ @ApiModelProperty("自动监测")
+ private Integer atmn;
+ @ApiModelProperty("建站年月")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ private Date esstym;
+ @ApiModelProperty("撤站年月")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ private Date wdstym;
+ @ApiModelProperty("备注")
+ private String nt;
+}
diff --git a/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWrrinfB.java b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWrrinfB.java
new file mode 100644
index 0000000..b09563b
--- /dev/null
+++ b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/entity/WqWrrinfB.java
@@ -0,0 +1,22 @@
+package com.hnac.hzims.waterquality.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springblade.core.mp.base.BaseEntity;
+
+
+/**
+ * 水资源分区基本信息
+ */
+@Data
+@TableName("wq_wrrinf_b")
+public class WqWrrinfB extends BaseEntity {
+ @ApiModelProperty("水资源分区码")
+ private String wrrcd;
+ @ApiModelProperty("水资源分区名称")
+ private String wrrnm;
+ @ApiModelProperty("水资源分区面积")
+ private Double wrr5r;
+
+}
diff --git a/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/feign/IWqWqsinfBClient.java b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/feign/IWqWqsinfBClient.java
new file mode 100644
index 0000000..a80f5c4
--- /dev/null
+++ b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/feign/IWqWqsinfBClient.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright Example,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * Example, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.hnac.hzims.waterquality.feign;
+
+import com.hnac.hzims.waterquality.vo.WqWqsinfBVo;
+import org.springblade.core.launch.constant.AppConstant;
+import org.springblade.core.tool.api.R;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.util.List;
+
+/**
+ * Example Feign接口类
+ *
+ * @author Chill
+ */
+@FeignClient(
+ value = AppConstant.APPLICATION_DESK_NAME
+)
+public interface IWqWqsinfBClient {
+
+ String API_PREFIX = "/wqWqsinfBClient";
+ String LIST = API_PREFIX + "/list";
+
+ /**
+ * 获取Example列表
+ *
+ * @param number
+ * @return
+ */
+ @GetMapping(LIST)
+ R> list(@RequestParam("number") Integer number);
+
+}
diff --git a/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/vo/WqWqsinfBVo.java b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/vo/WqWqsinfBVo.java
new file mode 100644
index 0000000..9d05b72
--- /dev/null
+++ b/hzims-service-api/water-quality-api/src/main/java/com/hnac/hzims/waterquality/vo/WqWqsinfBVo.java
@@ -0,0 +1,7 @@
+package com.hnac.hzims.waterquality.vo;
+
+
+import com.hnac.hzims.waterquality.entity.WqWqsinfB;
+
+public class WqWqsinfBVo extends WqWqsinfB {
+}
diff --git a/hzims-service/pom.xml b/hzims-service/pom.xml
index 46c8839..53bf722 100644
--- a/hzims-service/pom.xml
+++ b/hzims-service/pom.xml
@@ -31,6 +31,7 @@
digital-twin-display
dam-safety
video-image
+ water-quality
diff --git a/hzims-service/water-quality/pom.xml b/hzims-service/water-quality/pom.xml
new file mode 100644
index 0000000..1e83802
--- /dev/null
+++ b/hzims-service/water-quality/pom.xml
@@ -0,0 +1,68 @@
+
+
+ 4.0.0
+
+ com.hnac.hzims
+ hzims-service
+ 4.0.0-SNAPSHOT
+
+
+ water-quality
+
+
+ 8
+ 8
+ UTF-8
+
+
+
+
+
+
+ org.springblade
+ blade-core-boot
+
+
+ org.springblade
+ blade-starter-swagger
+
+
+ org.springblade
+ blade-starter-oss-all
+
+
+ com.baomidou
+ dynamic-datasource-spring-boot-starter
+
+
+ org.springblade
+ blade-core-test
+ test
+
+
+ org.springblade
+ blade-core-auto
+ compile
+
+
+ com.hnac.hzims
+ water-quality-api
+ ${hzims.project.version}
+ compile
+
+
+ org.springblade
+ blade-common
+
+
+ com.hnac.hzinfo.data
+ hzinfo-data-sdk
+
+
+ com.hnac.hzims
+ common-api
+
+
+
\ No newline at end of file
diff --git a/hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/WaterQualityApplication.java b/hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/WaterQualityApplication.java
new file mode 100644
index 0000000..9fdd761
--- /dev/null
+++ b/hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/WaterQualityApplication.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright Example,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * Example, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 庄骞 (smallchill@163.com)
+ */
+package com.hnac.hzims.waterquality;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springblade.core.cloud.feign.EnableBladeFeign;
+import org.springblade.core.launch.BladeApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+import org.springframework.cloud.client.SpringCloudApplication;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+/**
+ * Demo启动器
+ *
+ * @author Chill
+ */
+@EnableBladeFeign(basePackages = {"org.springblade","com.hnac"})
+@SpringCloudApplication
+@MapperScan("com.hnac.hzims.**.mapper.**")
+@EnableScheduling
+@ComponentScan(basePackages = {"com.hnac.hzims.*"})
+public class WaterQualityApplication extends SpringBootServletInitializer {
+
+ static String APPLICATION_NAME="water-quality";
+
+ public static void main(String[] args) {
+ BladeApplication.run(APPLICATION_NAME, WaterQualityApplication.class, args);
+ }
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
+ return BladeApplication.createSpringApplicationBuilder(builder, APPLICATION_NAME, WaterQualityApplication.class);
+ }
+}
+
diff --git a/hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqConfigDController.java b/hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqConfigDController.java
new file mode 100644
index 0000000..ae02fc3
--- /dev/null
+++ b/hzims-service/water-quality/src/main/java/com/hnac/hzims/waterquality/controller/WqConfigDController.java
@@ -0,0 +1,125 @@
+package com.hnac.hzims.waterquality.controller;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import com.hnac.hzims.waterquality.entity.WqConfigD;
+import com.hnac.hzims.waterquality.service.IWqConfigDService;
+import com.hnac.hzims.waterquality.util.ParamUtil;
+import io.swagger.annotations.*;
+import lombok.AllArgsConstructor;
+import org.apache.commons.lang3.StringUtils;
+import org.springblade.common.cache.CacheNames;
+import org.springblade.core.boot.ctrl.BladeController;
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import springfox.documentation.annotations.ApiIgnore;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/waterQuality/wqConfigD")
+@AllArgsConstructor
+@Api(value = "水质监测指标配置", tags = "水质监测指标配置接口")
+public class WqConfigDController extends BladeController implements CacheNames {
+
+ private final IWqConfigDService wqConfigDService;
+
+
+ /**
+ * 分页
+ */
+
+ @GetMapping("/pageList")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "stcd", value = "测站编码", paramType = "query", dataType = "string")
+ })
+ @ApiOperationSupport(order = 1)
+ @ApiOperation(value = "分页", notes = "传入wqConfigD")
+ public R> pageList(@ApiIgnore @RequestParam Map param, Query query) {
+ LambdaQueryWrapper wrapper= ParamUtil.conditionWqConfigD(param);
+ IPage pages = wqConfigDService.page(Condition.getPage(query), wrapper);
+ return R.data(pages);
+ }
+
+ /**
+ * 列表
+ */
+
+ @GetMapping("/list")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "stcd", value = "测站编码", paramType = "query", dataType = "string")
+ })
+ @ApiOperationSupport(order = 2)
+ @ApiOperation(value = "列表", notes = "传入wqConfigD")
+ public R> list(@ApiIgnore @RequestParam Map param) {
+ LambdaQueryWrapper wrapper=ParamUtil.conditionWqConfigD(param);
+ List list = wqConfigDService.list(wrapper);
+ return R.data(list);
+ }
+
+
+ /**
+ * 详情
+ */
+
+ @GetMapping("/detail")
+ @ApiOperationSupport(order = 3)
+ @ApiOperation(value = "详情", notes = "传入wqConfigD")
+ public R detail(WqConfigD wqConfigD) {
+ WqConfigD detail = wqConfigDService.getOne(Condition.getQueryWrapper(wqConfigD));
+ return R.data(detail);
+ }
+
+ /**
+ * 新增
+ */
+
+ @PostMapping("/save")
+ @ApiOperationSupport(order = 4)
+ @ApiOperation(value = "新增", notes = "传入wqConfigD")
+ public R save(@RequestBody Map param) {
+ String stcd=String.valueOf(param.get("stcd"));
+ if(StringUtils.isBlank(stcd)){
+ return R.fail("未传递测站编码");
+ }
+ List