init
parent
ce8bddf61b
commit
fe4aff2c71
79
pom.xml
79
pom.xml
|
|
@ -12,30 +12,26 @@
|
|||
|
||||
<artifactId>gunshi-project-xyt</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<description>
|
||||
麻城小玉潭水库系统
|
||||
</description>
|
||||
<properties>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<maven.test.skip>true</maven.test.skip>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
<alibaba.easyexcel.version>3.3.2</alibaba.easyexcel.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.gunshi</groupId>
|
||||
<artifactId>gunshi-modules-all</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--
|
||||
excel导出
|
||||
-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>easyexcel</artifactId>
|
||||
<version>${alibaba.easyexcel.version}</version>
|
||||
<groupId>com.gunshi</groupId>
|
||||
<artifactId>gunshi-modules-file</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
@ -51,9 +47,34 @@
|
|||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-test</artifactId>
|
||||
<version>6.1.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.hikvision.ga</groupId>
|
||||
<artifactId>artemis-http-client</artifactId>
|
||||
<version>1.1.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-net</groupId>
|
||||
<artifactId>commons-net</artifactId>
|
||||
<version>3.3</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-elasticsearch</artifactId>
|
||||
<version>5.2.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.locationtech.jts</groupId>
|
||||
<artifactId>jts-core</artifactId>
|
||||
<version>1.18.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
@ -61,19 +82,19 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-lib</id>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<excludeTransitive>false</excludeTransitive>
|
||||
<stripVersion>false</stripVersion>
|
||||
<includeScope>runtime</includeScope>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<!-- <executions>-->
|
||||
<!-- <execution>-->
|
||||
<!-- <id>copy-lib</id>-->
|
||||
<!-- <goals>-->
|
||||
<!-- <goal>copy-dependencies</goal>-->
|
||||
<!-- </goals>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <excludeTransitive>false</excludeTransitive>-->
|
||||
<!-- <stripVersion>false</stripVersion>-->
|
||||
<!-- <includeScope>runtime</includeScope>-->
|
||||
<!-- </configuration>-->
|
||||
<!-- </execution>-->
|
||||
<!-- </executions>-->
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
@ -89,7 +110,7 @@
|
|||
<repository>
|
||||
<id>nexus</id>
|
||||
<name>Nexus public</name>
|
||||
<url>https://local.gunshiiot.com:8082/repository/maven-public/</url>
|
||||
<url>http://local.gunshiiot.com:8081/repository/maven-public/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
|
|
@ -97,12 +118,12 @@
|
|||
<repository>
|
||||
<id>nexus-releases</id>
|
||||
<name>Nexus Releases</name>
|
||||
<url>https://local.gunshiiot.com:8082/repository/maven-releases</url>
|
||||
<url>http://local.gunshiiot.com:8081/repository/maven-releases</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>nexus-snapshots</id>
|
||||
<name>Nexus Snapshot</name>
|
||||
<url>https://local.gunshiiot.com:8082/repository/maven-snapshots/</url>
|
||||
<url>http://local.gunshiiot.com:8081/repository/maven-snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
|
|
@ -7,19 +7,11 @@ import io.swagger.v3.oas.annotations.servers.Server;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-19
|
||||
*/
|
||||
@OpenAPIDefinition(
|
||||
servers = {
|
||||
@Server(
|
||||
url = "http://localhost:24101/gunshiApp/xyt",
|
||||
url = "http://localhost:24105/gunshiApp/xyt",
|
||||
description = "本地测试环境"
|
||||
),
|
||||
@Server(
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
package com.gunshi.project.xyt.config;
|
||||
|
||||
import org.springdoc.core.models.GroupedOpenApi;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-18
|
||||
*/
|
||||
@Configuration
|
||||
public class OpenApiConfig {
|
||||
|
||||
@Bean
|
||||
public GroupedOpenApi XytOpenApi() {
|
||||
String[] packagesToScan = {
|
||||
"com.gunshi.project.xyt.controller",
|
||||
};
|
||||
return GroupedOpenApi.builder()
|
||||
.group("xyt")
|
||||
.packagesToScan(packagesToScan)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
package com.gunshi.project.xyt.config;
|
||||
|
||||
import org.springdoc.core.models.GroupedOpenApi;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 监测类接口文档分组
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-29
|
||||
*/
|
||||
@Configuration
|
||||
public class RcvOpenApiConfig {
|
||||
@Bean
|
||||
public GroupedOpenApi XytRcvOpenApi() {
|
||||
String[] packagesToScan = {
|
||||
"com.gunshi.project.xyt.controller",
|
||||
};
|
||||
return GroupedOpenApi.builder()
|
||||
.group("xyt-rcv")
|
||||
.displayName("监测数据类接口")
|
||||
.pathsToMatch("/rcv/**")
|
||||
.packagesToScan(packagesToScan)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.GunShiCoreProperties;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.core.session.entity.SessionUser;
|
||||
import com.gunshi.file.model.FileDescriptor;
|
||||
import com.gunshi.file.service.IFileService;
|
||||
import com.gunshi.file.service.LoginFileService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RequestPart;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-03-12
|
||||
*/
|
||||
public abstract class AbstractCommonFileController implements ICommonFileController {
|
||||
|
||||
@Override
|
||||
public R<FileDescriptor> uploadSingle(MultipartFile file, String groupId, String businessType, Long userId, HttpServletRequest request) throws Exception {
|
||||
return ICommonFileController.super.uploadSingle(file, getGroupId(), getBusinessType(), userId, request);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单个文件上传
|
||||
*
|
||||
* @param file 文件
|
||||
* @param userId 上传者userId
|
||||
*/
|
||||
@Operation(summary = "单个文件上传,不需要groupId和businessType")
|
||||
@PostMapping(path = "/file/upload/singleSimple", consumes = "multipart/form-data")
|
||||
@Override
|
||||
public R<FileDescriptor> uploadSingle(
|
||||
@Parameter(description = "文件") @RequestPart("file") MultipartFile file,
|
||||
@Parameter(description = "上传者用户id", hidden = true) @RequestParam(value = "userId", required = false) Long userId,
|
||||
@Parameter(hidden = true) HttpServletRequest request) throws Exception {
|
||||
|
||||
if (userId == null) {
|
||||
SessionUser sessionUser = checkLogin(request);
|
||||
if (sessionUser == null) {
|
||||
return R.error(400, "未登录", null);
|
||||
}
|
||||
userId = sessionUser.getUserId();
|
||||
}
|
||||
|
||||
FileDescriptor fd = new FileDescriptor();
|
||||
fd.setBusinessType(getBusinessType());
|
||||
fd.setGroupId(getGroupId());
|
||||
fd.setUserId(userId);
|
||||
fd.setAccessGroup(getService().getAccessGroup());
|
||||
fd.setFilePath(generateFilePath(getProperty().getAppCode(), getBusinessType(), userId, getGroupId(), file.getOriginalFilename()));
|
||||
fd.setFileName(file.getOriginalFilename());
|
||||
fd.setFileLength(file.getSize());
|
||||
|
||||
getService().upload(fd, file.getInputStream());
|
||||
|
||||
return R.ok(fd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBusinessType() {
|
||||
return "common";
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private LoginFileService service;
|
||||
|
||||
@Autowired
|
||||
private GunShiCoreProperties properties;
|
||||
|
||||
// @Autowired
|
||||
// private BaseSessionService sessionService;
|
||||
|
||||
@Override
|
||||
public IFileService getService() {
|
||||
return service;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SessionUser checkLogin(HttpServletRequest request) {
|
||||
// String token = sessionService.getToken(request);
|
||||
// return sessionService.getSessionUser(token);
|
||||
SessionUser user = new SessionUser();
|
||||
user.setUserId(1L);
|
||||
return user;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GunShiCoreProperties getProperty() {
|
||||
return properties;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,346 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.annotation.Get;
|
||||
import com.gunshi.core.annotation.Post;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.entity.basedata.*;
|
||||
import com.gunshi.project.xyt.model.*;
|
||||
import com.gunshi.project.xyt.service.*;
|
||||
import com.gunshi.project.xyt.so.StStchBSo;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/26
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@Tag(name = "基础数据接口-controller", description = "基础数据接口")
|
||||
@Data
|
||||
@RequestMapping("/database/")
|
||||
public class BasicDataController {
|
||||
private final SysDictService sysDictService;
|
||||
private final StAdcdService stAdcdService;
|
||||
private final StCameraAreaService stCameraAreaService;
|
||||
private final StCameraService stCameraService;
|
||||
private final StStbprpService stStbprpService;
|
||||
|
||||
// 测站采集项
|
||||
private final StStchBService stStchBService;
|
||||
|
||||
private final StMoncrService stMoncrService;
|
||||
//渗压设备
|
||||
private final StSpgPztbService stSpgPztbService;
|
||||
//渗流设备
|
||||
private final StSpgSpprmpService stSpgSpprmpService;
|
||||
|
||||
|
||||
@Post(path = "/dict/search/query", summary = "查询字典接口")
|
||||
public R<Page<SysDictVo>> queryDictList(@Validated @RequestBody GeneralSearch search) {
|
||||
return R.ok(sysDictService.queryBySearch(search));
|
||||
}
|
||||
|
||||
@Get(path = "/dict/search/queryByPid", summary = "根据父ID查询字典接口 返回树结构")
|
||||
public R<List<SysDictVo>> queryDictList(
|
||||
@RequestParam(required = false, name="pid")
|
||||
@Parameter(in = ParameterIn.QUERY, name="pid",description = "根据父ID查询字典,如果不传则查询所有")
|
||||
Long pid
|
||||
) {
|
||||
return R.ok(sysDictService.queryByPid(pid));
|
||||
}
|
||||
|
||||
|
||||
@Post(path = "/dict/manage/insert", summary = "新增字典接口")
|
||||
public R<Boolean> insertDictParent(@Validated @RequestBody SysDictB sysDictB) {
|
||||
sysDictService.insert(sysDictB);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/dict/manage/update", summary = "更新字典接口")
|
||||
public R<Boolean> updateDict(@Validated({Update.class}) @RequestBody SysDictB sysDictB) {
|
||||
sysDictService.updateById(sysDictB);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/dict/search/check", summary = "检查字典编码和名称接口")
|
||||
public R<String> checkDictCode(@RequestBody @Validated CheckStringSearch checkStringSearch) {
|
||||
try {
|
||||
String keyword = checkStringSearch.getKeyword();
|
||||
SysDictB sysDictB = new SysDictB();
|
||||
sysDictB.setDictNm(keyword);
|
||||
sysDictB.setDictCd(keyword);
|
||||
if (Objects.nonNull(checkStringSearch.getId())) {
|
||||
sysDictB.setId(checkStringSearch.getId());
|
||||
}
|
||||
sysDictService.checkExistCodeAndName(sysDictB);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.error(417, e.getMessage());
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Post(path = "/adcd/search/query", summary = "查询行政区划列表接口")
|
||||
public R<Page<StAddvcdD>> queryAddvcdList(@Validated @RequestBody GeneralSearch search) {
|
||||
return R.ok(stAdcdService.queryBySearch(search));
|
||||
}
|
||||
|
||||
@Get(path = "/adcd/search/query", summary = "查询单个行政区划接口")
|
||||
public R<StAddvcdD> queryAddvcdById(
|
||||
@RequestParam(name="adcd")
|
||||
@Parameter(in = ParameterIn.QUERY, name="adcd",description = "完整行政区划编码")
|
||||
String adcd
|
||||
){
|
||||
return R.ok(stAdcdService.queryByAddvcd(adcd));
|
||||
}
|
||||
|
||||
@Get(path = "/adcd/search/tree", summary = "查询行政区划树接口")
|
||||
public R<List<StAddvcdTreeVo>> queryAddvcdTree(
|
||||
@RequestParam(required = false, name="adcd")
|
||||
@Parameter(in = ParameterIn.QUERY, name="adcd",description = "行政区划编码 为空查询全部,不为空查询下级树,比如4205查4205开头的所有返回树型结构")
|
||||
String adcd) {
|
||||
return R.ok(stAdcdService.queryTree(adcd));
|
||||
}
|
||||
|
||||
@Post(path = "/adcd/manage/insert", summary = "新增行政区划列表接口")
|
||||
public R<Boolean> insertAddvcd(@Validated @RequestBody StAddvcdD stAddvcdD) {
|
||||
stAdcdService.insert(stAddvcdD);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/adcd/manage/update", summary = "更新行政区划列表接口")
|
||||
public R<Boolean> updateAddvcd(@Validated @RequestBody StAddvcdD stAddvcdD) {
|
||||
stAdcdService.updateById(stAddvcdD);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/camera/area/search/list", summary = "查询视频区域列表接口")
|
||||
public R<Page<StCameraAreaVo>> queryCameraAreaList(@Validated @RequestBody GeneralSearch search) {
|
||||
return R.ok(stCameraAreaService.queryListBySearch(search));
|
||||
}
|
||||
|
||||
@Post(path = "/camera/area/search/tree", summary = "查询视频区域树接口")
|
||||
public R<List<StCameraAreaTreeVo>> queryCameraAreaTree() {
|
||||
return R.ok(stCameraAreaService.queryTree());
|
||||
}
|
||||
|
||||
@Post(path = "/camera/area/manage/insert", summary = "新增视频区域接口")
|
||||
public R<Boolean> insertCameraArea(@Validated @RequestBody StCameraAreaB stCameraAreaB) {
|
||||
stCameraAreaService.insert(stCameraAreaB);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/camera/area/manage/update", summary = "更新视频区域接口")
|
||||
public R<Boolean> updateCameraArea(@Validated({Update.class}) @RequestBody StCameraAreaB stCameraAreaB) {
|
||||
stCameraAreaService.update(stCameraAreaB);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/camera/area/search/check", summary = "检查视频区域名称是否存在接口")
|
||||
public R<String> checkCameraAreaName(@RequestBody @Validated CheckStringSearch checkStringSearch) {
|
||||
try {
|
||||
stCameraAreaService.checkAreaName(checkStringSearch);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.error(417, e.getMessage());
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Post(path = "/camera/search/query", summary = "查询视频列表接口")
|
||||
public R<Page<StCameraVo>> queryCameraList(@Validated @RequestBody StCameraSearch search) {
|
||||
return R.ok(stCameraService.queryBySearch(search));
|
||||
}
|
||||
|
||||
@Post(path = "/camera/manage/insert", summary = "新增视频接口")
|
||||
public R<Boolean> insertCamera(@Validated @RequestBody StCameraB obj) {
|
||||
stCameraService.insert(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/camera/manage/update", summary = "更新视频接口")
|
||||
public R<Boolean> updateCamera(@Validated({Update.class}) @RequestBody StCameraB obj) {
|
||||
stCameraService.update(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
|
||||
@Post(path = "/stcd/search/query", summary = "测站列表查询接口-结果集带分页信息")
|
||||
public R<Page<StStbprpVo>> queryStcdList(@Validated @RequestBody StcdSearch search) {
|
||||
return R.ok(stStbprpService.queryBySearch(search));
|
||||
}
|
||||
|
||||
@Get(path = "/stcd/search/query", summary = "单个测站查询接口")
|
||||
public R<StStbprpB> queryStcdById(
|
||||
@RequestParam(name="stcd")
|
||||
@Parameter(in = ParameterIn.QUERY, name="stcd",description = "测站编码")
|
||||
String stcd
|
||||
) {
|
||||
return R.ok(stStbprpService.queryByStcd(stcd));
|
||||
}
|
||||
|
||||
@Post(path = "/stcd/search/querySelect", summary = "测站列表查询接口-下拉菜单查询使用,不带分页信息")
|
||||
public R<List<StStbprpVo>> queryStcdSelect(@Validated @RequestBody StcdSearch search) {
|
||||
return R.ok(stStbprpService.queryListBySearch(search));
|
||||
}
|
||||
|
||||
@Post(path = "/stcd/search/check", summary = "检查测站编码是否存在接口")
|
||||
public R<String> checkStcdExist(@RequestBody @Validated CheckStringSearch checkStringSearch) {
|
||||
try {
|
||||
stStbprpService.checkExist(checkStringSearch);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.error(417, e.getMessage());
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Post(path = "/stcd/manage/insert", summary = "新增测站接口")
|
||||
public R<Boolean> insertStcd(@Validated @RequestBody StStbprpB obj) {
|
||||
return stStbprpService.insert(obj);
|
||||
}
|
||||
|
||||
@Post(path = "/stcd/manage/update", summary = "更新测站接口")
|
||||
public R<Boolean> updateStcd(@Validated @RequestBody StStbprpB obj) {
|
||||
return stStbprpService.update(obj);
|
||||
}
|
||||
|
||||
@Get(path = "/stcd/manage/delete/{stcd}", summary = "删除测站接口")
|
||||
public R<Boolean> deleteStcd(@Schema(description="测站编码") @PathVariable("stcd") String stcd) {
|
||||
return stStbprpService.delete(stcd);
|
||||
}
|
||||
|
||||
|
||||
@Post(path ="/stch/manage/insert", summary = "测站采集项新增")
|
||||
public R<Boolean> insertStch(@RequestBody @Validated StStchB stStchB) {
|
||||
return R.ok(stStchBService.insert(stStchB));
|
||||
}
|
||||
|
||||
@Get(path ="/stch/manage/del/{id}", summary = "测站采集项删除")
|
||||
public R<Boolean> delStch(@Schema(description="测站采集项id") @PathVariable("id") Integer id) {
|
||||
return R.ok(stStchBService.removeById(id));
|
||||
}
|
||||
|
||||
@Post(path ="/stch/manage/update", summary = "测站采集项修改")
|
||||
public R<Boolean> updateStch(@RequestBody @Validated(Update.class) StStchB bean) {
|
||||
return R.ok(stStchBService.update(bean));
|
||||
}
|
||||
|
||||
@Post(path = "/stch/manage/page", summary = "测站采集项分页查询")
|
||||
public R<IPage<StStchB>> PageStch(@RequestBody StStchBSo findDto) {
|
||||
return R.ok(stStchBService.page(findDto));
|
||||
}
|
||||
|
||||
|
||||
@Post(path = "/monct/manage/insert", summary = "新增监测断面接口")
|
||||
public R<Boolean> insertMonCr(@Validated @RequestBody StMoncrB obj) {
|
||||
stMoncrService.insert(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/monct/manage/check", summary = "检查监测断面编码是否存在接口")
|
||||
public R<Boolean> checkMonCrCode(@Validated @RequestBody CheckStringSearch obj) {
|
||||
stMoncrService.checkCode(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/monct/manage/update", summary = "更新监测断面接口")
|
||||
public R<Boolean> updateMonCr(@Validated @RequestBody StMoncrB obj) {
|
||||
stMoncrService.update(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Get(path = "/monct/manage/delete/{crId}", summary = "删除监测断面接口")
|
||||
public R<Boolean> deleteMonCr(@Validated @RequestBody Long crId) {
|
||||
stMoncrService.delete(crId);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/monct/search/query", summary = "查询监测断面列表接口")
|
||||
public R<Page<StMoncrB>> queryMonCrList(@Validated @RequestBody GeneralSearch search) {
|
||||
return R.ok(stMoncrService.queryBySearch(search));
|
||||
}
|
||||
|
||||
//渗压设备
|
||||
@Post(path = "/pztb/search/query", summary = "查询渗压设备列表接口")
|
||||
public R<Page<StSpgPztbVo>> queryStSpgPztbList(@Validated @RequestBody GeneralSearch search) {
|
||||
return R.ok(stSpgPztbService.queryBySearch(search));
|
||||
}
|
||||
|
||||
@Post(path = "/pztb/search/check", summary = "检查渗压设备编码是否存在接口")
|
||||
public R<String> checkStSpgPztbList(@Validated @RequestBody CheckStringSearch search) {
|
||||
try {
|
||||
stSpgPztbService.checkCode(search);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.error(417, e.getMessage());
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Post(path = "/pztb/manage/insert", summary = "新增渗压设备接口")
|
||||
public R<Boolean> insertStSpgPztb(@Validated @RequestBody StSpgPztb obj) {
|
||||
stSpgPztbService.insert(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/pztb/manage/update", summary = "更新渗压设备接口")
|
||||
public R<Boolean> updateStSpgPztb(@Validated(Update.class) @RequestBody StSpgPztb obj) {
|
||||
stSpgPztbService.update(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/pztb/manage/delete/{id}",summary = "删除渗压设备接口")
|
||||
public R<Boolean> deleteStSpgPztb(@Schema(description = "渗压设备ID") @PathVariable("id")String id){
|
||||
stSpgPztbService.delete(id);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
//渗流
|
||||
@Post(path = "/spprmp/search/query", summary = "查询渗流设备列表接口")
|
||||
public R<Page<StSpgSpprmpVo>> queryStSpgSpprmpList(@Validated @RequestBody GeneralSearch search) {
|
||||
return R.ok(stSpgSpprmpService.queryBySearch(search));
|
||||
}
|
||||
|
||||
@Post(path = "/spprmp/search/check", summary = "检查渗流设备编码是否存在接口")
|
||||
public R<String> checkStSpgSpprmp(@Validated @RequestBody CheckStringSearch search) {
|
||||
try {
|
||||
stSpgSpprmpService.checkCode(search);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.error(417, e.getMessage());
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Post(path = "/spprmp/manage/insert", summary = "新增渗流设备接口")
|
||||
public R<Boolean> insertStSpgSpprmp(@Validated @RequestBody StSpgSpprmp obj) {
|
||||
stSpgSpprmpService.insert(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Post(path = "/spprmp/manage/update", summary = "更新渗流设备接口")
|
||||
public R<Boolean> updateStSpgSpprmp(@Validated(Update.class) @RequestBody StSpgSpprmp obj) {
|
||||
stSpgSpprmpService.update(obj);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
@Get(path = "/spprmp/manage/delete/{id}",summary = "删除渗流设备接口")
|
||||
public R<Boolean> deleteStSpgSpprmp(@Schema(description = "渗流设备ID") @PathVariable("id") String id){
|
||||
stSpgSpprmpService.delete(id);
|
||||
return R.ok(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.BzCameraAIImgR;
|
||||
import com.gunshi.project.xyt.model.BzCameraAIImgRAutoDao;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 视频监控-AI告警接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/camera/aiimg")
|
||||
@Tag(name = "视频监控-AI告警")
|
||||
public class BzCameraAIImgRController {
|
||||
|
||||
@Autowired
|
||||
private BzCameraAIImgRAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page/{chid}")
|
||||
public R<Page<BzCameraAIImgR>> page(@RequestBody RtuDataSo so, @PathVariable("chid") String chid) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<BzCameraAIImgR> page;
|
||||
if (!stcds.isEmpty()) {
|
||||
LambdaQueryWrapper<BzCameraAIImgR> query = new LambdaQueryWrapper<BzCameraAIImgR>().in(BzCameraAIImgR::getStcd, stcds).eq(BzCameraAIImgR::getChid, chid);
|
||||
page = dao.page(so.getPageSo().toPage(), query);
|
||||
} else {
|
||||
page = dao.page(so.getPageSo().toPage());
|
||||
}
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.mapper.BzProtocolInfoChartMapper;
|
||||
import com.gunshi.project.xyt.model.BzProtocolInfo;
|
||||
import com.gunshi.project.xyt.model.BzProtocolInfoAutoDao;
|
||||
import com.gunshi.project.xyt.service.ProtocolInfoService;
|
||||
import com.gunshi.project.xyt.so.BzProtocolInfoSo;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import com.gunshi.project.xyt.vo.BzProtocolInfoChart1Vo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 协议信息控制器接口类
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/protocolInfo")
|
||||
@Tag(name = "系统管理-统一接收-协议管理")
|
||||
public class BzProtocolInfoController {
|
||||
@Autowired
|
||||
private BzProtocolInfoAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private ProtocolInfoService service;
|
||||
|
||||
@Autowired
|
||||
private BzProtocolInfoChartMapper chartMapper;
|
||||
|
||||
@Operation(summary = "新增协议信息")
|
||||
@PostMapping("/save")
|
||||
public R<Boolean> save(@Validated({Insert.class}) @RequestBody BzProtocolInfo entity) {
|
||||
// todo 无论是数据库设置默认值为GETDATE()还是使用注解fill = FieldFill.INSERT都不能自动插入当前时间
|
||||
entity.setCreateTm(new Date());
|
||||
entity.setEnable(1);
|
||||
return R.ok(dao.save(entity));
|
||||
}
|
||||
|
||||
@Operation(summary = "更新协议信息")
|
||||
@PostMapping("/update")
|
||||
public R<Boolean> update(@Validated({Update.class}) @RequestBody BzProtocolInfo entity) {
|
||||
return R.ok(dao.updateById(entity));
|
||||
}
|
||||
|
||||
@Operation(summary = "删除协议信息")
|
||||
@GetMapping("/delete/{id}")
|
||||
public R<Boolean> delete(@PathVariable("id") String id) {
|
||||
return R.ok(dao.removeById(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "按id查询接口")
|
||||
@GetMapping("/get/{id}")
|
||||
public R<BzProtocolInfo> getById(@PathVariable("id") String id) {
|
||||
return R.ok(dao.getById(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询接口")
|
||||
@PostMapping("/page")
|
||||
public R<Page<BzProtocolInfo>> page(@Validated @RequestBody BzProtocolInfoSo so) {
|
||||
return R.ok(service.page(so));
|
||||
}
|
||||
|
||||
@Operation(summary = "归属协议分布")
|
||||
@GetMapping("/chart1")
|
||||
public R chart1() {
|
||||
List<BzProtocolInfoChart1Vo> vos = chartMapper.chart1();
|
||||
|
||||
Map<String, Long> protocolCountMap = vos.stream()
|
||||
.collect(Collectors.groupingBy(BzProtocolInfoChart1Vo::getProtocolName, Collectors.counting()));
|
||||
|
||||
return R.ok(protocolCountMap);
|
||||
}
|
||||
|
||||
@Operation(summary = "测站类型分布")
|
||||
@GetMapping("/chart2")
|
||||
public R chart2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Operation(summary = "测站在线情况")
|
||||
@GetMapping("/chart3")
|
||||
public R chart3() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,140 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.BzServiceResource;
|
||||
import com.gunshi.project.xyt.model.BzServiceResourceAutoDao;
|
||||
import com.gunshi.project.xyt.model.BzServiceResourceType;
|
||||
import com.gunshi.project.xyt.model.BzServiceResourceTypeAutoDao;
|
||||
import com.gunshi.project.xyt.service.BzServiceResourceMonitorRService;
|
||||
import com.gunshi.project.xyt.so.BzServiceResourceSo;
|
||||
import com.gunshi.project.xyt.so.BzServiceResourceTypeSo;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.QueryPage;
|
||||
import com.gunshi.project.xyt.validate.markers.QueryTimeRange;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import com.gunshi.project.xyt.vo.BzServiceResourceMonitorVo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 服务资源及监控控制器接口类
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/serviceResource")
|
||||
@Tag(name = "系统管理-数据共享服务-服务资源及监控")
|
||||
public class BzServiceResourceController {
|
||||
|
||||
@Autowired
|
||||
private BzServiceResourceAutoDao serviceResourceDao;
|
||||
|
||||
@Autowired
|
||||
private BzServiceResourceMonitorRService serviceMonitorService;
|
||||
|
||||
@Autowired
|
||||
private BzServiceResourceTypeAutoDao serviceTypeDao;
|
||||
|
||||
@Operation(summary = "新增服务资源")
|
||||
@PostMapping("/save")
|
||||
public R<Boolean> save(@Validated(Insert.class) @RequestBody BzServiceResource entity) {
|
||||
entity.setId(IdWorker.getIdStr());
|
||||
entity.setRegisterDate(new Date());
|
||||
entity.setEnable(1);
|
||||
return R.ok(serviceResourceDao.save(entity));
|
||||
}
|
||||
|
||||
@Operation(summary = "更新服务资源")
|
||||
@PostMapping("/update")
|
||||
public R<Boolean> update(@Validated(Update.class) @RequestBody BzServiceResource entity) {
|
||||
BzServiceResource byId = serviceResourceDao.getById(entity.getId());
|
||||
if (byId == null) {
|
||||
return R.error(400, "数据不存在", false);
|
||||
}
|
||||
|
||||
entity.setRegisterDate(byId.getRegisterDate());
|
||||
return R.ok(serviceResourceDao.updateById(entity));
|
||||
}
|
||||
|
||||
@Operation(summary = "删除服务资源")
|
||||
@GetMapping("/delete/{id}")
|
||||
public R<Boolean> delete(@PathVariable("id") String id) {
|
||||
return R.ok(serviceMonitorService.removeById(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询服务资源")
|
||||
@PostMapping("/page")
|
||||
public R<Page<BzServiceResource>> page(
|
||||
@Validated({QueryPage.class, QueryTimeRange.class}) @RequestBody BzServiceResourceSo so
|
||||
) {
|
||||
LambdaQueryWrapper<BzServiceResource> query = new LambdaQueryWrapper<>();
|
||||
if (StringUtils.isNotEmpty(so.getName())) {
|
||||
query.like(BzServiceResource::getName, so.getName());
|
||||
}
|
||||
|
||||
if (so.getDateTimeRangeSo() != null) {
|
||||
query.le(BzServiceResource::getRegisterDate, so.getDateTimeRangeSo().getEnd());
|
||||
query.ge(BzServiceResource::getRegisterDate, so.getDateTimeRangeSo().getStart());
|
||||
}
|
||||
query.orderByDesc(BzServiceResource::getRegisterDate);
|
||||
|
||||
Page<BzServiceResource> page = serviceResourceDao.page(so.getPageSo().toPage(), query);
|
||||
return R.ok(page);
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询服务资源监控")
|
||||
@PostMapping("/monitor/page")
|
||||
public R<Page<BzServiceResourceMonitorVo>> pageMonitorR(
|
||||
@Validated({QueryPage.class, QueryTimeRange.class}) @RequestBody BzServiceResourceSo so
|
||||
) {
|
||||
Page<BzServiceResourceMonitorVo> page = serviceMonitorService.page(so.getPageSo().toPage(), so);
|
||||
return R.ok(page);
|
||||
}
|
||||
|
||||
@Operation(summary = "新增服务资源类型")
|
||||
@PostMapping("/type/save")
|
||||
public R<Boolean> saveType(@Validated(Insert.class) @RequestBody BzServiceResourceType entity) {
|
||||
entity.setId(IdWorker.getIdStr());
|
||||
return R.ok(serviceTypeDao.save(entity));
|
||||
}
|
||||
|
||||
@Operation(summary = "更新服务资源类型")
|
||||
@PostMapping("/type/update")
|
||||
public R<Boolean> updateType(@Validated(Update.class) @RequestBody BzServiceResourceType entity) {
|
||||
return R.ok(serviceTypeDao.updateById(entity));
|
||||
}
|
||||
|
||||
@Operation(summary = "删除服务资源类型")
|
||||
@GetMapping("/type/delete/{id}")
|
||||
public R<Boolean> deleteType(@PathVariable("id") String id) {
|
||||
return R.ok(serviceTypeDao.removeById(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询服务资源类型")
|
||||
@PostMapping("/type/page")
|
||||
public R<Page<BzServiceResourceType>> pageType(
|
||||
@Validated({QueryPage.class}) @RequestBody BzServiceResourceTypeSo so
|
||||
) {
|
||||
LambdaQueryWrapper<BzServiceResourceType> query = new LambdaQueryWrapper<>();
|
||||
if (StringUtils.isNotEmpty(so.getName())) {
|
||||
query.like(BzServiceResourceType::getName, so.getName());
|
||||
}
|
||||
if (StringUtils.isNotEmpty(so.getType())) {
|
||||
query.like(BzServiceResourceType::getType, so.getType());
|
||||
}
|
||||
|
||||
Page<BzServiceResourceType> page = serviceTypeDao.page(so.getPageSo().toPage(), query);
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,274 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.entity.dto.*;
|
||||
import com.gunshi.project.xyt.model.*;
|
||||
import com.gunshi.project.xyt.service.EngineeringDrainageService;
|
||||
import com.gunshi.project.xyt.so.*;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName EngineeringDrainageController
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/25 11:50
|
||||
*/
|
||||
@Slf4j
|
||||
@Tag(name = "工程及水系接口", description = "水库、河流、大坝、闸阀、量水堰基础信息")
|
||||
@RestController
|
||||
@RequestMapping("/EngineeringDrainage")
|
||||
public class EngineeringDrainageController {
|
||||
|
||||
@Resource
|
||||
private EngineeringDrainageService engineeringDrainageService;
|
||||
|
||||
@Operation(summary = "新增水库基础信息")
|
||||
@PostMapping("/StRes/insert")
|
||||
public R<String> insertRes(@RequestBody @Validated StResDto stResDto){
|
||||
engineeringDrainageService.insertStRes(stResDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新水库的基础信息")
|
||||
@PostMapping("/StRes/update")
|
||||
public R<String> updateStRes(@Validated(Insert.class) @RequestBody StResB stResB){
|
||||
engineeringDrainageService.updateStRes(stResB);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "根据水库ID删除水库基本信息")
|
||||
@GetMapping("/StRes/delete")
|
||||
public R<String> deleteStRes(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
engineeringDrainageService.deleteStRes(resId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询水库的基础信息")
|
||||
@PostMapping("/StRes/page")
|
||||
public R<Page<StResB>> pageStRes(@RequestBody @Validated StResPageSo stResPageSo){
|
||||
return R.ok(engineeringDrainageService.pageStRes(stResPageSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增水库测站关系")
|
||||
@PostMapping("/StResStcdRef/insert")
|
||||
public R<String> insertStResStcdRef(@RequestBody @Validated StResStcdRefDto stResStcdRefDto){
|
||||
engineeringDrainageService.insertStResStcdRef(stResStcdRefDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新水库测站关系")
|
||||
@PostMapping("/StResStcdRef/update")
|
||||
public R<String> updateStResStcdRef(@RequestBody @Validated StResStcdRef stResStcdRef){
|
||||
engineeringDrainageService.updateStResStcdRef(stResStcdRef);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "删除水库测站关系")
|
||||
@GetMapping("/StResStcdRef/delete")
|
||||
public R<String> deleteStResStcdRef(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
engineeringDrainageService.deleteStResStcdRef(resId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "根据水库ID查询水库测站关系")
|
||||
@GetMapping("/StResStcdRef/queryByResId")
|
||||
public R<StResStcdRef> queryStResStcdRefByResId(@Parameter(description = "水库ID") @RequestParam("resId")String resId){
|
||||
return R.ok(engineeringDrainageService.queryStResStcdRefByResId(resId));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增库容曲线信息")
|
||||
@PostMapping("/StZvarl/insert")
|
||||
public R<String> insertStZvarl(@RequestBody @Validated StZvarlDto stZvarlDto){
|
||||
engineeringDrainageService.insertStZvarl(stZvarlDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新库容曲线信息")
|
||||
@PostMapping("/StZvarl/update")
|
||||
public R<String> updateStZvarl(@RequestBody @Validated StZvarlB stZvarlB){
|
||||
engineeringDrainageService.updateStZvarl(stZvarlB);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "删除库容曲线信息")
|
||||
@GetMapping("/StZvarl/delete")
|
||||
public R<String> deleteStZvarl(
|
||||
@Parameter(description = "水库ID") @RequestParam("resId") String resId,
|
||||
@Parameter(description = "序号") @RequestParam("ptno") String ptno){
|
||||
engineeringDrainageService.deleteStZvarl(resId,ptno);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询库容曲线信息")
|
||||
@PostMapping("/StZvarl/page")
|
||||
public R<Page<StZvarlB>> pageStZvarl(@RequestBody @Validated StZvarlSo stZvarlSo){
|
||||
return R.ok(engineeringDrainageService.pageStZvarl(stZvarlSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增水库责任人信息")
|
||||
@PostMapping("/StResPersonRef/insert")
|
||||
public R<String> insertStResPersonRef(@RequestBody @Validated StResPersonRefDto stResPersonRefDto){
|
||||
engineeringDrainageService.insertStResPersonRef(stResPersonRefDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新水库责任人关系")
|
||||
@PostMapping("/StResPersonRef/update")
|
||||
public R<String> updateStResPersonRef(@RequestBody @Validated StResPersonRef stResPersonRef){
|
||||
engineeringDrainageService.updateStResPersonRef(stResPersonRef);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "删除水库责任人信息")
|
||||
@GetMapping("/StResPersonRef/delete")
|
||||
public R<String> deleteStResPersonRef(@Parameter(description = "水库责任人关系ID") @RequestParam("id") String id){
|
||||
engineeringDrainageService.deleteStResPersonRef(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询水库责任人信息")
|
||||
@PostMapping("/StResPersonRef/page")
|
||||
public R<Page<StResPersonRef>> pageStResPersonRef(@RequestBody @Validated StResPersonRefSo stResPersonRefSo){
|
||||
return R.ok(engineeringDrainageService.pageStResPersonRef(stResPersonRefSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增水库附件信息")
|
||||
@PostMapping("/StResFileRef/insert")
|
||||
public R<String> insertStResFileRef(@RequestBody @Validated StResFileRefDto stResFileRefDto){
|
||||
engineeringDrainageService.insertStResFileRef(stResFileRefDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "根据水库附件关系ID删除水库附件信息")
|
||||
@GetMapping("/StResFileRef/delete")
|
||||
public R<String> deleteStResFileRef(@Parameter(description = "水库附件关系ID") @RequestParam("id") String id){
|
||||
engineeringDrainageService.deleteStResFileRef(id);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询水库附件")
|
||||
@PostMapping("/StResFileRef/page")
|
||||
public R<Page<StResFileRef>> pageStResFileRef(@RequestBody @Validated StResFileRefSo stResFileRefSo){
|
||||
return R.ok(engineeringDrainageService.pageStResFileRef(stResFileRefSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增河流基础信息")
|
||||
@PostMapping("/StRv/insert")
|
||||
public R<String> insertStRv(@RequestBody @Validated StRvDto stRvDto){
|
||||
engineeringDrainageService.insertStRv(stRvDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新河流的基础信息")
|
||||
@PostMapping("/StRv/update")
|
||||
public R<String> updateStRv(@RequestBody @Validated StRvB stRvB){
|
||||
engineeringDrainageService.updateStRv(stRvB);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "根据河流ID删除河流信息")
|
||||
@GetMapping("/StRv/delete")
|
||||
public R<String> deleteStRv(@Parameter(description = "河流ID") @RequestParam("rvId") String rvId){
|
||||
engineeringDrainageService.deleteStRv(rvId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询河流基础信息")
|
||||
@PostMapping("/StRv/page")
|
||||
public R<Page<StRvB>> pageStRv(@RequestBody StRvPageSo stRvPageSo){
|
||||
return R.ok(engineeringDrainageService.pageStRv(stRvPageSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增大坝基础信息")
|
||||
@PostMapping("/StDam/insert")
|
||||
public R<String> insertStDam(@RequestBody @Validated StDamDto stDamDto){
|
||||
engineeringDrainageService.insertStDam(stDamDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新大坝基础信息")
|
||||
@PostMapping("/StDam/update")
|
||||
public R<String> updateStDam(@RequestBody StDamB stDamB){
|
||||
engineeringDrainageService.updateStDam(stDamB);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "根据大坝ID删除大坝基础信息")
|
||||
@GetMapping("/StDam/delete")
|
||||
public R<String> deleteStDam(@Parameter(description = "大坝ID") @RequestParam("damId") String damId){
|
||||
engineeringDrainageService.deleteStDam(damId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询大坝信息")
|
||||
@PostMapping("/StDam/query")
|
||||
public R<Page<StDamB>> PageStDam(@RequestBody @Validated StDamPageSo stDamPageSo){
|
||||
return R.ok(engineeringDrainageService.pageStDam(stDamPageSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "新增闸阀基础信息")
|
||||
@PostMapping("/StGate/insert")
|
||||
public R<String> insertStGate(@RequestBody @Validated StGateDto stGateDto){
|
||||
engineeringDrainageService.insertStGate(stGateDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新闸阀基础信息")
|
||||
@PostMapping("/StGate/update")
|
||||
public R<String> updateStGate(@RequestBody @Validated StGateB stGateB){
|
||||
engineeringDrainageService.updateStGate(stGateB);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "根据闸阀ID删除闸阀基础信息")
|
||||
@GetMapping("/StGate/delete")
|
||||
public R<String> deleteStGate(@Parameter(description = "闸阀ID") @RequestParam("gateId") String gateId){
|
||||
engineeringDrainageService.deleteStGate(gateId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询闸阀基础信息")
|
||||
@PostMapping("/StGate/page")
|
||||
public R<Page<StGateB>> pageStGate(@RequestBody @Validated StGatePageSo stGatePageSo){
|
||||
return R.ok(engineeringDrainageService.pageStGate(stGatePageSo));
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "新增量水堰基础信息")
|
||||
@PostMapping("/StEqpt/insert")
|
||||
public R<String> insertStEqpt(@RequestBody @Validated StEqptDto stEqptDto){
|
||||
engineeringDrainageService.insertStEqpt(stEqptDto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "更新量水堰基础信息")
|
||||
@PostMapping("/StEqpt/update")
|
||||
public R<String> updateStEqpt(@RequestBody StEqptB stEqptB){
|
||||
engineeringDrainageService.updateStEqpt(stEqptB);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "删除量水堰基础信息")
|
||||
@GetMapping("/StEqpt/delete")
|
||||
public R<String> deleteStEqpt(@Parameter(description = "量水设施ID") @RequestParam("wmeqId") String wmeqId){
|
||||
engineeringDrainageService.deleteStEqpt(wmeqId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询量水堰信息")
|
||||
@PostMapping("/StEqpt/page")
|
||||
public R<Page<StEqptB>> pageStEqpt(@RequestBody @Validated StEqptPageSo stEqptPageSo){
|
||||
return R.ok(engineeringDrainageService.pageStEqpt(stEqptPageSo));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.entity.vo.GateHistoryInfoVo;
|
||||
import com.gunshi.project.xyt.entity.vo.GateInfoVo;
|
||||
import com.gunshi.project.xyt.entity.vo.StFlowRVo;
|
||||
import com.gunshi.project.xyt.service.GateService;
|
||||
import com.gunshi.project.xyt.so.GateHistoryPageSo;
|
||||
import com.gunshi.project.xyt.validate.markers.QueryPage;
|
||||
import com.gunshi.project.xyt.validate.markers.QueryTimeRange;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 闸阀接口
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@Slf4j
|
||||
@Tag(name = "闸阀接口-controller", description = "闸阀接口")
|
||||
@Data
|
||||
@RequestMapping("/gate")
|
||||
public class GateController {
|
||||
|
||||
@Resource
|
||||
private GateService gateService;
|
||||
|
||||
@Operation(summary = "闸阀列表")
|
||||
@GetMapping("/list")
|
||||
public R<List<GateInfoVo>> list() {
|
||||
return R.ok(gateService.queryGateList());
|
||||
}
|
||||
|
||||
@Operation(summary = "闸阀开关历史分页查询")
|
||||
@PostMapping("/page")
|
||||
public R<Page<GateHistoryInfoVo>> page(@Validated({QueryPage.class, QueryTimeRange.class}) @RequestBody(required = true)
|
||||
GateHistoryPageSo gateHistoryPageSo) {
|
||||
return R.ok(gateService.page(gateHistoryPageSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "流量计列表")
|
||||
@GetMapping("/flow/list")
|
||||
public R<List<StFlowRVo>> flowList() {
|
||||
return R.ok(gateService.queryFlowList());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.entity.dto.StGateRepairRecordDto;
|
||||
import com.gunshi.project.xyt.entity.vo.GateRepairDetailVo;
|
||||
import com.gunshi.project.xyt.entity.vo.GateRepairRecordVo;
|
||||
import com.gunshi.project.xyt.service.GateRepairRecordService;
|
||||
import com.gunshi.project.xyt.so.GateRepairRecordPageSo;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 闸阀检修接口
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@Slf4j
|
||||
@Tag(name = "闸阀检修接口-controller", description = "闸阀检修接口")
|
||||
@Data
|
||||
@RequestMapping("/gate/repair")
|
||||
public class GateRepairRecordController {
|
||||
|
||||
@Resource
|
||||
private GateRepairRecordService gateRepairRecordService;
|
||||
|
||||
@Operation(summary = "新增检修记录")
|
||||
@PostMapping("/add")
|
||||
public R<String> add(@Validated(Insert.class) @RequestBody StGateRepairRecordDto stGateRepairRecordDto) {
|
||||
return R.ok(gateRepairRecordService.addRecord(stGateRepairRecordDto));
|
||||
}
|
||||
|
||||
@Operation(summary = "更新检修记录")
|
||||
@PostMapping("/update")
|
||||
public R<String> update(@RequestBody @Validated(Update.class) StGateRepairRecordDto stGateRepairRecordDto) {
|
||||
return R.ok(gateRepairRecordService.updateRecord(stGateRepairRecordDto));
|
||||
}
|
||||
|
||||
@Operation(summary = "检修记录详情")
|
||||
@GetMapping("/detail")
|
||||
public R<GateRepairDetailVo> detail(@RequestParam("recordId") Long recordId) {
|
||||
return R.ok(gateRepairRecordService.detail(recordId));
|
||||
}
|
||||
|
||||
@Operation(summary = "根据recordId删除检修记录")
|
||||
@Parameter(name = "recordId", description = "检修记录id")
|
||||
@GetMapping("/delete")
|
||||
public R<String> delete(@RequestParam("recordId") Long recordId){
|
||||
return R.ok(gateRepairRecordService.deleteRecord(recordId));
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page")
|
||||
public R<Page<GateRepairRecordVo>> page(@RequestBody @Validated GateRepairRecordPageSo gateRepairRecordPageSo) {
|
||||
return R.ok(gateRepairRecordService.page(gateRepairRecordPageSo));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.annotation.Get;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.entity.vo.ReservoirLevelVo;
|
||||
import com.gunshi.project.xyt.entity.vo.StPptnVo;
|
||||
import com.gunshi.project.xyt.model.StRcvReal;
|
||||
import com.gunshi.project.xyt.model.StResB;
|
||||
import com.gunshi.project.xyt.model.StResPersonRef;
|
||||
import com.gunshi.project.xyt.service.*;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName HomePageController
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/2/1 15:34
|
||||
*/
|
||||
|
||||
@Slf4j
|
||||
@Tag(name = "首页接口")
|
||||
@RestController
|
||||
@RequestMapping("/homePage")
|
||||
public class HomePageController {
|
||||
|
||||
@Resource
|
||||
private ReservoirLevelService reservoirLevelService;
|
||||
@Resource
|
||||
private RainMonitoringService rainMonitoringService;
|
||||
@Resource
|
||||
private BasicInfoService basicInfoService;
|
||||
@Resource
|
||||
private StResPersonRefService stResPersonRefService;
|
||||
@Resource
|
||||
private WarningInfoService warningInfoService;
|
||||
@Resource
|
||||
private MonitorEquipmentHealthService monitorEquipmentHealthService;
|
||||
|
||||
@Get(path = "/reservoirLevel/queryChfllv",summary = "根据水库ID查询校核洪水位")
|
||||
public R<BigDecimal> queryChfllvByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryChfllvByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryFlLowLimLev",summary = "根据水库ID查询汛限水位")
|
||||
public R<BigDecimal> queryFlLowLimLevByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryFlLowLimLevByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryTotCap",summary = "根据水库ID查询总库容")
|
||||
public R<BigDecimal> queryTotCapByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryTotCapByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryDeadLev",summary = "根据水库ID查询死水位")
|
||||
public R<BigDecimal> queryDeadLevByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryDeadLevByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryRz",summary = "根据水库ID查询实时水位")
|
||||
public R<BigDecimal> queryRzByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryRzByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryRzSevenDay",summary = "根据水库ID查询七日内每小时平均水库水位")
|
||||
public R<List<ReservoirLevelVo>> queryRzSevenDayByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryRzSevenDayByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryRzMonth",summary = "根据水库ID查询一个月内每天八点水库水位")
|
||||
public R<List<ReservoirLevelVo>> queryRzMonthByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryRzMonthByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/reservoirLevel/queryRzHalfYear",summary = "根据水库ID查询半年每天八点水库水位")
|
||||
public R<List<ReservoirLevelVo>> queryRzHalfYearByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(reservoirLevelService.queryRzHalfYearByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/rainMonitoring/queryTodayDrp",summary = "根据水库ID查询今天降雨量")
|
||||
public R<List<StPptnVo>> queryTodayDrpByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(rainMonitoringService.queryTodayDrpByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/rainMonitoring/queryYesterdayDrp",summary = "根据水库ID查询昨天降雨量")
|
||||
public R<List<StPptnVo>> queryYesterdayDrpByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(rainMonitoringService.queryYesterdayDrpByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/rainMonitoring/query24HourDrp",summary = "根据水库ID查询24小时内的降雨量")
|
||||
public R<List<StPptnVo>> query24HourDrpByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(rainMonitoringService.query24HourDrpByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/rainMonitoring/query72HourDrp",summary = "根据水库ID查询72小时内的降雨量")
|
||||
public R<List<StPptnVo>> query72HourDrpByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(rainMonitoringService.query72HourDrpByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/rainMonitoring/querySevenDayDrp",summary = "根据水库ID查询七日的降雨量")
|
||||
public R<List<StPptnVo>> querySevenDayDrpByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(rainMonitoringService.querySevenDayDrpByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/basicInfo/queryStResBasicInfo",summary = "根据水库ID查询水库基础信息")
|
||||
public R<StResB> queryStResBasicInfoByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(basicInfoService.queryStResBasicInfoByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/personInCharge/queryStResPersonRef",summary = "根据水库ID查询责任人信息")
|
||||
public R<List<StResPersonRef>> queryStResPersonRefByResId(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(stResPersonRefService.queryStResPersonRefByResId(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/warningInfo/reservoirExceededLimit",summary = "判断水库超汛限是否正常")
|
||||
public R<Boolean> ReservoirExceededLimit(@Parameter(description = "水库ID") @RequestParam("resId") String resId){
|
||||
return R.ok(warningInfoService.ReservoirExceededLimit(resId));
|
||||
}
|
||||
|
||||
@Get(path = "/monitorEquipmentHealth/queryAllStcdCount",summary = "查看监测设备总数")
|
||||
public R<Long> queryAllStcdCount(){
|
||||
return R.ok(monitorEquipmentHealthService.queryAllStcdCount());
|
||||
}
|
||||
|
||||
@Get(path = "/monitorEquipmentHealth/queryOnlineStcdCount",summary = "查看近一个小时检测设备在线数量")
|
||||
public R<Long> queryOnlineStcdCount(){
|
||||
return R.ok(monitorEquipmentHealthService.queryOnlineStcdCount());
|
||||
}
|
||||
|
||||
@Get(path = "/monitorEquipmentHealth/queryOffLineStcd",summary = "查看离线设备清单")
|
||||
public R<List<StRcvReal>> queryOffLineStcd(){
|
||||
return R.ok(monitorEquipmentHealthService.queryOffLineStcd());
|
||||
}
|
||||
|
||||
@Get(path = "/monitorEquipmentHealth/queryOnLineStcd",summary = "查看在线设备清单")
|
||||
public R<List<StRcvReal>> queryOnLineStcd(){
|
||||
return R.ok(monitorEquipmentHealthService.queryOnLineStcd());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.db.dao.BaseDao;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.service.AbstractModelWithAttachService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 通用按id删除
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-31
|
||||
*/
|
||||
public interface ICommonDeleteByIdWithAttach<Model extends AbstractModelWithAttachService.GetFileIds, AutoMapper extends IMapper<Model>, AutoDao extends BaseDao<AutoMapper, Model>,
|
||||
AttachModel, AttachModelAutoMapper extends IMapper<AttachModel>, AttachModelAutoDao extends BaseDao<AttachModelAutoMapper, AttachModel>> {
|
||||
|
||||
AbstractModelWithAttachService<Model,AutoMapper,AutoDao,AttachModel, AttachModelAutoMapper, AttachModelAutoDao> getModelService();
|
||||
|
||||
Serializable getId(Serializable id);
|
||||
|
||||
@Operation(summary = "按id删除")
|
||||
@GetMapping("/deleteById/{id}")
|
||||
default R<Boolean> commonDeleteById(@Schema(name = "id") @PathVariable("id") Serializable id) {
|
||||
return R.ok(getModelService().removeById(getId(id)));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.file.controller.IFileController;
|
||||
import com.gunshi.file.model.FileDescriptor;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RequestPart;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-03-12
|
||||
*/
|
||||
public interface ICommonFileController extends IFileController {
|
||||
|
||||
String getGroupId();
|
||||
|
||||
String getBusinessType();
|
||||
|
||||
R<FileDescriptor> uploadSingle(
|
||||
@Parameter(description = "文件") @RequestPart("file") MultipartFile file,
|
||||
@Parameter(description = "上传者用户id", hidden = true) @RequestParam(value = "userId", required = false) Long userId,
|
||||
@Parameter(hidden = true) HttpServletRequest request) throws Exception;
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.db.dao.BaseDao;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.service.AbstractModelWithAttachService;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-03-19
|
||||
*/
|
||||
public interface ICommonInsertWithAttach<Model extends AbstractModelWithAttachService.GetFileIds, AutoMapper extends IMapper<Model>, AutoDao extends BaseDao<AutoMapper, Model>,
|
||||
AttachModel, AttachModelAutoMapper extends IMapper<AttachModel>, AttachModelAutoDao extends BaseDao<AttachModelAutoMapper, AttachModel>> {
|
||||
AbstractModelWithAttachService<Model,AutoMapper,AutoDao,AttachModel, AttachModelAutoMapper, AttachModelAutoDao> getModelService();
|
||||
|
||||
void customSetFieldForInsert(Model model);
|
||||
|
||||
@Operation(summary = "实体类新增")
|
||||
@PostMapping("/insert")
|
||||
default R<Model> commonInsert(@Validated(Insert.class) @RequestBody Model model) {
|
||||
customSetFieldForInsert(model);
|
||||
boolean result = getModelService().save(model);
|
||||
return R.ok(result ? model : null);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.db.dao.BaseDao;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-03-19
|
||||
*/
|
||||
public interface ICommonQueryAttach<AttachModel, IdType, AutoMapper extends IMapper<AttachModel>, AutoDao extends BaseDao<AutoMapper, AttachModel>> {
|
||||
AutoDao getAttachAutoDao();
|
||||
|
||||
String getAttachBzIdName();
|
||||
|
||||
IdType getId(Serializable id);
|
||||
|
||||
@Operation(summary = "按id查询")
|
||||
@GetMapping("/attach/getById/{id}")
|
||||
default R<AttachModel> commonGetAttachById(@Schema(name = "id") @PathVariable("id") Serializable id) {
|
||||
return R.ok(getAttachAutoDao().getById(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "按bzId查询")
|
||||
@GetMapping("/attach/getByBzId/{bzId}")
|
||||
default R<List<AttachModel>> commonGetAttachByBzId(@Schema(name = "bzId") @PathVariable("bzId") Serializable bzId) {
|
||||
return R.ok(getAttachAutoDao().list(new QueryWrapper<AttachModel>().eq(getAttachBzIdName(), getId(bzId))));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.db.dao.BaseDao;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.service.AbstractModelWithAttachService;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* 通用实体类新增
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-02-19
|
||||
*/
|
||||
public interface ICommonUpdateByIdWithAttach<Model extends AbstractModelWithAttachService.GetFileIds, AutoMapper extends IMapper<Model>, AutoDao extends BaseDao<AutoMapper, Model>,
|
||||
AttachModel, AttachModelAutoMapper extends IMapper<AttachModel>, AttachModelAutoDao extends BaseDao<AttachModelAutoMapper, AttachModel>> {
|
||||
|
||||
AbstractModelWithAttachService<Model,AutoMapper,AutoDao,AttachModel, AttachModelAutoMapper, AttachModelAutoDao> getModelService();
|
||||
|
||||
void customSetFieldForUpdate(Model model);
|
||||
|
||||
@Operation(summary = "实体类修改")
|
||||
@PostMapping("/update")
|
||||
default R<Model> commonUpdateById(@Validated(Update.class) @RequestBody Model model) {
|
||||
customSetFieldForUpdate(model);
|
||||
boolean result = getModelService().updateById(model);
|
||||
return R.ok(result ? model : null);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.gunshi.core.GunShiCoreProperties;
|
||||
import com.gunshi.file.controller.BaseLoginFileController;
|
||||
import com.gunshi.logging.access.annotation.LoginLogging;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-18
|
||||
*/
|
||||
@RestController
|
||||
@Tag(name = "Ping")
|
||||
@RequestMapping("/ping")
|
||||
public class PingController extends BaseLoginFileController {
|
||||
@Autowired
|
||||
private GunShiCoreProperties properties;
|
||||
|
||||
@Operation(summary = "测试接口")
|
||||
@LoginLogging
|
||||
@GetMapping("")
|
||||
public String ping() {
|
||||
return "pong";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.mapper.RcvLogUpRMapper;
|
||||
import com.gunshi.project.xyt.model.*;
|
||||
import com.gunshi.project.xyt.model.RcvLogUpRAutoDao;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.so.RcvLogUpRSo;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import com.gunshi.project.xyt.vo.RcvLogUpRVo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报文日志数据接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rcv/log")
|
||||
@Tag(name = "统一接收-报文日志")
|
||||
public class RcvLogUpRController {
|
||||
|
||||
@Autowired
|
||||
private RcvLogUpRMapper mapper;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/up/page")
|
||||
public R<Page<RcvLogUpRVo>> page(@RequestBody RcvLogUpRSo so) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<RcvLogUpRVo> page = mapper.page(so.getPageSo().toPage(), so);
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.annotation.Get;
|
||||
import com.gunshi.core.annotation.Post;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.file.model.FileDescriptor;
|
||||
import com.gunshi.project.xyt.entity.so.RescueGoodsPageSo;
|
||||
import com.gunshi.project.xyt.model.RescueGoodsB;
|
||||
import com.gunshi.project.xyt.model.RescueGoodsFile;
|
||||
import com.gunshi.project.xyt.model.RescueGoodsFileAutoDao;
|
||||
import com.gunshi.project.xyt.model.RescueGoodsFileAutoMapper;
|
||||
import com.gunshi.project.xyt.service.AbstractModelWithAttachService;
|
||||
import com.gunshi.project.xyt.service.RescueGoodsService;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by wanyan on 2024/3/18
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@Tag(name = "抢险物资")
|
||||
@RestController
|
||||
@RequestMapping("/rescue/goods")
|
||||
public class RescueGoodsBController extends AbstractCommonFileController implements
|
||||
ICommonInsertWithAttach<RescueGoodsB, com.gunshi.project.xyt.model.RescueGoodsBAutoMapper, com.gunshi.project.xyt.model.RescueGoodsBAutoDao, RescueGoodsFile, RescueGoodsFileAutoMapper, RescueGoodsFileAutoDao>,
|
||||
ICommonUpdateByIdWithAttach<RescueGoodsB, com.gunshi.project.xyt.model.RescueGoodsBAutoMapper, com.gunshi.project.xyt.model.RescueGoodsBAutoDao, RescueGoodsFile, RescueGoodsFileAutoMapper, RescueGoodsFileAutoDao>,
|
||||
ICommonDeleteByIdWithAttach<RescueGoodsB, com.gunshi.project.xyt.model.RescueGoodsBAutoMapper, com.gunshi.project.xyt.model.RescueGoodsBAutoDao, RescueGoodsFile, RescueGoodsFileAutoMapper, RescueGoodsFileAutoDao>,
|
||||
ICommonQueryAttach<RescueGoodsFile, Long, RescueGoodsFileAutoMapper, RescueGoodsFileAutoDao>
|
||||
{
|
||||
|
||||
|
||||
@Autowired
|
||||
private RescueGoodsFileAutoDao fileAutoDao;
|
||||
|
||||
@Autowired
|
||||
private RescueGoodsService rescueGoodsService;
|
||||
|
||||
|
||||
@Override
|
||||
public void customSetFieldForUpdate(RescueGoodsB model) {
|
||||
model.setTm(new Date());
|
||||
}
|
||||
|
||||
@Override
|
||||
public RescueGoodsFileAutoDao getAttachAutoDao() {
|
||||
return fileAutoDao;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAttachBzIdName() {
|
||||
return "goods_id";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getId(Serializable id) {
|
||||
return Long.valueOf(id.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractModelWithAttachService<RescueGoodsB, com.gunshi.project.xyt.model.RescueGoodsBAutoMapper, com.gunshi.project.xyt.model.RescueGoodsBAutoDao, RescueGoodsFile, RescueGoodsFileAutoMapper, RescueGoodsFileAutoDao> getModelService() {
|
||||
return rescueGoodsService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void customSetFieldForInsert(RescueGoodsB model) {
|
||||
long id = IdWorker.getId();
|
||||
model.setGoodsId(id);
|
||||
model.setTm(new Date());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupId() {
|
||||
return "RescueGoodsB";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
@Post(path = "/page/query", summary = "分页查询")
|
||||
public R<Page<RescueGoodsB>> pageQuery(@RequestBody @Validated RescueGoodsPageSo RescueGoodsPageSo) {
|
||||
return R.ok(rescueGoodsService.pageQuery(RescueGoodsPageSo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
@Get(path = "/detail", summary = "详情")
|
||||
public R<List<FileDescriptor>> detail(@Schema(name = "goodsId",description = "物资id") @RequestParam(name = "goodsId") Long goodsId) {
|
||||
return R.ok(rescueGoodsService.detail(goodsId));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StFlowR;
|
||||
import com.gunshi.project.xyt.model.StFlowRAutoDao;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 流量数据接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rcv/flowr")
|
||||
@Tag(name = "统一接收-流量数据")
|
||||
public class StFlowRController {
|
||||
|
||||
@Autowired
|
||||
private StFlowRAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page/{chid}")
|
||||
public R<Page<StFlowR>> page(@RequestBody RtuDataSo so, @PathVariable("chid") String chid) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<StFlowR> page;
|
||||
if (!stcds.isEmpty()) {
|
||||
LambdaQueryWrapper<StFlowR> query = new LambdaQueryWrapper<StFlowR>().in(StFlowR::getStcd, stcds).eq(StFlowR::getChid, chid);
|
||||
page = dao.page(so.getPageSo().toPage(), query);
|
||||
} else {
|
||||
page = dao.page(so.getPageSo().toPage());
|
||||
}
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StImgR;
|
||||
import com.gunshi.project.xyt.model.StImgRAutoDao;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 图像数据接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rcv/imgr")
|
||||
@Tag(name = "统一接收-图像数据")
|
||||
public class StImgRController {
|
||||
|
||||
@Autowired
|
||||
private StImgRAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page/{chid}")
|
||||
public R<Page<StImgR>> page(@RequestBody RtuDataSo so, @PathVariable("chid") String chid) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<StImgR> page;
|
||||
if (!stcds.isEmpty()) {
|
||||
LambdaQueryWrapper<StImgR> query = new LambdaQueryWrapper<StImgR>().in(StImgR::getStcd, stcds).eq(StImgR::getChid, chid);
|
||||
page = dao.page(so.getPageSo().toPage(), query);
|
||||
} else {
|
||||
page = dao.page(so.getPageSo().toPage());
|
||||
}
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StPptnR;
|
||||
import com.gunshi.project.xyt.model.StPptnRAutoDao;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 雨量数据接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rcv/pptnr")
|
||||
@Tag(name = "统一接收-雨量数据")
|
||||
public class StPptnRController {
|
||||
|
||||
@Autowired
|
||||
private StPptnRAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page")
|
||||
public R<Page<StPptnR>> page(@RequestBody RtuDataSo so) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<StPptnR> page;
|
||||
if (!stcds.isEmpty()) {
|
||||
LambdaQueryWrapper<StPptnR> query = new LambdaQueryWrapper<StPptnR>().in(StPptnR::getStcd, stcds);
|
||||
page = dao.page(so.getPageSo().toPage(), query);
|
||||
} else {
|
||||
page = dao.page(so.getPageSo().toPage());
|
||||
}
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StRcvReal;
|
||||
import com.gunshi.project.xyt.model.StRcvRealAutoDao;
|
||||
import com.gunshi.project.xyt.so.StRcvRealSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 监测类数据实时表
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-29
|
||||
*/
|
||||
@RestController
|
||||
@Tag(name = "统一接收-监测类数据实时表")
|
||||
@RequestMapping("/rcv/real")
|
||||
public class StRcvRealController {
|
||||
|
||||
@Autowired
|
||||
private StRcvRealAutoDao dao;
|
||||
|
||||
@PostMapping("/page")
|
||||
@Operation(summary = "分页查询")
|
||||
public R<Page<StRcvReal>> page(@RequestBody StRcvRealSo so) {
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
StRcvReal entity = dao.getById(so.getStcd());
|
||||
List<StRcvReal> list = List.of(entity);
|
||||
return R.ok(new Page<StRcvReal>(1, 1, 1).setRecords(list));
|
||||
}
|
||||
|
||||
LambdaQueryWrapper<StRcvReal> query = new LambdaQueryWrapper<>();
|
||||
if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
query.like(StRcvReal::getStnm, so.getStnm());
|
||||
}
|
||||
if (StringUtils.isNotEmpty(so.getSttp())) {
|
||||
query.eq(StRcvReal::getSttp, so.getSttp());
|
||||
}
|
||||
if (StringUtils.isNotEmpty(so.getProtocolId())) {
|
||||
query.eq(StRcvReal::getProtocolId, so.getProtocolId());
|
||||
}
|
||||
query.orderByDesc(StRcvReal::getTm);
|
||||
|
||||
return R.ok(dao.page(so.getPageSo().toPage(), query));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StRsvrR;
|
||||
import com.gunshi.project.xyt.model.StRsvrRAutoDao;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 水位数据接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rcv/rsvrr")
|
||||
@Tag(name = "统一接收-水位数据")
|
||||
public class StRsvrRController {
|
||||
|
||||
@Autowired
|
||||
private StRsvrRAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page")
|
||||
public R<Page<StRsvrR>> page(@RequestBody RtuDataSo so) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<StRsvrR> page;
|
||||
if (!stcds.isEmpty()) {
|
||||
LambdaQueryWrapper<StRsvrR> query = new LambdaQueryWrapper<StRsvrR>().in(StRsvrR::getStcd, stcds);
|
||||
page = dao.page(so.getPageSo().toPage(), query);
|
||||
} else {
|
||||
page = dao.page(so.getPageSo().toPage());
|
||||
}
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import com.gunshi.project.xyt.model.StStbprpBAutoMapper;
|
||||
import com.gunshi.project.xyt.model.StVoltageR;
|
||||
import com.gunshi.project.xyt.model.StVoltageRAutoDao;
|
||||
import com.gunshi.project.xyt.so.RtuDataSo;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电压数据接口
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rcv/voltager")
|
||||
@Tag(name = "统一接收-电压数据")
|
||||
public class StVoltageRController {
|
||||
|
||||
@Autowired
|
||||
private StVoltageRAutoDao dao;
|
||||
|
||||
@Autowired
|
||||
private StStbprpBAutoMapper stbprpDao;
|
||||
|
||||
@Operation(summary = "分页查询")
|
||||
@PostMapping("/page")
|
||||
public R<Page<StVoltageR>> page(@RequestBody RtuDataSo so) {
|
||||
List<String> stcds = new ArrayList<>();
|
||||
if (StringUtils.isNotEmpty(so.getStcd())) {
|
||||
stcds.add(so.getStcd());
|
||||
} else if (StringUtils.isNotEmpty(so.getStnm())) {
|
||||
stcds.addAll(stbprpDao.selectList(
|
||||
new LambdaQueryWrapper<StStbprpB>().like(StStbprpB::getStnm, so.getStnm())
|
||||
).stream().map(StStbprpB::getStcd).toList());
|
||||
}
|
||||
|
||||
Page<StVoltageR> page;
|
||||
if (!stcds.isEmpty()) {
|
||||
LambdaQueryWrapper<StVoltageR> query = new LambdaQueryWrapper<StVoltageR>().in(StVoltageR::getStcd, stcds);
|
||||
page = dao.page(so.getPageSo().toPage(), query);
|
||||
} else {
|
||||
page = dao.page(so.getPageSo().toPage());
|
||||
}
|
||||
|
||||
return R.ok(page);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
package com.gunshi.project.xyt.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.StWaterQualityR;
|
||||
import com.gunshi.project.xyt.service.WaterQualityService;
|
||||
import com.gunshi.project.xyt.so.WaterQualityPageSo;
|
||||
import com.gunshi.project.xyt.validate.markers.QueryPage;
|
||||
import com.gunshi.project.xyt.validate.markers.QueryTimeRange;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by xusan on 2024/1/23
|
||||
*
|
||||
* @author xusan
|
||||
* @version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@Slf4j
|
||||
@Tag(name = "水质整编接口-controller", description = "水质整编接口")
|
||||
@Data
|
||||
@RequestMapping("/waterQuality")
|
||||
public class WaterQualityController {
|
||||
|
||||
private final WaterQualityService waterqualityService;
|
||||
|
||||
// @Operation(summary = "新增水质监测数据")
|
||||
// @ApiResponses(value = {
|
||||
// @ApiResponse(responseCode = "200",description = "成功")
|
||||
// })
|
||||
// @PostMapping("/add")
|
||||
// public R<String> add(@RequestBody @Validated StWaterQualityR organization){
|
||||
// return R.ok(waterqualityService.add(organization));
|
||||
// }
|
||||
//
|
||||
// @Operation(summary = "更新水质监测数据")
|
||||
// @ApiResponses(value = {
|
||||
// @ApiResponse(responseCode = "200",description = "成功")
|
||||
// })
|
||||
// @PostMapping("/update")
|
||||
// public R<String> update(@RequestBody @Validated StWaterQualityR organization){
|
||||
// return R.ok(waterqualityService.update(organization));
|
||||
// }
|
||||
//
|
||||
// @Operation(summary = "根据id删除水质监测数据")
|
||||
// @Parameter(name = "id", description = "水质监测数据id")
|
||||
// @DeleteMapping("/delete")
|
||||
// public R<String> delete(@RequestParam("id") String orgCode){
|
||||
// return R.ok(waterqualityService.delete(orgCode));
|
||||
// }
|
||||
|
||||
@Operation(summary = "水质监测数据分页查询")
|
||||
@PostMapping("/page")
|
||||
public R<Page<StWaterQualityR>> page(
|
||||
@Validated({QueryPage.class, QueryTimeRange.class}) @RequestBody
|
||||
WaterQualityPageSo waterQualityPageSo
|
||||
) {
|
||||
return R.ok(waterqualityService.page(waterQualityPageSo));
|
||||
}
|
||||
|
||||
@Operation(summary = "水质监测数据导出")
|
||||
@PostMapping("/export")
|
||||
public void export(
|
||||
@Validated({QueryPage.class, QueryTimeRange.class}) @RequestBody
|
||||
WaterQualityPageSo waterQualityPageSo, HttpServletResponse response) {
|
||||
waterqualityService.export(waterQualityPageSo, response);
|
||||
}
|
||||
|
||||
@Operation(summary = "水质监测数据导入")
|
||||
@PostMapping("/import")
|
||||
public R<Boolean> importExcel(@RequestParam("file") MultipartFile file) {
|
||||
if (file.isEmpty()) {
|
||||
return R.error(400, "请选择上传文件",false);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
return R.ok( waterqualityService.importExcel(file));
|
||||
|
||||
} catch (IOException e) {
|
||||
|
||||
return R.error(500, "文件上传失败: " + e.getMessage(),false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/26
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Schema(description = "表单参数校验对象")
|
||||
public class CheckStringSearch {
|
||||
@Schema(description="编码/名称/关键词")
|
||||
@NotBlank(message = "关键词不能为空")
|
||||
private String keyword;
|
||||
@Schema(description="修改时候传入当前对象id,用来排除自己 数值类型")
|
||||
private Long id;
|
||||
}
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.gunshi.db.dto.PageSo;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/25
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Schema(description="通用关键词分页查询对象")
|
||||
public class GeneralSearch {
|
||||
@Schema(description="关键词:名称,编码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String keyword;
|
||||
|
||||
@NotNull(message = "分页参数不能为空")
|
||||
@Schema(description = "分页参数")
|
||||
private PageSo pageSo;
|
||||
|
||||
@JsonIgnore
|
||||
public void setPage(int page){
|
||||
if (pageSo == null){
|
||||
pageSo = new PageSo();
|
||||
}
|
||||
pageSo.setPageNumber(page);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public void setPageSize(int pageSize){
|
||||
if (pageSo == null){
|
||||
pageSo = new PageSo();
|
||||
}
|
||||
pageSo.setPageSize(pageSize);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.gunshi.project.xyt.model.StAddvcdD;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/25
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description = "行政区划树信息")
|
||||
public class StAddvcdTreeVo extends StAddvcdD {
|
||||
private String parentCode;
|
||||
private List<StAddvcdTreeVo> children = Lists.newArrayList();
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.gunshi.project.xyt.model.StCameraAreaB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/24
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description="视频点树信息")
|
||||
public class StCameraAreaTreeVo extends StCameraAreaB implements Serializable {
|
||||
@Schema(description="子区域对象")
|
||||
private List<StCameraAreaTreeVo> children = Lists.newArrayList();
|
||||
@Schema(description="监控点列表")
|
||||
private List<StCameraVo> cameraList = Lists.newArrayList();
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.gunshi.project.xyt.model.StCameraAreaB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/24
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Data
|
||||
@Schema(description="视频点树信息")
|
||||
public class StCameraAreaVo extends StCameraAreaB implements Serializable {
|
||||
@Schema(description="上级区域名称")
|
||||
private String pidName;
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/25
|
||||
*/
|
||||
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description = "视频点查询对象")
|
||||
public class StCameraSearch extends GeneralSearch {
|
||||
@Schema(description="监控点类型 传枚举ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long camType;
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.gunshi.project.xyt.model.StCameraB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/25
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description = "视频点信息返回值")
|
||||
public class StCameraVo extends StCameraB {
|
||||
@Schema(description = "视频区域名称")
|
||||
private String camArNm;
|
||||
@Schema(description = "视频类型名称")
|
||||
private String camTypeNm;
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.gunshi.project.xyt.model.StSpgPztb;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/26
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description="渗压设备信息表")
|
||||
public class StSpgPztbVo extends StSpgPztb {
|
||||
@Schema(description="所在断面名称")
|
||||
private String crNm;
|
||||
@Schema(description="所在断面编码")
|
||||
private String crCd;
|
||||
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.gunshi.project.xyt.model.StSpgSpprmp;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/26
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description="渗流设备信息表")
|
||||
public class StSpgSpprmpVo extends StSpgSpprmp {
|
||||
@Schema(description="所在断面名称")
|
||||
private String crNm;
|
||||
@Schema(description="所在断面编码")
|
||||
private String crCd;
|
||||
@Schema(description="公式名称")
|
||||
private String formulaName;
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/26
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class StStbprpVo extends StStbprpB implements Serializable {
|
||||
@Schema(description="归属协议名称")
|
||||
private String protocolName;
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/26
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description = "监测站点查询对象")
|
||||
public class StcdSearch extends GeneralSearch {
|
||||
@Schema(description="归属协议")
|
||||
private Long protocols;
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.basedata;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.gunshi.project.xyt.model.SysDictB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Sun Lejun
|
||||
* @version 1.0
|
||||
* @date 2024/1/25
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Schema(description="系统字典表")
|
||||
public class SysDictVo extends SysDictB implements Serializable {
|
||||
@Schema(description="子类")
|
||||
private List<SysDictVo> children = Lists.newArrayList();
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StDamB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StDamDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/25 11:08
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="大坝基础信息DTO")
|
||||
@Data
|
||||
public class StDamDto extends StDamB {
|
||||
|
||||
/**
|
||||
* 大坝代码
|
||||
*/
|
||||
@Schema(description="大坝代码")
|
||||
@NotNull(message = "大坝代码不能为空")
|
||||
private String damCode;
|
||||
|
||||
/**
|
||||
* 大坝名称
|
||||
*/
|
||||
@Schema(description="大坝名称")
|
||||
@NotNull(message = "大坝名称不能为空")
|
||||
private String damName;
|
||||
}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StEqptB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StEqptDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/26 9:47
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="量水堰基础信息DTO")
|
||||
@Data
|
||||
public class StEqptDto extends StEqptB {
|
||||
/**
|
||||
* 量水设施代码
|
||||
*/
|
||||
@Schema(description="量水设施代码")
|
||||
@NotNull(message = "量水设施代码不能为空")
|
||||
private String wmeqCode;
|
||||
|
||||
/**
|
||||
* 量水设施名称
|
||||
*/
|
||||
@Schema(description="量水设施名称")
|
||||
@NotNull(message = "量水设施名称不能为空")
|
||||
private String wmeqName;
|
||||
|
||||
/**
|
||||
* 所属行政区划代码
|
||||
*/
|
||||
@Schema(description="所属行政区划代码")
|
||||
@NotNull(message = "所属行政区划代码不能为空")
|
||||
private String addvcd;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@Schema(description="经度")
|
||||
@NotNull(message = "经度不能为空")
|
||||
private BigDecimal lgtd;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@Schema(description="纬度")
|
||||
@NotNull(message = "维度不能为空")
|
||||
private BigDecimal lttd;
|
||||
}
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StGateB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StGateDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/26 9:35
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="闸阀基础信息DTO")
|
||||
@Data
|
||||
public class StGateDto extends StGateB {
|
||||
/**
|
||||
* 闸阀编码
|
||||
*/
|
||||
@Schema(description="闸阀编码")
|
||||
@NotNull(message = "闸阀编码不能为空")
|
||||
private String gateCd;
|
||||
|
||||
/**
|
||||
* 闸阀名称
|
||||
*/
|
||||
@Schema(description="闸阀名称")
|
||||
@NotNull(message = "闸阀名称不能为空")
|
||||
private String gateNm;
|
||||
|
||||
/**
|
||||
* 所在位置
|
||||
*/
|
||||
@Schema(description="所在位置")
|
||||
@NotNull(message = "所在位置不能为空")
|
||||
private String gtlc;
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StGateRepairDetail;
|
||||
import com.gunshi.project.xyt.model.StGateRepairRecord;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class StGateRepairRecordDto extends StGateRepairRecord {
|
||||
|
||||
@Schema(description="维修情况")
|
||||
private List<StGateRepairDetail> repairDetails;
|
||||
|
||||
}
|
||||
|
|
@ -1,114 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StResB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName ResDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/24 14:43
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "水库的基础信息DTO")
|
||||
@Data
|
||||
public class StResDto extends StResB {
|
||||
|
||||
/**
|
||||
* 水库名称
|
||||
*/
|
||||
@Schema(description = "水库名称")
|
||||
@NotNull(message = "水库名称不能为空")
|
||||
private String resName;
|
||||
|
||||
/**
|
||||
* 水库代码
|
||||
*/
|
||||
@Schema(description = "水库代码")
|
||||
@NotNull(message = "水库代码不能为空")
|
||||
private String resCode;
|
||||
|
||||
/**
|
||||
* 行政区划编码
|
||||
*/
|
||||
@Schema(description = "行政区划编码")
|
||||
@NotNull(message = "行政区化编码不能为空")
|
||||
private String addvcd;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@Schema(description = "经度")
|
||||
@NotNull(message = "经度不能为空")
|
||||
private BigDecimal lgtd;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@Schema(description = "纬度")
|
||||
@NotNull(message = "维度不能为空")
|
||||
private BigDecimal lttd;
|
||||
|
||||
/**
|
||||
* 设计洪水位
|
||||
*/
|
||||
@Schema(description = "设计洪水位")
|
||||
@NotNull(message = "设计洪水位不能为空")
|
||||
private BigDecimal dsfllv;
|
||||
|
||||
/**
|
||||
* 校核洪水位
|
||||
*/
|
||||
@Schema(description = "校核洪水位")
|
||||
@NotNull(message = "校核洪水位不能为空")
|
||||
private BigDecimal chfllv;
|
||||
|
||||
/**
|
||||
* 正常蓄水位
|
||||
*/
|
||||
@Schema(description = "正常蓄水位")
|
||||
@NotNull(message = "正常蓄水位不能为空")
|
||||
private BigDecimal normWatLev;
|
||||
|
||||
/**
|
||||
* 死水位
|
||||
*/
|
||||
@Schema(description = "死水位")
|
||||
@NotNull(message = "死水位不能为空")
|
||||
private BigDecimal deadLev;
|
||||
|
||||
/**
|
||||
* 总库容
|
||||
*/
|
||||
@Schema(description = "总库容")
|
||||
@NotNull(message = "总库容不能为空")
|
||||
private BigDecimal totCap;
|
||||
|
||||
/**
|
||||
* 汛限水位
|
||||
*/
|
||||
@Schema(description = "汛限水位")
|
||||
@NotNull(message = "汛限水位不能为空")
|
||||
private BigDecimal flLowLimLev;
|
||||
|
||||
/**
|
||||
* 集雨面积
|
||||
*/
|
||||
@Schema(description = "集雨面积")
|
||||
@NotNull(message = "集雨面积不能为空")
|
||||
private BigDecimal watShedArea;
|
||||
|
||||
/**
|
||||
* 水库规模 dict_id
|
||||
*/
|
||||
@Schema(description = "水库规模 dict_id")
|
||||
@NotNull(message = "水库规模不能为空")
|
||||
private Long engScal;
|
||||
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.gunshi.project.xyt.model.StResFileRef;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StResFileRefDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/29 11:47
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="水库附件信息DTO")
|
||||
@Data
|
||||
public class StResFileRefDto extends StResFileRef {
|
||||
|
||||
/**
|
||||
* 水库ID
|
||||
*/
|
||||
@Schema(description="水库ID")
|
||||
@NotNull(message = "水库ID不能为空")
|
||||
private Long resId;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@Schema(description="序号")
|
||||
@NotNull(message = "需要不能为空")
|
||||
private Integer sortOn;
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StResPersonRef;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StResPersonRefDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/29 11:20
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="水库责任人信息DTO")
|
||||
@Data
|
||||
public class StResPersonRefDto extends StResPersonRef {
|
||||
/**
|
||||
* 水库ID
|
||||
*/
|
||||
@Schema(description="水库ID")
|
||||
@NotNull(message = "水库ID不能为空")
|
||||
private Long resId;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@Schema(description="序号")
|
||||
@NotNull(message = "需要不能为空")
|
||||
private Integer sortOn;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StResStcdRef;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StResStcdRefDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/29 14:24
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="水库测站关系信息DTO")
|
||||
@Data
|
||||
public class StResStcdRefDto extends StResStcdRef {
|
||||
|
||||
/**
|
||||
* 水库ID
|
||||
*/
|
||||
@Schema(description="水库ID")
|
||||
@NotNull(message = "水库ID不能为空")
|
||||
private Long resId;
|
||||
|
||||
/**
|
||||
* 测站编码
|
||||
*/
|
||||
@Schema(description="测站编码")
|
||||
@NotNull(message = "测站编码不能为空")
|
||||
private String stcd;
|
||||
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.gunshi.project.xyt.model.StRvB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StRvDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/25 9:28
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="河流的基础信息DTO")
|
||||
@Data
|
||||
public class StRvDto extends StRvB {
|
||||
/**
|
||||
* 河流代码
|
||||
*/
|
||||
@Schema(description="河流代码")
|
||||
@NotNull(message = "河流代码不能为空")
|
||||
private String rvCode;
|
||||
|
||||
/**
|
||||
* 河流名称
|
||||
*/
|
||||
@Schema(description="河流名称")
|
||||
@NotNull(message = "河流名称不能为空")
|
||||
private String rvName;
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 李赛
|
||||
* @date 2022-06-26 15:27
|
||||
*/
|
||||
@Data
|
||||
public class StStchBDto {
|
||||
|
||||
@Schema(description="站点编码")
|
||||
@NotNull(message = "站点编码不能为空")
|
||||
private String stcd;
|
||||
|
||||
@Schema(description="采集项编码数组")
|
||||
private List<String> chcds;
|
||||
}
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.gunshi.project.xyt.model.StZvarlB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StZvarlDto
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/29 10:47
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description="库容曲线信息DTO")
|
||||
@Data
|
||||
public class StZvarlDto extends StZvarlB {
|
||||
/**
|
||||
* 水库ID
|
||||
*/
|
||||
@Schema(description="水库ID")
|
||||
@NotNull(message = "水库ID不能为空")
|
||||
private Long resId;
|
||||
|
||||
/**
|
||||
* 点序号
|
||||
*/
|
||||
@Schema(description="点序号")
|
||||
@NotNull(message = "点序号不能为空")
|
||||
private Integer ptno;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.gunshi.project.xyt.entity.so;
|
||||
|
||||
import com.gunshi.db.dto.PageSo;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by wanyan on 2024/3/19
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "抢险物资分页查询对象")
|
||||
public class RescueGoodsPageSo {
|
||||
|
||||
@NotNull(message = "分页参数不能为空")
|
||||
@Schema(description = "分页参数")
|
||||
private PageSo pageSo;
|
||||
|
||||
@Schema(description="政区/工程( 1 政区 2 工程)")
|
||||
@NotNull(message = "type不能为空")
|
||||
private Integer type;
|
||||
|
||||
@Schema(description="编码")
|
||||
private String code;
|
||||
|
||||
@Schema(description="物资名称")
|
||||
private String goodsName;
|
||||
|
||||
@Schema(description = "防汛仓库")
|
||||
private Long warehouseId;
|
||||
|
||||
@Schema(description = "排序字段")
|
||||
private String sortField;
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.gunshi.project.xyt.model.StGateBHistory;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
|
||||
/**
|
||||
* 闸门开关历史信息
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class GateHistoryInfoVo extends StGateBHistory {
|
||||
|
||||
|
||||
@Schema(description = "闸阀名称")
|
||||
private String gateNm;
|
||||
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 闸门详细信息
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class GateInfoVo {
|
||||
|
||||
@Schema(description = "闸阀ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long gateId;
|
||||
|
||||
@Schema(description = "闸阀名称")
|
||||
private String gateNm;
|
||||
|
||||
@Schema(description = "开关状态 1:全开 2:50%开 3:关")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description="数据采集时间")
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date tm;
|
||||
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.gunshi.project.xyt.model.StGateRepairDetail;
|
||||
import com.gunshi.project.xyt.model.StGateRepairRecord;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 闸门检修详细信息
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class GateRepairDetailVo extends StGateRepairRecord {
|
||||
|
||||
@Schema(description = "详细信息")
|
||||
private List<StGateRepairDetail> details;
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.gunshi.project.xyt.model.StGateRepairRecord;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 闸门详细信息
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class GateRepairRecordVo extends StGateRepairRecord {
|
||||
|
||||
@Schema(description = "闸阀名称")
|
||||
private String gateNm;
|
||||
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName ReservoirLevelVo
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/2/5 11:38
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class ReservoirLevelVo {
|
||||
|
||||
/**
|
||||
* 水库水位实时水位采集时间
|
||||
*/
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date time;
|
||||
|
||||
/**
|
||||
* 时间段内平均水库水位
|
||||
*/
|
||||
private BigDecimal avgRZ;
|
||||
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 闸门详细信息
|
||||
* Created by wanyan on 2024/1/26
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class StFlowRVo {
|
||||
|
||||
@Schema(description = "测站编码")
|
||||
private String stcd;
|
||||
|
||||
@Schema(description="测站名称")
|
||||
private String stnm;
|
||||
|
||||
@Schema(description = "采集时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date tm;
|
||||
|
||||
@Schema(description = "通道")
|
||||
private String chid;
|
||||
|
||||
@Schema(description = "小时流量")
|
||||
private BigDecimal hq;
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StPptnVo
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/2/6 10:48
|
||||
*/
|
||||
@Data
|
||||
public class StPptnVo {
|
||||
|
||||
/**
|
||||
* 采集时间
|
||||
*/
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date time;
|
||||
|
||||
/**
|
||||
* 时间段内平均水库水位
|
||||
*/
|
||||
private BigDecimal sumDrp;
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
package com.gunshi.project.xyt.entity.vo;
|
||||
|
||||
import com.gunshi.db.dto.PageSo;
|
||||
import com.gunshi.project.xyt.model.StResB;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @ClassName StResPageSo
|
||||
* @Author Huang Qianxiang
|
||||
* @Date 2024/1/24 16:25
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class StResVo extends StResB {
|
||||
|
||||
/**
|
||||
* 测站编码
|
||||
*/
|
||||
@Schema(description = "测站编码")
|
||||
private String STCD;
|
||||
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
package com.gunshi.project.xyt.enums;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-25
|
||||
*/
|
||||
public enum RcvDataType {
|
||||
/**
|
||||
* 雨量数据
|
||||
*/
|
||||
PPTN("PPTN"),
|
||||
/**
|
||||
* 水位数据
|
||||
*/
|
||||
RSVR("RSVR"),
|
||||
/**
|
||||
* 流量数据
|
||||
*/
|
||||
FLOW("FLOW"),
|
||||
/**
|
||||
* 图像数据
|
||||
*/
|
||||
IMG("IMG");
|
||||
|
||||
private final String value;
|
||||
|
||||
RcvDataType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.gunshi.project.xyt.vo.BzProtocolInfoChart1Vo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-30
|
||||
*/
|
||||
@Mapper
|
||||
public interface BzProtocolInfoChartMapper {
|
||||
|
||||
@Select("""
|
||||
SELECT p.id protocolId,p.name protocolName,b.STCD,b.STNM FROM REL_PROTOCOL_ST_MAPPING ps
|
||||
LEFT JOIN BZ_PROTOCOL_INFO p ON ps.PROTOCOL_ID=p.ID
|
||||
LEFT JOIN ST_STBPRP_B b ON ps.STCD=b.STCD
|
||||
""")
|
||||
List<BzProtocolInfoChart1Vo> chart1();
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.so.BzServiceResourceSo;
|
||||
import com.gunshi.project.xyt.vo.BzServiceResourceMonitorVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* 服务资源及监控联合查询Mapper
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface BzServiceResourceMonitorRMapper {
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT r.*,sr.name FROM BZ_SERVICE_RESOURCE_MONITOR_R r
|
||||
LEFT JOIN BZ_SERVICE_RESOURCE sr ON r.SR_ID=sr.ID
|
||||
WHERE 1=1
|
||||
<if test="so.name != null and so.name != ''">
|
||||
AND sr.NAME LIKE CONCAT('%',#{so.name},'%')
|
||||
</if>
|
||||
<if test="so.timeSo.start != null">
|
||||
AND r.LAST_CHANGE_TM >= #{so.timeSo.start}
|
||||
</if>
|
||||
<if test="so.timeSo.end != null">
|
||||
AND r.LAST_CHANGE_TM <= #{so.timeSo.end}
|
||||
</if>
|
||||
</script>
|
||||
""")
|
||||
Page<BzServiceResourceMonitorVo> page(@Param("page") Page page, @Param("so") BzServiceResourceSo so);
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.so.RcvLogUpRSo;
|
||||
import com.gunshi.project.xyt.vo.RcvLogUpRVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-30
|
||||
*/
|
||||
@Mapper
|
||||
public interface RcvLogUpRMapper {
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT r.*,p.name protocolName,b.stnm FROM RCV_LOG_UP_R r
|
||||
LEFT JOIN BZ_PROTOCOL_INFO p ON r.PROTOCOL_ID = p.ID
|
||||
LEFT JOIN ST_STBPRP_B b ON r.STCD = b.STCD
|
||||
WHERE 1=1
|
||||
<if test="so.protocolId != null">
|
||||
AND r.PROTOCOL_ID = #{so.protocolId}
|
||||
</if>
|
||||
<if test="so.stcd != null">
|
||||
AND r.STCD = #{so.stcd}
|
||||
</if>
|
||||
<if test="so.stnm != null">
|
||||
AND r.STCD IN (SELECT STCD FROM ST_STBPRP_B WHERE STNM LIKE CONCAT('%', #{so.stnm}, '%'))
|
||||
</if>
|
||||
<if test="so.dateTimeRangeSo != null">
|
||||
AND r.RECEIVE_TM >= #{so.dateTimeRangeSo.start}
|
||||
AND r.RECEIVE_TM <= #{so.dateTimeRangeSo.end}
|
||||
</if>
|
||||
</script>
|
||||
""")
|
||||
Page<RcvLogUpRVo> page(@Param("page") Page page, @Param("so") RcvLogUpRSo so);
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.file.model.FileDescriptor;
|
||||
import com.gunshi.project.xyt.entity.so.RescueGoodsPageSo;
|
||||
import com.gunshi.project.xyt.model.RescueGoodsB;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface RescueGoodsMapper extends BaseMapper<RescueGoodsB> {
|
||||
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
select
|
||||
<if test = "obj.type == 1">
|
||||
t.*,s.warehouse_name
|
||||
</if>
|
||||
<if test = "obj.type == 2">
|
||||
t.*
|
||||
</if>
|
||||
from public._rescue_goods_b t
|
||||
<if test = "obj.type == 1">
|
||||
left join public._warehouse_b s on t.warehouse_id = s.warehouse_id
|
||||
</if>
|
||||
where t.type = #{obj.type}
|
||||
<if test="obj.code != null and obj.code !=''">
|
||||
and t.code = #{obj.code}
|
||||
</if>
|
||||
<if test="obj.goodsName != null and obj.goodsName !=''">
|
||||
and t.goods_name LIKE concat('%',#{obj.goodsName},'%')
|
||||
</if>
|
||||
<if test="obj.warehouseId != null">
|
||||
and t.warehouse_id =#{obj.warehouseId}
|
||||
</if>
|
||||
<if test="obj.sortField != null and obj.sortField !=''">
|
||||
order by ${obj.sortField} asc
|
||||
</if>
|
||||
</script>
|
||||
""")
|
||||
Page<RescueGoodsB> pageQuery(@Param("page") Page<RescueGoodsB> page,@Param("obj") RescueGoodsPageSo RescueGoodsPageSo);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
select * from public.file_descriptor
|
||||
where file_id in (select file_id from public.rescue_goods_file where goods_id = #{goodsId})
|
||||
</script>
|
||||
""")
|
||||
List<FileDescriptor> detail(@Param("goodsId") Long goodsId);
|
||||
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.entity.basedata.StAddvcdTreeVo;
|
||||
import com.gunshi.project.xyt.model.StAddvcdD;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StAddvcdDMapper extends IMapper<StAddvcdD> {
|
||||
int batchInsert(@Param("list") List<StAddvcdD> list);
|
||||
|
||||
List<StAddvcdTreeVo> queryTree(@Param("addvcd") String addvcd);
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.StCameraAreaTreeVo;
|
||||
import com.gunshi.project.xyt.entity.basedata.StCameraAreaVo;
|
||||
import com.gunshi.project.xyt.model.StCameraAreaB;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StCameraAreaBMapper extends BaseMapper<StCameraAreaB> {
|
||||
int batchInsert(@Param("list") List<StCameraAreaB> list);
|
||||
|
||||
Page<StCameraAreaVo> queryStCameraAreaBList(Page<StCameraAreaVo> page, @Param("name") String name);
|
||||
|
||||
List<StCameraAreaVo> queryStCameraAreaBList(@Param("name") String name);
|
||||
List<StCameraAreaTreeVo> queryStCameraAreaBTree();
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.StCameraSearch;
|
||||
import com.gunshi.project.xyt.entity.basedata.StCameraVo;
|
||||
import com.gunshi.project.xyt.model.StCameraB;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StCameraBMapper extends BaseMapper<StCameraB> {
|
||||
int batchInsert(@Param("list") List<StCameraB> list);
|
||||
|
||||
/**
|
||||
* 检查视频序列化和名称是否存在
|
||||
* @param stCameraB 视频信息
|
||||
* @return true 存在 false 不存在
|
||||
*/
|
||||
boolean chechExists(@Param("obj") StCameraB stCameraB);
|
||||
|
||||
/**
|
||||
* 按查询条件查询视频列表
|
||||
* @param page 分页信息
|
||||
* @param obj 查询条件
|
||||
* @return 视频列表
|
||||
*/
|
||||
Page<StCameraVo> queryBySearch(Page<StCameraVo> page, @Param("obj") StCameraSearch obj);
|
||||
|
||||
/**
|
||||
* 查询所有视频
|
||||
* @return 视频列表
|
||||
*/
|
||||
List<StCameraVo> getAll();
|
||||
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StDamB;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StDamBMapper extends BaseMapper<StDamB> {
|
||||
int batchInsert(@Param("list") List<StDamB> list);
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StEqptB;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StEqptBMapper extends BaseMapper<StEqptB> {
|
||||
int batchInsert(@Param("list") List<StEqptB> list);
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StGateBFile;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StGateBFileMapper extends BaseMapper<StGateBFile> {
|
||||
int batchInsert(@Param("list") List<StGateBFile> list);
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.entity.vo.GateHistoryInfoVo;
|
||||
import com.gunshi.project.xyt.entity.vo.GateInfoVo;
|
||||
import com.gunshi.project.xyt.entity.vo.StFlowRVo;
|
||||
import com.gunshi.project.xyt.model.StGateB;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface StGateBMapper extends IMapper<StGateB> {
|
||||
int batchInsert(@Param("list") List<StGateB> list);
|
||||
|
||||
|
||||
List<GateInfoVo> queryGateList();
|
||||
|
||||
Page<GateHistoryInfoVo> gateHistory(Page<Object> page,@Param("gateId") Long gateId,@Param("startTime") String startTime,@Param("endTime") String endTime);
|
||||
|
||||
List<StFlowRVo> queryFlowList();
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.entity.vo.GateHistoryInfoVo;
|
||||
import com.gunshi.project.xyt.entity.vo.GateInfoVo;
|
||||
import com.gunshi.project.xyt.entity.vo.GateRepairRecordVo;
|
||||
import com.gunshi.project.xyt.model.StGateB;
|
||||
import com.gunshi.project.xyt.model.StGateRepairRecord;
|
||||
import com.gunshi.project.xyt.so.GateRepairRecordPageSo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface StGateRepairRecordMapper extends IMapper<StGateRepairRecord> {
|
||||
Page<GateRepairRecordVo> page(Page<Object> page,@Param("param") GateRepairRecordPageSo gateRepairRecordPageSo,@Param("startTime") String startTime,@Param("endTime") String endTime);
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.GeneralSearch;
|
||||
import com.gunshi.project.xyt.model.StMoncrB;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StMoncrBMapper extends BaseMapper<StMoncrB> {
|
||||
int batchInsert(@Param("list") List<StMoncrB> list);
|
||||
|
||||
Page<StMoncrB> queryBySearch(Page<StMoncrB> page, @Param("obj") GeneralSearch search);
|
||||
}
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.entity.vo.StPptnVo;
|
||||
import com.gunshi.project.xyt.model.StPptnR;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface StPptnRMapper extends BaseMapper<StPptnR> {
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_PPTN_R.TM), 0) as time,
|
||||
SUM(DRP) as sumDRP
|
||||
FROM ST_RES_STCD_REF,ST_PPTN_R
|
||||
WHERE ST_PPTN_R.TM >= #{startTime} AND
|
||||
ST_PPTN_R.TM < #{endTime} AND
|
||||
ST_RES_STCD_REF.STCD = ST_PPTN_R.STCD AND
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_PPTN_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<StPptnVo> queryHourTimeQuantumDrpByResId(@Param("resId") String resId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(DAY, DATEDIFF(DAY, 0, ST_PPTN_R.TM), 0) as time,
|
||||
SUM(DRP) as sumDRP
|
||||
FROM ST_RES_STCD_REF,ST_PPTN_R
|
||||
WHERE ST_PPTN_R.TM >= #{startTime} AND
|
||||
ST_PPTN_R.TM < #{endTime} AND
|
||||
ST_RES_STCD_REF.STCD = ST_PPTN_R.STCD AND
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(DAY, DATEDIFF(DAY, 0, ST_PPTN_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<StPptnVo> queryDayTimeQuantumDrpByResId(@Param("resId") String resId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_PPTN_R.TM), 0) as time,
|
||||
SUM(DRP) as sumDRP
|
||||
FROM ST_RES_STCD_REF,ST_PPTN_R
|
||||
WHERE ST_PPTN_R.TM >= dateadd(HOUR,-24,getdate()) AND
|
||||
ST_PPTN_R.TM < GETDATE() AND
|
||||
ST_RES_STCD_REF.STCD = ST_PPTN_R.STCD and
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_PPTN_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<StPptnVo> query24HourDrpByResId(@Param("resId") String resId);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_PPTN_R.TM), 0) as time,
|
||||
SUM(DRP) as sumDRP
|
||||
FROM ST_RES_STCD_REF,ST_PPTN_R
|
||||
WHERE ST_PPTN_R.TM >= dateadd(HOUR,-72,getdate()) AND
|
||||
ST_PPTN_R.TM < GETDATE() AND
|
||||
ST_RES_STCD_REF.STCD = ST_PPTN_R.STCD and
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_PPTN_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<StPptnVo> query72HourDrpByResId(@Param("resId") String resId);
|
||||
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.gunshi.project.xyt.model.StRcvReal;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface StRcvRealMapper {
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT count(*)from ST_RCV_REAL
|
||||
WHERE TM >= DATEADD(HOUR, -1, GETDATE());
|
||||
</script>
|
||||
""")
|
||||
Long queryOnlineStcdCount();
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT ST_RCV_REAL.STCD,
|
||||
ST_RCV_REAL.TM,
|
||||
ST_RCV_REAL.STNM,
|
||||
ST_RCV_REAL.STTP,
|
||||
ST_RCV_REAL.DATA,
|
||||
ST_RCV_REAL.PROTOCOL_ID,
|
||||
ST_RCV_REAL.PROTOCOL_NAME
|
||||
FROM ST_RCV_REAL
|
||||
WHERE TM < DATEADD(HOUR, -1, GETDATE())
|
||||
</script>
|
||||
""")
|
||||
List<StRcvReal> queryOffLineStcd();
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT ST_RCV_REAL.STCD,
|
||||
ST_RCV_REAL.TM,
|
||||
ST_RCV_REAL.STNM,
|
||||
ST_RCV_REAL.STTP,
|
||||
ST_RCV_REAL.DATA,
|
||||
ST_RCV_REAL.PROTOCOL_ID,
|
||||
ST_RCV_REAL.PROTOCOL_NAME
|
||||
FROM ST_RCV_REAL
|
||||
WHERE TM >= DATEADD(HOUR, -1, GETDATE())
|
||||
</script>
|
||||
""")
|
||||
List<StRcvReal> queryOnLineStcd();
|
||||
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StResB;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StResBMapper extends BaseMapper<StResB> {
|
||||
int batchInsert(@Param("list") List<StResB> list);
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StResFileRef;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StResFileRefMapper extends BaseMapper<StResFileRef> {
|
||||
int batchInsert(@Param("list") List<StResFileRef> list);
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StResPersonRef;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StResPersonRefMapper extends BaseMapper<StResPersonRef> {
|
||||
int batchInsert(@Param("list") List<StResPersonRef> list);
|
||||
}
|
||||
|
|
@ -1,70 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.entity.vo.ReservoirLevelVo;
|
||||
import com.gunshi.project.xyt.model.StResStcdRef;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
@Mapper
|
||||
public interface StResStcdRefMapper extends BaseMapper<StResStcdRef> {
|
||||
|
||||
int batchInsert(@Param("list") List<StResStcdRef> list);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
select top 1 RZ from ST_RES_STCD_REF,ST_RSVR_R
|
||||
where ST_RES_STCD_REF.STCD = ST_RSVR_R.STCD and
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
order by ST_RSVR_R.TM Desc;
|
||||
</script>
|
||||
""")
|
||||
BigDecimal queryRzByResId(@Param("resId") String resId);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_RSVR_R.TM), 0) as time,
|
||||
AVG(RZ) as avgRZ
|
||||
FROM ST_RES_STCD_REF,ST_RSVR_R
|
||||
WHERE ST_RSVR_R.TM >= dateadd(day,-7,getdate()) AND ST_RSVR_R.TM < GETDATE() AND
|
||||
ST_RES_STCD_REF.STCD = ST_RSVR_R.STCD and
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_RSVR_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<ReservoirLevelVo> queryRzSevenDayByResId(@Param("resId") String resId);
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_RSVR_R.TM), 0) as time,
|
||||
AVG(RZ) as avgRZ
|
||||
FROM ST_RES_STCD_REF,ST_RSVR_R
|
||||
WHERE ST_RSVR_R.TM >= dateadd(day,-30,getdate()) AND ST_RSVR_R.TM < GETDATE() AND
|
||||
ST_RES_STCD_REF.STCD = ST_RSVR_R.STCD and
|
||||
DATEPART(HOUR, ST_RSVR_R.TM) = 8 AND
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_RSVR_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<ReservoirLevelVo> queryRzMonthByResId(@Param("resId") String resId);
|
||||
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_RSVR_R.TM), 0) as time,
|
||||
AVG(RZ) as avgRZ
|
||||
FROM ST_RES_STCD_REF,ST_RSVR_R
|
||||
WHERE ST_RSVR_R.TM >= dateadd(MONTH,-6,getdate()) AND ST_RSVR_R.TM < GETDATE() AND
|
||||
ST_RES_STCD_REF.STCD = ST_RSVR_R.STCD and
|
||||
DATEPART(HOUR, ST_RSVR_R.TM) = 8 AND
|
||||
ST_RES_STCD_REF.RES_ID = #{resId}
|
||||
GROUP BY DATEADD(HOUR, DATEDIFF(HOUR, 0, ST_RSVR_R.TM), 0)
|
||||
</script>
|
||||
""")
|
||||
List<ReservoirLevelVo> queryRzHalfYearByResId(@Param("resId") String resId);
|
||||
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StRvB;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StRvBMapper extends BaseMapper<StRvB> {
|
||||
int batchInsert(@Param("list") List<StRvB> list);
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.CheckStringSearch;
|
||||
import com.gunshi.project.xyt.entity.basedata.GeneralSearch;
|
||||
import com.gunshi.project.xyt.entity.basedata.StSpgPztbVo;
|
||||
import com.gunshi.project.xyt.model.StSpgPztb;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StSpgPztbMapper extends BaseMapper<StSpgPztb> {
|
||||
int batchInsert(@Param("list") List<StSpgPztb> list);
|
||||
|
||||
/**
|
||||
* 校验编码是否存在
|
||||
* @param obj 校验对象
|
||||
* @return 是否存在
|
||||
*/
|
||||
boolean checkCode(@Param("obj") CheckStringSearch obj);
|
||||
|
||||
Page<StSpgPztbVo> queryBySearch(Page<StSpgPztbVo> page, @Param("obj") GeneralSearch search);
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.CheckStringSearch;
|
||||
import com.gunshi.project.xyt.entity.basedata.GeneralSearch;
|
||||
import com.gunshi.project.xyt.entity.basedata.StSpgSpprmpVo;
|
||||
import com.gunshi.project.xyt.model.StSpgSpprmp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StSpgSpprmpMapper extends BaseMapper<StSpgSpprmp> {
|
||||
int batchInsert(@Param("list") List<StSpgSpprmp> list);
|
||||
|
||||
/**
|
||||
* 校验编码是否存在
|
||||
* @param obj 校验对象
|
||||
* @return 是否存在
|
||||
*/
|
||||
boolean checkCode(@Param("obj")CheckStringSearch obj);
|
||||
|
||||
Page<StSpgSpprmpVo> queryBySearch(Page<StSpgSpprmpVo> page, @Param("obj") GeneralSearch search);
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.project.xyt.entity.basedata.StStbprpVo;
|
||||
import com.gunshi.project.xyt.entity.basedata.StcdSearch;
|
||||
import com.gunshi.project.xyt.model.StStbprpB;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StStbprpBMapper extends BaseMapper<StStbprpB> {
|
||||
int batchInsert(@Param("list") List<StStbprpB> list);
|
||||
|
||||
/**
|
||||
* 根据站点编码/名称查询站点
|
||||
* @param page 分页对象
|
||||
* @param search 查询对象
|
||||
* @return 站点集合
|
||||
*/
|
||||
Page<StStbprpVo> queryBySearch(Page<StStbprpVo> page, @Param("obj") StcdSearch search);
|
||||
|
||||
/**
|
||||
* 根据站点编码/名称查询站点
|
||||
* @param search 查询对象
|
||||
* @return 站点集合
|
||||
*/
|
||||
List<StStbprpVo> queryBySearch(@Param("obj") StcdSearch search);
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.entity.dto.StStchBDto;
|
||||
import com.gunshi.project.xyt.model.StStchB;
|
||||
import com.gunshi.project.xyt.so.StStchBSo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by XuSan on 2024/1/30.
|
||||
*
|
||||
* @author XuSan
|
||||
* @version 1.0
|
||||
*/
|
||||
public interface StStchBMapper extends BaseMapper<StStchB>, IMapper<StStchB> {
|
||||
/**
|
||||
* 返回所有
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<StStchB> queryBySearch(@Param("obj") StStchBDto findDto);
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page
|
||||
* @param findDto
|
||||
* @return
|
||||
*/
|
||||
IPage<StStchB> queryBySearch(@Param("page") IPage<StStchB> page, @Param("obj") StStchBSo findDto);
|
||||
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.gunshi.project.xyt.model.StZvarlB;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface StZvarlBMapper extends BaseMapper<StZvarlB> {
|
||||
int batchInsert(@Param("list") List<StZvarlB> list);
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.entity.basedata.GeneralSearch;
|
||||
import com.gunshi.project.xyt.entity.basedata.SysDictVo;
|
||||
import com.gunshi.project.xyt.model.SysDictB;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface SysDictBMapper extends IMapper<SysDictB> {
|
||||
int batchInsert(@Param("list") List<SysDictB> list);
|
||||
|
||||
/**
|
||||
* 检查顶层的字典,编码和名称是否存在
|
||||
* @param sysDictB 字典信息
|
||||
* @return true存在 false不存在
|
||||
*/
|
||||
boolean checkExistCodeAndName(@Param("obj") SysDictB sysDictB);
|
||||
|
||||
/**
|
||||
* 根据名称和编码查询PID和ID
|
||||
* @param search 查询条件
|
||||
* @return PID和ID
|
||||
*/
|
||||
Page<SysDictB> queryPidBySearch(Page<Long> page, @Param("obj") GeneralSearch search);
|
||||
|
||||
/**
|
||||
* 根据PID和ID查询字典记录
|
||||
* @param id 字典ID or PID
|
||||
* @return 字典
|
||||
*/
|
||||
List<SysDictVo> queryByPidOrIds(@Param("obj") List<Long> id);
|
||||
|
||||
List<SysDictVo> getAll();
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
package com.gunshi.project.xyt.mapper;
|
||||
|
||||
import com.gunshi.db.dao.IMapper;
|
||||
import com.gunshi.project.xyt.model.StWaterQualityR;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by XuSan on 2024/1/23.
|
||||
*
|
||||
* @author XuSan
|
||||
* @version 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface WaterQualityMapper extends IMapper<StWaterQualityR> {
|
||||
}
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 视频AI告警数据
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-29
|
||||
*/
|
||||
@Data
|
||||
@TableName("BZ_CAMERA_AI_IMG")
|
||||
@Schema(description = "视频AI告警数据")
|
||||
public class BzCameraAIImgR {
|
||||
@MppMultiId("STCD")
|
||||
@Schema(description = "测站编码")
|
||||
private String stcd;
|
||||
|
||||
@MppMultiId("TM")
|
||||
@Schema(description = "采集时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date tm;
|
||||
|
||||
@MppMultiId("CHID")
|
||||
@Schema(description = "通道")
|
||||
private String chid;
|
||||
|
||||
@TableField("IMG_PATH")
|
||||
@Schema(description = "图片文件存储路径")
|
||||
private String imgPath;
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 接收协议
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-23
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
@Schema(description = "接收协议")
|
||||
@TableName("BZ_PROTOCOL_INFO")
|
||||
public class BzProtocolInfo {
|
||||
|
||||
@NotEmpty(message = "协议编码不能为空", groups = {Insert.class, Update.class})
|
||||
@Schema(description = "协议编码")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@NotEmpty(message = "协议名称不能为空", groups = {Insert.class})
|
||||
@Schema(description = "协议名称")
|
||||
@TableField("NAME")
|
||||
private String name;
|
||||
|
||||
@NotEmpty(message = "IP地址不能为空", groups = {Insert.class})
|
||||
@Schema(description = "IP地址")
|
||||
@TableField("IP")
|
||||
private String ip;
|
||||
|
||||
@NotNull(message = "监听端口不能为空", groups = {Insert.class})
|
||||
@Schema(description = "监听端口")
|
||||
@TableField("PORT")
|
||||
private Integer port;
|
||||
|
||||
@NotEmpty(message = "协议标准不能为空", groups = {Insert.class})
|
||||
@Schema(description = "协议标准")
|
||||
@TableField("STD")
|
||||
private String std;
|
||||
|
||||
@Schema(description = "传输协议,TCP或UDP")
|
||||
@TableField("TRANS")
|
||||
private String trans;
|
||||
|
||||
@Schema(description = "是否启用", $comment = "1启用,0不启用,默认1")
|
||||
@TableField(value = "ENABLE")
|
||||
private Integer enable;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@TableField(value = "CREATE_TM")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date createTm;
|
||||
}
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 数据共享服务公共资源属性
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-24
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
@Schema(description = "服务资源")
|
||||
@TableName("BZ_SERVICE_RESOURCE")
|
||||
public class BzServiceResource {
|
||||
|
||||
@Schema(description = "id")
|
||||
@TableId("ID")
|
||||
@NotEmpty(message = "服务ID不能为空", groups = {Update.class})
|
||||
private String id;
|
||||
|
||||
@Schema(description = "服务名称")
|
||||
@TableField("NAME")
|
||||
@NotEmpty(message = "服务名称不能为空", groups = {Insert.class})
|
||||
private String name;
|
||||
|
||||
@Schema(description = "服务描述")
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "服务类型")
|
||||
@TableField("SERVICE_TYPE")
|
||||
private String serviceType;
|
||||
|
||||
@Schema(description = "服务地址")
|
||||
@TableField("URL")
|
||||
private String url;
|
||||
|
||||
@Schema(description = "服务端口")
|
||||
@TableField("PORT")
|
||||
private Integer port;
|
||||
|
||||
@Schema(description = "服务提供者")
|
||||
@TableField("PROVIDER")
|
||||
private String provider;
|
||||
|
||||
@Schema(description = "目标表")
|
||||
@TableField("TARGET_TABLE")
|
||||
private String targetTable;
|
||||
|
||||
@Schema(description = "目标时间依据字段")
|
||||
@TableField("TARGET_TM_FIELD")
|
||||
private String targetTmField;
|
||||
|
||||
@Schema(description = "路由")
|
||||
@TableField("ROUTE")
|
||||
private String route;
|
||||
|
||||
@Schema(description = "联系人")
|
||||
@TableField("CONTACT")
|
||||
private String contact;
|
||||
|
||||
@Schema(description = "联系电话")
|
||||
@TableField("PHONE")
|
||||
private String phone;
|
||||
|
||||
@Schema(description = "注册日期")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
||||
@TableField("REGISTER_DATE")
|
||||
private Date registerDate;
|
||||
|
||||
@Schema(description = "修改日期")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
@TableField("UPDATE_TM")
|
||||
private Date updateTm;
|
||||
|
||||
@Schema(description = "是否启用,0-停用,1-启用")
|
||||
@TableField("ENABLE")
|
||||
private Integer enable;
|
||||
|
||||
@Schema(description = "状态,0-不在线/异常,1-在线/正常")
|
||||
@TableField("STATUS")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "最近数据时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
@TableField("LAST_DATA_TM")
|
||||
private Date lastChangeTm;
|
||||
}
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 服务资源监控记录
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-24
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
@Schema(description = "服务资源监控记录")
|
||||
@TableName("BZ_SERVICE_RESOURCE_MONITOR_R")
|
||||
public class BzServiceResourceMonitorR {
|
||||
|
||||
@Schema(description = "id")
|
||||
@TableId("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "服务资源id")
|
||||
@TableField("SR_ID")
|
||||
private String srId;
|
||||
|
||||
@Schema(description = "最近数据时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
@TableField("LAST_CHANGE_TM")
|
||||
private Date lastChangeTm;
|
||||
|
||||
@Schema(description = "共享数据(条)")
|
||||
@TableField("RECORD_COUNT")
|
||||
private Long recordCount;
|
||||
|
||||
@Schema(description = "共享站点数量")
|
||||
@TableField("ST_COUNT")
|
||||
private Integer stCount;
|
||||
|
||||
@Schema(description = "今日共享数据(条)")
|
||||
@TableField("TODAY_COUNT")
|
||||
private Long todayCount;
|
||||
|
||||
@Schema(description = "本周共享数据(条)")
|
||||
@TableField("WEEKLY_COUNT")
|
||||
private Long weeklyCount;
|
||||
|
||||
@Schema(description = "本月共享数据(条)")
|
||||
@TableField("MONTHLY_COUNT")
|
||||
private Long monthlyCount;
|
||||
|
||||
@Schema(description = "本年共享数据(条)")
|
||||
@TableField("YEARLY_COUNT")
|
||||
private Long yearlyCount;
|
||||
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 服务类型
|
||||
* 纯字典,无意义,无关联,应标
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-23
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
@Schema(description = "服务类型")
|
||||
@TableName("BZ_SERVICE_RESOURCE_TYPE")
|
||||
public class BzServiceResourceType {
|
||||
@Schema(description = "id")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "服务类型")
|
||||
@TableField("TYPE")
|
||||
@NotEmpty(message = "服务类型不能为空", groups = {Insert.class, Update.class})
|
||||
private String type;
|
||||
|
||||
@Schema(description = "服务名称")
|
||||
@TableField("NAME")
|
||||
@NotEmpty(message = "服务类型不能为空", groups = {Insert.class, Update.class})
|
||||
private String name;
|
||||
}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 报文日志
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-25
|
||||
*/
|
||||
@Data
|
||||
@TableName("RCV_LOG_UP_R")
|
||||
public class RcvLogDownR {
|
||||
@TableId("ID")
|
||||
private Long id;
|
||||
|
||||
@TableField("PROTOCOL_ID")
|
||||
@Schema(description = "协议ID")
|
||||
private Long protocolId;
|
||||
|
||||
@TableField("MSG")
|
||||
@Schema(description = "报文")
|
||||
private String msg;
|
||||
|
||||
@TableField("SEND_TM")
|
||||
@Schema(description = "发送时间")
|
||||
private Date sendTm;
|
||||
|
||||
@TableField("ENCODED")
|
||||
@Schema(description = "编码报文")
|
||||
private String encoded;
|
||||
|
||||
@TableField("STCD")
|
||||
@Schema(description = "测站编码")
|
||||
private String stcd;
|
||||
|
||||
@TableField("FUNCODE")
|
||||
@Schema(description = "功能码")
|
||||
private String funcode;
|
||||
|
||||
@TableField("ARK_ID")
|
||||
@Schema(description = "应答ID")
|
||||
private Long arkId;
|
||||
}
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.gunshi.core.dateformat.DateFormatString;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 报文日志
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-25
|
||||
*/
|
||||
@Data
|
||||
@TableName("RCV_LOG_UP_R")
|
||||
public class RcvLogUpR {
|
||||
@TableId("ID")
|
||||
private Long id;
|
||||
|
||||
@TableField("PROTOCOL_ID")
|
||||
@Schema(description = "协议ID")
|
||||
private String protocolId;
|
||||
|
||||
@TableField("ORIGINAL_MSG")
|
||||
@Schema(description = "原始报文")
|
||||
private String originalMsg;
|
||||
|
||||
@TableField("RECEIVE_TM")
|
||||
@Schema(description = "接收时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date receiveTm;
|
||||
|
||||
@TableField("DECODED")
|
||||
@Schema(description = "解码报文")
|
||||
private String decoded;
|
||||
|
||||
@TableField("DECODED_TM")
|
||||
@Schema(description = "解码时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date decodedTm;
|
||||
|
||||
@TableField("STCD")
|
||||
@Schema(description = "测站编码")
|
||||
private String stcd;
|
||||
|
||||
@TableField("FUNCODE")
|
||||
@Schema(description = "功能码")
|
||||
private String funcode;
|
||||
|
||||
@TableField("OBSERVE_TM")
|
||||
@Schema(description = "采集时间")
|
||||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||||
private Date observeTm;
|
||||
|
||||
@TableField("PARTIAL_SIZE")
|
||||
@Schema(description = "分包数量")
|
||||
private Integer partialSize;
|
||||
|
||||
@TableField("PARTIAL_INDEX")
|
||||
@Schema(description = "分包索引")
|
||||
private Integer partialIndex;
|
||||
|
||||
@TableField("ARK_ID")
|
||||
@Schema(description = "应答ID")
|
||||
private Long arkId;
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*
|
||||
* @author lyf
|
||||
* @version 1.0.0
|
||||
* @since 2024-01-30
|
||||
*/
|
||||
@Data
|
||||
@TableName("REL_PROTOCOL_ST_MAPPING")
|
||||
public class RelProtocolStMapping {
|
||||
@MppMultiId("PROTOCOL_ID")
|
||||
@Schema(description = "协议ID")
|
||||
private String protocolId;
|
||||
|
||||
@MppMultiId("STCD")
|
||||
@Schema(description = "测站编码")
|
||||
private String stcd;
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import com.gunshi.project.xyt.service.AbstractModelWithAttachService;
|
||||
import com.gunshi.project.xyt.validate.markers.Insert;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 抢险物资
|
||||
*/
|
||||
@Schema(description="抢险物资")
|
||||
@Data
|
||||
@TableName(value = "public.rescue_goods_b")
|
||||
public class RescueGoodsB implements Serializable, AbstractModelWithAttachService.GetFileIds {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "goods_id", type = IdType.INPUT)
|
||||
@Schema(description="主键")
|
||||
@NotNull(message = "主键不能为空", groups = {Update.class})
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long goodsId;
|
||||
|
||||
/**
|
||||
* 行政区划id/水库编码/水电站编码
|
||||
*/
|
||||
@MppMultiId
|
||||
@TableField(value = "code")
|
||||
@Schema(description="行政区划id/水库编码/水电站编码")
|
||||
@NotEmpty(message = "行政区划id/水库编码/水电站编码不能为空", groups = {Insert.class, Update.class})
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 类型 1政区 2工程
|
||||
*/
|
||||
@TableField(value = "type")
|
||||
@Schema(description="类型 1政区 2工程")
|
||||
@NotNull(message = "类型不能为空", groups = {Insert.class, Update.class})
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 物资名称
|
||||
*/
|
||||
@TableField(value = "goods_name")
|
||||
@Schema(description="物资名称")
|
||||
@Size(max = 100,message = "物资名称最大长度要小于 100")
|
||||
@NotEmpty(message = "物资名称不能为空", groups = {Insert.class, Update.class})
|
||||
private String goodsName;
|
||||
|
||||
/**
|
||||
* 物资类型(1抢险物资 2救生器材)
|
||||
*/
|
||||
@TableField(value = "goods_type")
|
||||
@Schema(description="物资类型(1抢险物资 2救生器材)")
|
||||
@NotNull(message = "物资类型不能为空", groups = {Insert.class, Update.class})
|
||||
private Integer goodsType;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
@TableField(value = "specs")
|
||||
@Schema(description="规格")
|
||||
private String specs;
|
||||
|
||||
/**
|
||||
* 单位(1个 2件 3米 4把 5台 6套 7副 8箱 9卷 10立方米 11平方米)
|
||||
*/
|
||||
@TableField(value = "unit")
|
||||
@Schema(description="单位(1个 2件 3米 4把 5台 6套 7副 8箱 9卷 10立方米 11平方米)")
|
||||
private Integer unit;
|
||||
|
||||
/**
|
||||
* 库存数量
|
||||
*/
|
||||
@TableField(value = "store_quantity")
|
||||
@Schema(description="库存数量")
|
||||
@NotNull(message = "库存数量不能为空", groups = {Insert.class, Update.class})
|
||||
private BigDecimal storeQuantity;
|
||||
|
||||
/**
|
||||
* 存放仓库
|
||||
*/
|
||||
@TableField(value = "warehouse_id")
|
||||
@Schema(description="存放仓库")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long warehouseId;
|
||||
|
||||
/**
|
||||
* 存放地点
|
||||
*/
|
||||
@TableField(value = "store_location")
|
||||
@Schema(description="存放地点")
|
||||
private String storeLocation;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@TableField(value = "contact_person")
|
||||
@Schema(description="联系人")
|
||||
@Size(max = 150,message = "联系人最大长度要小于 150", groups = {Insert.class, Update.class})
|
||||
private String contactPerson;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@TableField(value = "phone")
|
||||
@Schema(description="联系电话")
|
||||
@Size(max = 20,message = "联系电话最大长度要小于 20", groups = {Insert.class, Update.class})
|
||||
private String phone;
|
||||
|
||||
|
||||
/**
|
||||
* 时间戳
|
||||
*/
|
||||
@TableField(value = "tm")
|
||||
@Schema(description="时间戳")
|
||||
@NotNull(message = "时间戳不能为空")
|
||||
private Date tm;
|
||||
|
||||
@TableField(exist = false)
|
||||
@Schema(description = "文件id集合")
|
||||
private List<String> fileIds;
|
||||
|
||||
/**
|
||||
* 仓库名称
|
||||
*/
|
||||
@Schema(description="仓库名称")
|
||||
@TableField(exist = false)
|
||||
private String warehouseName;
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 抢险物资-附件
|
||||
*/
|
||||
@Schema(description="抢险物资-附件")
|
||||
@Data
|
||||
@TableName(value = "public.rescue_goods_file")
|
||||
public class RescueGoodsFile implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
@Schema(description="主键")
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 抢险物资id
|
||||
*/
|
||||
@TableField(value = "goods_id")
|
||||
@Schema(description="抢险物资id")
|
||||
private Long goodsId;
|
||||
|
||||
/**
|
||||
* 文件id
|
||||
*/
|
||||
@TableField(value = "file_id")
|
||||
@Schema(description="文件id")
|
||||
private Long fileId;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@TableField(value = "sort_on")
|
||||
@Schema(description="序号")
|
||||
private Integer sortOn;
|
||||
|
||||
/**
|
||||
* 时间戳
|
||||
*/
|
||||
@TableField(value = "tm")
|
||||
@Schema(description="时间戳")
|
||||
@NotNull(message = "时间戳不能为空")
|
||||
private Date tm;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public static final String COL_ID = "id";
|
||||
|
||||
public static final String COL_GOODS_ID = "goods_id";
|
||||
|
||||
public static final String COL_FILE_ID = "file_id";
|
||||
|
||||
public static final String COL_SORT_ON = "sort_on";
|
||||
|
||||
public static final String COL_TM = "tm";
|
||||
}
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 行政区划表
|
||||
*/
|
||||
@Schema(description = "行政区划表")
|
||||
@Data
|
||||
@TableName(value = "dbo.ST_ADDVCD_D")
|
||||
public class StAddvcdD {
|
||||
/**
|
||||
* 行政区划编码 15位到村组
|
||||
*/
|
||||
@TableId(value = "ADDVCD", type = IdType.INPUT)
|
||||
@Schema(description = "行政区划编码 15位到村组")
|
||||
@Size(max = 15, min = 15, message = "行政区划编码长度必须为15位")
|
||||
@NotBlank(message = "行政区划编码不能为空")
|
||||
private String addvcd;
|
||||
|
||||
/**
|
||||
* 行政区划名称
|
||||
*/
|
||||
@TableField(value = "ADDVNM")
|
||||
@Schema(description = "行政区划名称")
|
||||
@Size(max = 100, message = "行政区划名称长度不能超过100")
|
||||
@NotBlank(message = "行政区划名称不能为空")
|
||||
private String addvnm;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@TableField(value = "LGTD")
|
||||
@Schema(description = "经度", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private BigDecimal lgtd;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@TableField(value = "LTTD")
|
||||
@Schema(description = "纬度", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private BigDecimal lttd;
|
||||
|
||||
/**
|
||||
* 新建时间
|
||||
*/
|
||||
@TableField(value = "CREATE_TM")
|
||||
@Schema(description = "新建时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date createTm;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(value = "TM")
|
||||
@Schema(description = "修改时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date tm;
|
||||
|
||||
/**
|
||||
* 排序字段
|
||||
*/
|
||||
@TableField(value = "SORT_ON")
|
||||
@Schema(description = "排序字段")
|
||||
@NotNull(message = "排序字段不能为空")
|
||||
private Integer sortOn;
|
||||
|
||||
public static final String COL_ADDVCD = "ADDVCD";
|
||||
|
||||
public static final String COL_ADDVNM = "ADDVNM";
|
||||
|
||||
public static final String COL_LGTD = "LGTD";
|
||||
|
||||
public static final String COL_LTTD = "LTTD";
|
||||
|
||||
public static final String COL_CREATE_TM = "CREATE_TM";
|
||||
|
||||
public static final String COL_TM = "TM";
|
||||
|
||||
public static final String COL_SORT_ON = "SORT_ON";
|
||||
}
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
package com.gunshi.project.xyt.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.gunshi.project.xyt.validate.markers.Update;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 视频点信息
|
||||
*/
|
||||
@Schema(description="视频点信息")
|
||||
@Data
|
||||
@TableName(value = "dbo.ST_CAMERA_AREA_B")
|
||||
public class StCameraAreaB implements Serializable {
|
||||
/**
|
||||
* 视频区域ID
|
||||
*/
|
||||
@TableId(value = "CAM_AR_ID", type = IdType.INPUT)
|
||||
@Schema(description="视频区域ID, 新增时候不需要,修改时候需要")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@NotNull(groups = {Update.class}, message = "视频区域ID不能为空")
|
||||
private Long camArId;
|
||||
|
||||
@TableField(value = "CAM_AR_NM")
|
||||
@Schema(description="视频区域名称")
|
||||
@NotEmpty(message = "视频区域名称不能为空")
|
||||
@Size(max = 200, message = "视频区域名称长度不能超过200")
|
||||
private String camArNm;
|
||||
|
||||
@TableField(value = "PID")
|
||||
@Schema(description="父ID, 顶层传0")
|
||||
@NotNull(message = "父ID不能为空")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long pid;
|
||||
|
||||
@TableField(value = "SORT_ON")
|
||||
@Schema(description="排序字段", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Integer sortOn;
|
||||
|
||||
/**
|
||||
* 状态 1:启用 0:禁用
|
||||
*/
|
||||
@TableField(value = "[STATUS]")
|
||||
@Schema(description="状态 1:启用 0:禁用")
|
||||
@NotNull(message = "状态不能为空")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "COMMENTS", updateStrategy= FieldStrategy.ALWAYS)
|
||||
@Schema(description="备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@Size(max = 200, message = "备注长度不能超过200")
|
||||
private String comments;
|
||||
|
||||
/**
|
||||
* 新增时间
|
||||
*/
|
||||
@TableField(value = "CREATE_TM")
|
||||
@Schema(description=" 新增时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date createTm;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(value = "TM")
|
||||
@Schema(description="修改时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date tm;
|
||||
|
||||
public static final String COL_CAM_AR_ID = "CAM_AR_ID";
|
||||
|
||||
public static final String COL_CAM_AR_NM = "CAM_AR_NM";
|
||||
|
||||
public static final String COL_PID = "PID";
|
||||
|
||||
public static final String COL_SORT_ON = "SORT_ON";
|
||||
|
||||
public static final String COL_STATUS = "STATUS";
|
||||
|
||||
public static final String COL_COMMENTS = "COMMENTS";
|
||||
|
||||
public static final String COL_CREATE_TM = "CREATE_TM";
|
||||
|
||||
public static final String COL_TM = "TM";
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue