first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
target/
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
.settings/
|
||||||
|
logs/
|
||||||
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>maint-dev</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>maint-support</artifactId>
|
||||||
|
<description>本地开发支撑,交回代码时不包含本模块</description>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
package com.wanji.software.tocc.common.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务异常。包名与公司工程一致,交回后可直接换成公司 common。
|
||||||
|
*/
|
||||||
|
public class BusinessException extends RuntimeException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private final Integer code;
|
||||||
|
|
||||||
|
public BusinessException(int code, String message) {
|
||||||
|
super(message);
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BusinessException(String message) {
|
||||||
|
this(1, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
package com.wanji.software.tocc.common.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.wanji.software.tocc.common.exception.BusinessException;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接口返回体。包名与公司工程一致,业务代码交回后不用改 import。
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Result<T> implements Serializable {
|
||||||
|
|
||||||
|
private T data;
|
||||||
|
private Integer code;
|
||||||
|
private String msg;
|
||||||
|
|
||||||
|
public static <T> Result<T> ok() {
|
||||||
|
return of(null, 0, "操作成功");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> Result<T> ok(T data) {
|
||||||
|
return of(data, 0, "操作成功");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> Result<T> ok(T data, String msg) {
|
||||||
|
return of(data, 0, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> Result<T> fail() {
|
||||||
|
return of(null, 1, "操作失败");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> Result<T> fail(String msg) {
|
||||||
|
return of(null, 1, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> Result<T> fail(int code, String msg) {
|
||||||
|
return of(null, code, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> Result<T> of(T data, Integer code, String msg) {
|
||||||
|
return new Result<T>(data, code, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isSuccess(Integer code) {
|
||||||
|
return Objects.equals(code, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public boolean isSuccess() {
|
||||||
|
return isSuccess(code);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public boolean isError() {
|
||||||
|
return !isSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void checkError() throws BusinessException {
|
||||||
|
if (isSuccess()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
throw new BusinessException(code == null ? 1 : code, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public T getCheckedData() {
|
||||||
|
checkError();
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.wanji.software.tocc.maint.support;
|
||||||
|
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前登录用户。本地开发由过滤器填入固定用户,并入公司环境后改为网关传入的用户。
|
||||||
|
*/
|
||||||
|
@Value
|
||||||
|
@Builder
|
||||||
|
public class CurrentUser {
|
||||||
|
|
||||||
|
String userId;
|
||||||
|
String userName;
|
||||||
|
String orgId;
|
||||||
|
String orgName;
|
||||||
|
|
||||||
|
public static CurrentUser localDevUser() {
|
||||||
|
return CurrentUser.builder()
|
||||||
|
.userId("dev")
|
||||||
|
.userName("养护开发")
|
||||||
|
.orgId("dev-org")
|
||||||
|
.orgName("师宗公路分局")
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
+25
@@ -0,0 +1,25 @@
|
|||||||
|
package com.wanji.software.tocc.maint.support;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前请求的用户。业务代码用 {@link #get()} 取创建人、机构,不要自己写死用户。
|
||||||
|
*/
|
||||||
|
public final class CurrentUserHolder {
|
||||||
|
|
||||||
|
private static final ThreadLocal<CurrentUser> HOLDER = new ThreadLocal<CurrentUser>();
|
||||||
|
|
||||||
|
private CurrentUserHolder() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CurrentUser get() {
|
||||||
|
CurrentUser current = HOLDER.get();
|
||||||
|
return current == null ? CurrentUser.localDevUser() : current;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void set(CurrentUser currentUser) {
|
||||||
|
HOLDER.set(currentUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void clear() {
|
||||||
|
HOLDER.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
+66
@@ -0,0 +1,66 @@
|
|||||||
|
package com.wanji.software.tocc.maint.support;
|
||||||
|
|
||||||
|
import org.springframework.core.Ordered;
|
||||||
|
import org.springframework.core.annotation.Order;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.util.StringUtils;
|
||||||
|
import org.springframework.web.filter.OncePerRequestFilter;
|
||||||
|
|
||||||
|
import javax.servlet.FilterChain;
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.URLDecoder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 本地开发用户。没有请求头时使用固定养护用户,有请求头时沿用上游传来的用户。
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
||||||
|
public class LocalDevAuthFilter extends OncePerRequestFilter {
|
||||||
|
|
||||||
|
public static final String USER_ID_HEADER = "x-userid";
|
||||||
|
public static final String USER_NAME_HEADER = "x-username";
|
||||||
|
public static final String ORG_ID_HEADER = "x-orgid";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
|
||||||
|
throws ServletException, IOException {
|
||||||
|
try {
|
||||||
|
CurrentUserHolder.set(resolve(request));
|
||||||
|
filterChain.doFilter(request, response);
|
||||||
|
} finally {
|
||||||
|
CurrentUserHolder.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CurrentUser resolve(HttpServletRequest request) {
|
||||||
|
String userId = request.getHeader(USER_ID_HEADER);
|
||||||
|
if (!StringUtils.hasText(userId)) {
|
||||||
|
return CurrentUser.localDevUser();
|
||||||
|
}
|
||||||
|
CurrentUser local = CurrentUser.localDevUser();
|
||||||
|
return CurrentUser.builder()
|
||||||
|
.userId(userId)
|
||||||
|
.userName(decode(request.getHeader(USER_NAME_HEADER), local.getUserName()))
|
||||||
|
.orgId(defaultText(request.getHeader(ORG_ID_HEADER), local.getOrgId()))
|
||||||
|
.orgName(local.getOrgName())
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
private String decode(String value, String fallback) {
|
||||||
|
if (!StringUtils.hasText(value)) {
|
||||||
|
return fallback;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
return URLDecoder.decode(value, "UTF-8");
|
||||||
|
} catch (IOException ex) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private String defaultText(String value, String fallback) {
|
||||||
|
return StringUtils.hasText(value) ? value : fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package com.wanji.software.tocc.maint.support;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页结果。
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PageResult<T> {
|
||||||
|
|
||||||
|
private long total;
|
||||||
|
private long pageNo;
|
||||||
|
private long pageSize;
|
||||||
|
private List<T> records = Collections.emptyList();
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>2.5.14</version>
|
||||||
|
<relativePath/>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>maint-dev</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<name>养护开发工程</name>
|
||||||
|
<description>道路养护系统本地开发工程,不依赖公司内网</description>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>maint-support</module>
|
||||||
|
<module>tocc-infra-maint</module>
|
||||||
|
<module>tocc-system-maint</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<java.version>1.8</java.version>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<spring-cloud.version>2020.0.6</spring-cloud.version>
|
||||||
|
<mybatis-plus.version>3.5.4.1</mybatis-plus.version>
|
||||||
|
<knife4j.version>4.1.0</knife4j.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-dependencies</artifactId>
|
||||||
|
<version>${spring-cloud.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
<version>${mybatis-plus.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.xiaoymin</groupId>
|
||||||
|
<artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
|
||||||
|
<version>${knife4j.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>maint-support</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>tocc-infra-maint-api</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>tocc-system-maint-api</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,984 @@
|
|||||||
|
-- 道路信息表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_road;
|
||||||
|
CREATE TABLE mtc_road (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID
|
||||||
|
road_code VARCHAR(50) DEFAULT NULL, -- 道路编码
|
||||||
|
road_name VARCHAR(200) DEFAULT NULL, -- 道路名称
|
||||||
|
chainage_start VARCHAR(50) DEFAULT NULL, -- 起点桩号
|
||||||
|
chainage_end VARCHAR(50) DEFAULT NULL, -- 终点桩号
|
||||||
|
admin_level INTEGER DEFAULT NULL, -- 行政等级(国道、省道、县道、乡道)
|
||||||
|
road_len NUMERIC(10,3) DEFAULT NULL, -- 道路长度(㎞)
|
||||||
|
subgrade TEXT DEFAULT NULL, -- 路基
|
||||||
|
pavement TEXT DEFAULT NULL, -- 路面
|
||||||
|
major_structure TEXT DEFAULT NULL, -- 主要构筑物
|
||||||
|
roadside_facility TEXT DEFAULT NULL, -- 沿线设施
|
||||||
|
roadside_env TEXT DEFAULT NULL, -- 沿线环境
|
||||||
|
region_id VARCHAR(50) DEFAULT NULL, -- 行政区划ID
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(在建、在用、停用、待拆除、灭失)
|
||||||
|
tech_status INTEGER DEFAULT NULL, -- 技术状态(优、良、中、次、差)
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_road IS '道路信息表';
|
||||||
|
COMMENT ON COLUMN mtc_road.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_road.dept_id IS '管养单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_road.road_code IS '道路编码';
|
||||||
|
COMMENT ON COLUMN mtc_road.road_name IS '道路名称';
|
||||||
|
COMMENT ON COLUMN mtc_road.chainage_start IS '起点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_road.chainage_end IS '终点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_road.admin_level IS '行政等级(国道、省道、县道、乡道)';
|
||||||
|
COMMENT ON COLUMN mtc_road.road_len IS '道路长度(㎞)';
|
||||||
|
COMMENT ON COLUMN mtc_road.subgrade IS '路基';
|
||||||
|
COMMENT ON COLUMN mtc_road.pavement IS '路面';
|
||||||
|
COMMENT ON COLUMN mtc_road.major_structure IS '主要构筑物';
|
||||||
|
COMMENT ON COLUMN mtc_road.roadside_facility IS '沿线设施';
|
||||||
|
COMMENT ON COLUMN mtc_road.roadside_env IS '沿线环境';
|
||||||
|
COMMENT ON COLUMN mtc_road.region_id IS '行政区划ID';
|
||||||
|
COMMENT ON COLUMN mtc_road.status IS '状态(在建、在用、停用、待拆除、灭失)';
|
||||||
|
COMMENT ON COLUMN mtc_road.tech_status IS '技术状态(优、良、中、次、差)';
|
||||||
|
COMMENT ON COLUMN mtc_road.attacment_ids IS '附件';
|
||||||
|
COMMENT ON COLUMN mtc_road.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_road.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_road.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_road.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_road.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 路段信息表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_road_section;
|
||||||
|
CREATE TABLE mtc_road_section (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID
|
||||||
|
road_id VARCHAR(50) NOT NULL, -- 道路ID
|
||||||
|
section_code VARCHAR(50) DEFAULT NULL,-- 路段编码
|
||||||
|
section_name VARCHAR(200) DEFAULT NULL, -- 路段名称
|
||||||
|
chainage_start VARCHAR(50) DEFAULT NULL, -- 起点桩号
|
||||||
|
chainage_end VARCHAR(50) DEFAULT NULL, -- 终点桩号
|
||||||
|
section_len NUMERIC(10,3) DEFAULT NULL, -- 路段长度(㎞)
|
||||||
|
region_id VARCHAR(50) DEFAULT NULL, -- 行政区划ID
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_road_section IS '路段信息表';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.dept_id IS '管养单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.section_code IS '路段编码';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.section_name IS '路段名称';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.chainage_start IS '起点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.chainage_end IS '终点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.section_len IS '路段长度(㎞)';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.region_id IS '行政区划ID';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.attacment_ids IS '附件';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_road_section.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 改扩建信息表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_road_upgrading;
|
||||||
|
CREATE TABLE mtc_road_upgrading (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
road_id VARCHAR(50) NOT NULL, --道路ID
|
||||||
|
project_code VARCHAR(50) DEFAULT NULL, -- 项目编码
|
||||||
|
project_name VARCHAR(200) DEFAULT NULL, -- 项目名称
|
||||||
|
project_type INTEGER DEFAULT NULL, -- 项目类型(新建、改建、扩建、路面改造、加宽、改线)
|
||||||
|
chainage_start VARCHAR(50) DEFAULT NULL, -- 起点桩号
|
||||||
|
chainage_end VARCHAR(50) DEFAULT NULL, -- 终点桩号
|
||||||
|
project_source VARCHAR(200) DEFAULT NULL, -- 项目来源
|
||||||
|
commencement_date date DEFAULT NULL, -- 开工日期
|
||||||
|
completion_date date DEFAULT NULL, -- 竣工日期
|
||||||
|
handover_date date DEFAULT NULL, -- 验收日期
|
||||||
|
content TEXT DEFAULT NULL, -- 工程内容
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_road_upgrading IS '改扩建信息表';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.project_code IS '项目编码';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.project_name IS '项目名称';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.project_type IS '项目类型(新建、改建、扩建、路面改造、加宽、改线)';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.chainage_start IS '起点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.chainage_end IS '终点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.project_source IS '项目来源';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.commencement_date IS '开工日期';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.completion_date IS '竣工日期';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.handover_date IS '验收日期';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.content IS '工程内容';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.attacment_ids IS '附件';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_road_upgrading.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 桥梁信息表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_bridge;
|
||||||
|
CREATE TABLE mtc_bridge (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID
|
||||||
|
road_id VARCHAR(50) DEFAULT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID
|
||||||
|
bridge_code VARCHAR(50) DEFAULT NULL,-- 桥梁编码
|
||||||
|
bridge_name VARCHAR(200) DEFAULT NULL, -- 桥梁名称
|
||||||
|
chainage_start VARCHAR(50) DEFAULT NULL, -- 起点桩号
|
||||||
|
chainage_end VARCHAR(50) DEFAULT NULL, -- 终点桩号
|
||||||
|
bridge_type INTEGER DEFAULT NULL, -- 桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他)
|
||||||
|
bridge_len NUMERIC(10,2) DEFAULT NULL, -- 桥梁全长(m)
|
||||||
|
total_span_len NUMERIC(10,2) DEFAULT NULL, -- 跨径总长(m)
|
||||||
|
deck_clear_width NUMERIC(8,2) DEFAULT NULL, -- 桥面净宽(m)
|
||||||
|
owner VARCHAR(200) DEFAULT NULL, -- 建设单位
|
||||||
|
designer VARCHAR(200) DEFAULT NULL, -- 设计单位
|
||||||
|
contractor VARCHAR(200) DEFAULT NULL, -- 施工单位
|
||||||
|
supervisor VARCHAR(200) DEFAULT NULL, -- 监理单位
|
||||||
|
region_id VARCHAR(50) DEFAULT NULL, -- 行政区划ID
|
||||||
|
longitude NUMERIC(10,6) DEFAULT NULL, -- 经度
|
||||||
|
latitude NUMERIC(10,6) DEFAULT NULL, -- 纬度
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(在建、在用、停用、待拆除、灭失)
|
||||||
|
tech_status INTEGER DEFAULT NULL, -- 技术状态(优、良、中、次、差)
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_bridge IS '桥梁信息表';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.dept_id IS '管养单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.bridge_code IS '桥梁编码';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.bridge_name IS '桥梁名称';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.chainage_start IS '起点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.chainage_end IS '终点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.bridge_type IS '桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他)';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.bridge_len IS '桥梁全长(m)';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.total_span_len IS '跨径总长(m)';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.deck_clear_width IS '桥面净宽(m)';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.owner IS '建设单位';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.designer IS '设计单位';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.contractor IS '施工单位';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.supervisor IS '监理单位';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.region_id IS '行政区划ID';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.longitude IS '经度';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.latitude IS '纬度';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.status IS '状态(在建、在用、停用、待拆除、灭失)';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.tech_status IS '技术状态(优、良、中、次、差)';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.attacment_ids IS '附件';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_bridge.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 边坡信息表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_slope;
|
||||||
|
CREATE TABLE mtc_slope (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID
|
||||||
|
road_id VARCHAR(50) DEFAULT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID
|
||||||
|
slope_code VARCHAR(50) DEFAULT NULL,-- 边坡编码
|
||||||
|
slope_name VARCHAR(200) DEFAULT NULL, -- 边坡名称
|
||||||
|
chainage_start VARCHAR(50) DEFAULT NULL, -- 起点桩号
|
||||||
|
chainage_end VARCHAR(50) DEFAULT NULL, -- 终点桩号
|
||||||
|
slope_type INTEGER DEFAULT NULL, -- 边坡类型(挖方边坡、填方边坡 、半填半挖边坡)
|
||||||
|
slope_position INTEGER DEFAULT NULL, -- 边坡位置(左侧、右侧、中央分隔带)
|
||||||
|
slope_height NUMERIC(8,2) DEFAULT NULL, -- 边坡高度(m)
|
||||||
|
region_id VARCHAR(50) DEFAULT NULL, -- 行政区划ID
|
||||||
|
longitude NUMERIC(10,6) DEFAULT NULL, -- 经度
|
||||||
|
latitude NUMERIC(10,6) DEFAULT NULL, -- 纬度
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(在建、在用、停用、待拆除、灭失)
|
||||||
|
tech_status INTEGER DEFAULT NULL, -- 技术状态(优、良、中、次、差)
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_slope IS '边坡信息表';
|
||||||
|
COMMENT ON COLUMN mtc_slope.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_slope.dept_id IS '管养单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_slope.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_slope.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_slope.slope_code IS '边坡编码';
|
||||||
|
COMMENT ON COLUMN mtc_slope.slope_name IS '边坡名称';
|
||||||
|
COMMENT ON COLUMN mtc_slope.chainage_start IS '起点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_slope.chainage_end IS '终点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_slope.slope_type IS '边坡类型(挖方边坡、填方边坡 、半填半挖边坡)';
|
||||||
|
COMMENT ON COLUMN mtc_slope.slope_position IS '边坡位置(左侧、右侧、中央分隔带)';
|
||||||
|
COMMENT ON COLUMN mtc_slope.slope_height IS '边坡高度(m)';
|
||||||
|
COMMENT ON COLUMN mtc_slope.region_id IS '行政区划ID';
|
||||||
|
COMMENT ON COLUMN mtc_slope.longitude IS '经度';
|
||||||
|
COMMENT ON COLUMN mtc_slope.latitude IS '纬度';
|
||||||
|
COMMENT ON COLUMN mtc_slope.status IS '状态(在建、在用、停用、待拆除、灭失)';
|
||||||
|
COMMENT ON COLUMN mtc_slope.tech_status IS '技术状态(优、良、中、次、差)';
|
||||||
|
COMMENT ON COLUMN mtc_slope.attacment_ids IS '附件';
|
||||||
|
COMMENT ON COLUMN mtc_slope.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_slope.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_slope.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_slope.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_slope.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 设施类型表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_facility_type;
|
||||||
|
CREATE TABLE mtc_facility_type (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
name VARCHAR(200) DEFAULT NULL,
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_facility_type IS '设施类型表';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.name IS '名称';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 设施类型字段配置表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_facility_type_field;
|
||||||
|
CREATE TABLE mtc_facility_type_field (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
facility_type_id VARCHAR(50) NOT NULL, -- 设施类型ID
|
||||||
|
field_code VARCHAR(50) NOT NULL, -- 字段编码
|
||||||
|
field_name VARCHAR(200) NOT NULL, -- 字段名称
|
||||||
|
field_type INTEGER NOT NULL, -- 字段类型(字符、文本、数字、日期、字典)
|
||||||
|
dict_code VARCHAR(50) DEFAULT NULL, -- 字典编码,
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_facility_type_field IS '设施类型字段配置表';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.facility_type_id IS '设施类型ID';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.field_code IS '字段编码';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.field_name IS '字段名称';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.field_type IS '字段类型(字符、文本、数字、日期、字典)';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.dict_code IS '字典编码';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_facility_type_field.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 设施信息表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_facility;
|
||||||
|
CREATE TABLE mtc_facility (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID
|
||||||
|
road_id VARCHAR(50) DEFAULT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID 、
|
||||||
|
facility_type_id VARCHAR(50) DEFAULT NULL, -- 设施类型ID
|
||||||
|
facility_code VARCHAR(50) DEFAULT NULL, -- 设施编码
|
||||||
|
facility_name VARCHAR(200) DEFAULT NULL, -- 设施名称
|
||||||
|
chainage VARCHAR(50) DEFAULT NULL, -- 桩号
|
||||||
|
face_shape VARCHAR(200) DEFAULT NULL, -- 版面形状
|
||||||
|
face_material VARCHAR(200) DEFAULT NULL, -- 版面材质
|
||||||
|
face_dimension VARCHAR(200) DEFAULT NULL, -- 版面尺寸
|
||||||
|
mounting_type INTEGER DEFAULT NULL, -- 支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他)
|
||||||
|
region_id VARCHAR(50) DEFAULT NULL, -- 行政区划ID
|
||||||
|
longitude NUMERIC(10,6) DEFAULT NULL, -- 经度
|
||||||
|
latitude NUMERIC(10,6) DEFAULT NULL, -- 纬度
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(在建、在用、停用、待拆除、灭失)
|
||||||
|
tech_status INTEGER DEFAULT NULL, -- 技术状态(优、良、中、次、差)
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件
|
||||||
|
custom_prop TEXT DEFAULT NULL, -- 自定义扩展属性
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_facility IS '设施信息表';
|
||||||
|
COMMENT ON COLUMN mtc_facility.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_facility.dept_id IS '管养单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_facility.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_facility.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_facility.facility_type_id IS '设施类型ID';
|
||||||
|
COMMENT ON COLUMN mtc_facility.facility_code IS '设施编码';
|
||||||
|
COMMENT ON COLUMN mtc_facility.facility_name IS '设施名称';
|
||||||
|
COMMENT ON COLUMN mtc_facility.chainage IS '桩号';
|
||||||
|
COMMENT ON COLUMN mtc_facility.face_shape IS '版面形状';
|
||||||
|
COMMENT ON COLUMN mtc_facility.face_material IS '版面材质';
|
||||||
|
COMMENT ON COLUMN mtc_facility.face_dimension IS '版面尺寸';
|
||||||
|
COMMENT ON COLUMN mtc_facility.mounting_type IS '支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他)';
|
||||||
|
COMMENT ON COLUMN mtc_facility.region_id IS '行政区划ID';
|
||||||
|
COMMENT ON COLUMN mtc_facility.longitude IS '经度';
|
||||||
|
COMMENT ON COLUMN mtc_facility.latitude IS '纬度';
|
||||||
|
COMMENT ON COLUMN mtc_facility.status IS '状态(在建、在用、停用、待拆除、灭失)';
|
||||||
|
COMMENT ON COLUMN mtc_facility.tech_status IS '技术状态(优、良、中、次、差)';
|
||||||
|
COMMENT ON COLUMN mtc_facility.attacment_ids IS '附件';
|
||||||
|
COMMENT ON COLUMN mtc_facility.custom_prop IS '自定义扩展属性';
|
||||||
|
COMMENT ON COLUMN mtc_facility.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_facility.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_facility.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_facility.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_facility.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 工程建设档案分类表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_archive_category;
|
||||||
|
CREATE TABLE mtc_archive_category (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
parent_id VARCHAR(50) DEFAULT NULL,
|
||||||
|
code VARCHAR(50) DEFAULT NULL,
|
||||||
|
name VARCHAR(200) DEFAULT NULL,
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
"path" VARCHAR(2000) DEFAULT NULL,
|
||||||
|
is_leaf NUMBER(1) DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_archive_category IS '工程建设档案分类表';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.parent_id IS '上级分类ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.code IS '分类编码';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.name IS '分类名称';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.order_num IS '本层级排序';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.path IS '路径';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.is_leaf IS '是否叶子节点';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_category.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 工程建设档案表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_archive;
|
||||||
|
CREATE TABLE mtc_archive (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
archive_category_id VARCHAR(50) DEFAULT NULL, -- 档案分类ID
|
||||||
|
archive_code VARCHAR(50) DEFAULT NULL, -- 档案编号
|
||||||
|
archive_name VARCHAR(200) DEFAULT NULL, -- 档案名称
|
||||||
|
project_name VARCHAR(200) DEFAULT NULL, -- 工程名称
|
||||||
|
phase INTEGER DEFAULT NULL,-- 阶段(前期、设计、施工、监理、竣工、运维)
|
||||||
|
editor VARCHAR(50) DEFAULT NULL, -- 编制人
|
||||||
|
checker VARCHAR(50) DEFAULT NULL, -- 审核人
|
||||||
|
approver VARCHAR(50) DEFAULT NULL, -- 批准人
|
||||||
|
form_date DATE DEFAULT NULL, -- 形成日期
|
||||||
|
retention_period VARCHAR(50) DEFAULT NULL, -- 保管期限
|
||||||
|
total_volumes INTEGER DEFAULT 0, -- 总卷数(卷)
|
||||||
|
total_files INTEGER DEFAULT 0, -- 总件数(件)
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_archive IS '工程建设档案表';
|
||||||
|
COMMENT ON COLUMN mtc_archive.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_archive.archive_category_id IS '档案分类ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive.archive_code IS '档案编号';
|
||||||
|
COMMENT ON COLUMN mtc_archive.archive_name IS '档案名称';
|
||||||
|
COMMENT ON COLUMN mtc_archive.project_name IS '工程名称';
|
||||||
|
COMMENT ON COLUMN mtc_archive.phase IS '阶段(前期、设计、施工、监理、竣工、运维)';
|
||||||
|
COMMENT ON COLUMN mtc_archive.editor IS '编制人';
|
||||||
|
COMMENT ON COLUMN mtc_archive.checker IS '审核人';
|
||||||
|
COMMENT ON COLUMN mtc_archive.approver IS '批准人';
|
||||||
|
COMMENT ON COLUMN mtc_archive.form_date IS '形成日期';
|
||||||
|
COMMENT ON COLUMN mtc_archive.retention_period IS '保管期限';
|
||||||
|
COMMENT ON COLUMN mtc_archive.total_volumes IS '总卷数(卷)';
|
||||||
|
COMMENT ON COLUMN mtc_archive.total_files IS '总件数(件)';
|
||||||
|
COMMENT ON COLUMN mtc_archive.status IS '状态';
|
||||||
|
COMMENT ON COLUMN mtc_archive.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_archive.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_archive.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_archive.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_archive.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 工程建设档案-资产关联表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_archive_asset;
|
||||||
|
CREATE TABLE mtc_archive_asset (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
archive_id VARCHAR(50) DEFAULT NULL, -- 档案ID
|
||||||
|
asset_type INTEGER DEFAULT NULL, -- 资产类型(道路、桥梁、边坡、设施)
|
||||||
|
asset_id VARCHAR(50) DEFAULT NULL, -- 资产ID
|
||||||
|
order_num INTEGER DEFAULT NULL,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_archive_asset IS '工程建设档案-资产关联表';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.archive_id IS '档案ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.asset_type IS '资产类型(道路、桥梁、边坡、设施)';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.asset_id IS '资产ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_asset.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 工程建设档案案卷表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_archive_volume;
|
||||||
|
CREATE TABLE mtc_archive_volume (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
archive_id VARCHAR(50) DEFAULT NULL, -- 档案ID
|
||||||
|
order_num INTEGER DEFAULT NULL, -- 卷号
|
||||||
|
volume_code VARCHAR(50) DEFAULT NULL, -- 卷内编号
|
||||||
|
volume_title VARCHAR(200) DEFAULT NULL, -- 案卷题名
|
||||||
|
start_date DATE DEFAULT NULL, -- 文件起始日期
|
||||||
|
end_date DATE DEFAULT NULL, -- 文件终止日期
|
||||||
|
filer VARCHAR(50) DEFAULT NULL, -- 立卷人
|
||||||
|
inspector VARCHAR(50) DEFAULT NULL, -- 检查人
|
||||||
|
approver VARCHAR(50) DEFAULT NULL, -- 审批人
|
||||||
|
file_date DATE DEFAULT NULL, -- 立卷日期
|
||||||
|
storage_location VARCHAR(200) DEFAULT NULL, -- 库房位置(柜号/架号/层号)
|
||||||
|
retention_period VARCHAR(50) DEFAULT NULL, -- 保管期限
|
||||||
|
total_files INTEGER DEFAULT 0, -- 总件数(件)
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_archive_volume IS '工程建设档案案卷表';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.archive_id IS '档案ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.order_num IS '卷号';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.volume_code IS '卷内编号';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.volume_title IS '案卷题名';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.start_date IS '文件起始日期';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.end_date IS '文件终止日期';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.filer IS '立卷人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.inspector IS '检查人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.approver IS '审批人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.file_date IS '立卷日期';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.storage_location IS '库房位置(柜号/架号/层号)';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.retention_period IS '保管期限';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.total_files IS '总件数(件)';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.status IS '状态';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 工程建设档案文件表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_archive_file;
|
||||||
|
CREATE TABLE mtc_archive_file (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
archive_id VARCHAR(50) DEFAULT NULL, -- 档案ID
|
||||||
|
volume_id VARCHAR(50) DEFAULT NULL, -- 案卷ID
|
||||||
|
order_num INTEGER DEFAULT NULL, -- 件号
|
||||||
|
file_title VARCHAR(200) DEFAULT NULL, -- 文件题名
|
||||||
|
status INTEGER DEFAULT NULL,-- 状态
|
||||||
|
attachment_id VARCHAR(50) DEFAULT NULL, -- 附件ID
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_archive_file IS '工程建设档案文件表';
|
||||||
|
COMMENT ON COLUMN mtc_archive_volume.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.archive_id IS '档案ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.volume_id IS '案卷ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.order_num IS '件号';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.file_title IS '文件题名';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.status IS '状态';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.attachment_id IS '附件ID';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_archive_file.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 用户-路段关联表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_user_road_section;
|
||||||
|
CREATE TABLE mtc_user_road_section (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
user_id VARCHAR(50) NOT NULL, -- 用户ID(路长、巡查人员)
|
||||||
|
road_id VARCHAR(50) NOT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID
|
||||||
|
order_num INTEGER DEFAULT NULL,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_user_road_section IS '用户-路段关联表';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.user_id IS '用户ID(路长、巡查人员)';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_user_road_section.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 资产采集表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_asset_inventory;
|
||||||
|
CREATE TABLE mtc_asset_inventory (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID(冗余)
|
||||||
|
road_id VARCHAR(50) NULL, -- 道路ID(冗余)
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID(冗余)
|
||||||
|
asset_type INTEGER DEFAULT NULL, -- 资产类型(桥梁、边坡、设施)
|
||||||
|
asset_id VARCHAR(50) DEFAULT NULL, -- 资产ID
|
||||||
|
asset_status INTEGER DEFAULT NULL, -- 资产状态(在建、在用、停用、待拆除、灭失)
|
||||||
|
attacment_ids VARCHAR(500) DEFAULT NULL, -- 附件(图片、视频)
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(草稿、已提交、审核通过、审核驳回)
|
||||||
|
submitter VARCHAR(50) DEFAULT NULL, -- 提交人
|
||||||
|
submit_time DATETIME DEFAULT NULL, -- 提交时间
|
||||||
|
checker VARCHAR(50) DEFAULT NULL, -- 审核人
|
||||||
|
check_time DATETIME DEFAULT NULL, -- 审核时间
|
||||||
|
check_comment VARCHAR(2000) DEFAULT NULL, -- 审核意见
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_asset_inventory IS '资产采集表';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.dept_id IS '管养单位ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.road_id IS '道路ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.road_section_id IS '路段ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.asset_type IS '资产类型(桥梁、边坡、设施)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.asset_id IS '资产ID';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.asset_status IS '资产状态(在建、在用、停用、待拆除、灭失)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.attacment_ids IS '附件(图片、视频)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.status IS '状态(草稿、已提交、审核通过、审核驳回)';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.submitter IS '提交人';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.submit_time IS '提交时间';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.checker IS '审核人';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.check_time IS '审核时间';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.check_comment IS '审核意见';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_asset_inventory.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 巡查计划表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_inspection_plan;
|
||||||
|
CREATE TABLE mtc_inspection_plan (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID(冗余)
|
||||||
|
plan_name VARCHAR(200) DEFAULT NULL, -- 计划名称
|
||||||
|
inspection_type INTEGER DEFAULT NULL, -- 巡查类型(日常巡查、经常检查、定期检查)
|
||||||
|
road_id VARCHAR(50) DEFAULT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID
|
||||||
|
start_date DATE DEFAULT NULL, -- 开始日期
|
||||||
|
end_date DATE DEFAULT NULL, -- 结束日期
|
||||||
|
frequency VARCHAR(50) DEFAULT NULL, -- 频率
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(启用、停用)
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_inspection_plan IS '巡查计划表';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.dept_id IS '管养单位ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.plan_name IS '计划名称';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.inspection_type IS '巡查类型(日常巡查、经常检查、定期检查)';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.start_date IS '开始日期';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.end_date IS '结束日期';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.frequency IS '频率';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.status IS '状态(启用、停用)';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_plan.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 巡查日志表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_inspection_record;
|
||||||
|
CREATE TABLE mtc_inspection_record (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID(冗余)
|
||||||
|
user_id VARCHAR(50) DEFAULT NULL, -- 巡查人员ID(冗余)
|
||||||
|
inspection_plan_id VARCHAR(50) DEFAULT NULL, -- 巡查计划ID
|
||||||
|
road_id VARCHAR(50) DEFAULT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID
|
||||||
|
inspection_start_time DATETIME DEFAULT NULL, -- 巡查开始时间
|
||||||
|
inspection_end_time DATETIME DEFAULT NULL, -- 巡查结束时间
|
||||||
|
inspection_route TEXT DEFAULT NULL, -- 巡查轨迹
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(草稿、已提交)
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_inspection_record IS '巡查日志表';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.dept_id IS '管养单位ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.user_id IS '巡查人员ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.inspection_plan_id IS '巡查计划ID';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.inspection_start_time IS '巡查开始时间';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.inspection_end_time IS '巡查结束时间';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.inspection_route IS '巡查轨迹';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.status IS '状态(草稿、已提交)';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_inspection_record.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 隐患类别表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_defect_type;
|
||||||
|
CREATE TABLE mtc_defect_type (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
name VARCHAR(50) DEFAULT NULL,
|
||||||
|
unit VARCHAR(50) DEFAULT NULL,
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_defect_type IS '隐患类别表';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.name IS '名称';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.unit IS '计量单位(㎡、m³)';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_defect_type.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 隐患表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_defect;
|
||||||
|
CREATE TABLE mtc_defect (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_id VARCHAR(50) DEFAULT NULL, -- 管养单位ID(冗余)
|
||||||
|
road_id VARCHAR(50) DEFAULT NULL, -- 道路ID
|
||||||
|
road_section_id VARCHAR(50) DEFAULT NULL, -- 路段ID
|
||||||
|
chainage_start VARCHAR(50) DEFAULT NULL, -- 隐患起点桩号
|
||||||
|
chainage_end VARCHAR(50) DEFAULT NULL, -- 隐患终点桩号
|
||||||
|
inspection_date DATE DEFAULT NULL, -- 检测时间
|
||||||
|
defect_type_id VARCHAR(50) DEFAULT NULL, -- 隐患类别ID
|
||||||
|
defect_grade INTEGER DEFAULT NULL, -- 隐患等级(低风险、一般风险、较大风险、重大风险)
|
||||||
|
remedial_measure VARCHAR(2000) DEFAULT NULL, -- 治理措施
|
||||||
|
remedial_qty NUMERIC(10,2) DEFAULT NULL, -- 数量
|
||||||
|
estimated_amt NUMERIC(12,2) DEFAULT NULL, -- 预估金额(元)
|
||||||
|
defect_description TEXT DEFAULT NULL, -- 病害描述
|
||||||
|
defect_attacment_ids VARCHAR(500) DEFAULT NULL, -- 病害附件(图片、视频)
|
||||||
|
maintenancer VARCHAR(50) DEFAULT NULL, -- 处置人(路长、巡查人员)
|
||||||
|
maintenance_type INTEGER DEFAULT NULL, -- 养护类型(日常养护、预防养护、修复养护、专项养护、应急养护)
|
||||||
|
maintenance_start_date DATE DEFAULT NULL, -- 养护开始日期
|
||||||
|
maintenance_end_date DATE DEFAULT NULL, -- 养护结束日期
|
||||||
|
maintenance_content TEXT DEFAULT NULL,-- 养护内容
|
||||||
|
maintenance_attacment_ids VARCHAR(500) DEFAULT NULL, -- 养护附件(图片、视频)
|
||||||
|
status INTEGER DEFAULT NULL, -- 状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回)
|
||||||
|
submitter VARCHAR(50) DEFAULT NULL, -- 病害提交人(路长、巡查人员)
|
||||||
|
submit_time DATETIME DEFAULT NULL, -- 病害提交时间
|
||||||
|
checker VARCHAR(50) DEFAULT NULL, -- 病害审核人(管理员)
|
||||||
|
check_time DATETIME DEFAULT NULL, -- 病害审核时间
|
||||||
|
check_comment VARCHAR(2000) DEFAULT NULL, -- 病害审核意见
|
||||||
|
maintenance_submitter VARCHAR(50) DEFAULT NULL, -- 处置结果提交人(路长、巡查人员)
|
||||||
|
maintenance_submit_time DATETIME DEFAULT NULL, -- 处置结果提交时间
|
||||||
|
maintenance_checker VARCHAR(50) DEFAULT NULL, -- 处置结果审核人(管理员)
|
||||||
|
maintenance_check_time DATETIME DEFAULT NULL, -- 处置结果审核时间
|
||||||
|
maintenance_check_comment VARCHAR(2000) DEFAULT NULL, -- 处置结果审核意见
|
||||||
|
source INTEGER DEFAULT NULL, -- 来源(APP端、PC端、历史数据)
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_defect IS '隐患表';
|
||||||
|
COMMENT ON COLUMN mtc_defect.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_defect.dept_id IS '管养单位ID(冗余)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.road_id IS '道路ID';
|
||||||
|
COMMENT ON COLUMN mtc_defect.road_section_id IS '路段ID';
|
||||||
|
COMMENT ON COLUMN mtc_defect.chainage_start IS '隐患起点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_defect.chainage_end IS '隐患终点桩号';
|
||||||
|
COMMENT ON COLUMN mtc_defect.inspection_date IS '检测时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect.defect_type_id IS '隐患类别ID';
|
||||||
|
COMMENT ON COLUMN mtc_defect.defect_grade IS '隐患等级(低风险、一般风险、较大风险、重大风险)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.remedial_measure IS '治理措施';
|
||||||
|
COMMENT ON COLUMN mtc_defect.remedial_qty IS '数量';
|
||||||
|
COMMENT ON COLUMN mtc_defect.estimated_amt IS '预估金额(元)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.defect_description IS '病害描述';
|
||||||
|
COMMENT ON COLUMN mtc_defect.defect_attacment_ids IS '病害附件(图片、视频)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenancer IS '处置人(路长、巡查人员)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_type IS '养护类型(日常养护、预防养护、修复养护、专项养护、应急养护)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_start_date IS '养护开始日期';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_end_date IS '养护结束日期';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_content IS '养护内容';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_attacment_ids IS '养护附件(图片、视频)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.status IS '状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.submitter IS '病害提交人(路长、巡查人员)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.submit_time IS '病害提交时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect.checker IS '病害审核人(管理员)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.check_time IS '病害审核时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect.check_comment IS '病害审核意见';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_submitter IS '处置结果提交人(路长、巡查人员)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_submit_time IS '处置结果提交时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_checker IS '处置结果审核人(管理员)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_check_time IS '处置结果审核时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect.maintenance_check_comment IS '处置结果审核意见';
|
||||||
|
COMMENT ON COLUMN mtc_defect.source IS '来源(APP端、PC端、历史数据)';
|
||||||
|
COMMENT ON COLUMN mtc_defect.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_defect.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_defect.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_defect.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 隐患-资产关联表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_defect_asset;
|
||||||
|
CREATE TABLE mtc_defect_asset (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
defect_id VARCHAR(50) DEFAULT NULL, -- 隐患ID
|
||||||
|
asset_type INTEGER DEFAULT NULL, -- 资产类型(桥梁、边坡、设施)
|
||||||
|
asset_id VARCHAR(50) DEFAULT NULL, -- 资产ID
|
||||||
|
order_num INTEGER DEFAULT NULL,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_defect_asset IS '隐患-资产关联表';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.defect_id IS '隐患ID';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.asset_type IS '资产类型(桥梁、边坡、设施)';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.asset_id IS '资产ID';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_defect_asset.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 养护单位表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_maintenance_dept;
|
||||||
|
CREATE TABLE mtc_maintenance_dept (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
dept_name VARCHAR(200) DEFAULT NULL,
|
||||||
|
linkman VARCHAR(50) DEFAULT NULL,
|
||||||
|
mobile VARCHAR(50) DEFAULT NULL,
|
||||||
|
address VARCHAR(200) DEFAULT NULL,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_maintenance_dept IS '养护单位表';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.dept_name IS '单位名称';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.linkman IS '联系人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.mobile IS '联系方式';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.address IS '单位地址';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_dept.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 养护人员表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_maintenance_person;
|
||||||
|
CREATE TABLE mtc_maintenance_person (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
maintenance_dept_id VARCHAR(50) DEFAULT NULL,
|
||||||
|
name VARCHAR(50) DEFAULT NULL,
|
||||||
|
gender INTEGER DEFAULT NULL,
|
||||||
|
mobile VARCHAR(50) DEFAULT NULL,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_maintenance_person IS '养护人员表';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.maintenance_dept_id IS '养护单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.name IS '姓名';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.gender IS '性别(男、女)';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.mobile IS '手机号';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_person.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 养护设备表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_maintenance_equipment;
|
||||||
|
CREATE TABLE mtc_maintenance_equipment (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
maintenance_dept_id VARCHAR(50) DEFAULT NULL,
|
||||||
|
equipment_code VARCHAR(50) DEFAULT NULL,
|
||||||
|
equipment_name VARCHAR(200) DEFAULT NULL,
|
||||||
|
specification VARCHAR(200) DEFAULT NULL,
|
||||||
|
manufacturer VARCHAR(200) DEFAULT NULL,
|
||||||
|
status INTEGER DEFAULT NULL,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_maintenance_equipment IS '养护设备表';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.maintenance_dept_id IS '养护单位ID';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.equipment_code IS '设备编码';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.equipment_name IS '设备名称';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.specification IS '规格型号';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.manufacturer IS '生成厂家';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.status IS '状态(合格、降级、停用、报废)';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_maintenance_equipment.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 知识分类表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_knowledge_category;
|
||||||
|
CREATE TABLE mtc_knowledge_category (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
parent_id VARCHAR(50) DEFAULT NULL,
|
||||||
|
code VARCHAR(50) DEFAULT NULL,
|
||||||
|
name VARCHAR(200) DEFAULT NULL,
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
"path" VARCHAR(2000) DEFAULT NULL,
|
||||||
|
is_leaf NUMBER(1) DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_knowledge_category IS '知识分类表';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.parent_id IS '上级分类ID';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.code IS '分类编码';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.name IS '分类名称';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.order_num IS '本层级排序';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.path IS '路径';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.is_leaf IS '是否叶子节点';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge_category.update_time IS '最近修改时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- 知识表 --
|
||||||
|
DROP TABLE IF EXISTS mtc_knowledge;
|
||||||
|
CREATE TABLE mtc_knowledge (
|
||||||
|
id VARCHAR(50) NOT NULL,
|
||||||
|
knowledge_category_id VARCHAR(50) DEFAULT NULL,
|
||||||
|
title VARCHAR(200) DEFAULT NULL,
|
||||||
|
content TEXT DEFAULT NULL,
|
||||||
|
attachment_id VARCHAR(50) DEFAULT NULL,
|
||||||
|
status INTEGER DEFAULT NULL,
|
||||||
|
order_num INTEGER DEFAULT 1,
|
||||||
|
remark TEXT DEFAULT NULL,
|
||||||
|
create_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
create_time datetime DEFAULT NULL,
|
||||||
|
update_by VARCHAR(50) DEFAULT NULL,
|
||||||
|
update_time datetime DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
COMMENT ON TABLE mtc_knowledge IS '知识表';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.id IS '主键';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.knowledge_category_id IS '知识分类ID';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.title IS '标题';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.content IS '内容';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.attachment_id IS '附件ID';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.status IS '状态(上架、下架)';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.order_num IS '排序';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.remark IS '备注';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.create_by IS '创建人';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.update_by IS '最近修改人';
|
||||||
|
COMMENT ON COLUMN mtc_knowledge.update_time IS '最近修改时间';
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>maint-dev</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>tocc-infra-maint</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<description>养护基础服务</description>
|
||||||
|
<modules>
|
||||||
|
<module>tocc-infra-maint-api</module>
|
||||||
|
<module>tocc-infra-maint-biz</module>
|
||||||
|
</modules>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>tocc-infra-maint</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>tocc-infra-maint-api</artifactId>
|
||||||
|
<description>养护基础服务接口,系统服务通过这些接口访问数据库</description>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.wanji.software</groupId>
|
||||||
|
<artifactId>maint-support</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.swagger.core.v3</groupId>
|
||||||
|
<artifactId>swagger-annotations</artifactId>
|
||||||
|
<version>2.2.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-validation</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchivePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "ArchiveApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 工程建设档案表")
|
||||||
|
public interface ArchiveApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/archive";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增工程建设档案表")
|
||||||
|
Result<ArchiveResp> create(@RequestBody ArchiveSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询工程建设档案表")
|
||||||
|
Result<ArchiveResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改工程建设档案表")
|
||||||
|
Result<Boolean> update(@RequestBody ArchiveSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除工程建设档案表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询工程建设档案表")
|
||||||
|
Result<PageResult<ArchiveResp>> page(@RequestBody ArchivePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveAssetPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveAssetResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveAssetSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案-资产关联表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "ArchiveAssetApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 工程建设档案-资产关联表")
|
||||||
|
public interface ArchiveAssetApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/archive-asset";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增工程建设档案-资产关联表")
|
||||||
|
Result<ArchiveAssetResp> create(@RequestBody ArchiveAssetSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询工程建设档案-资产关联表")
|
||||||
|
Result<ArchiveAssetResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改工程建设档案-资产关联表")
|
||||||
|
Result<Boolean> update(@RequestBody ArchiveAssetSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除工程建设档案-资产关联表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询工程建设档案-资产关联表")
|
||||||
|
Result<PageResult<ArchiveAssetResp>> page(@RequestBody ArchiveAssetPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveCategoryPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveCategoryResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveCategorySaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案分类表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "ArchiveCategoryApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 工程建设档案分类表")
|
||||||
|
public interface ArchiveCategoryApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/archive-category";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增工程建设档案分类表")
|
||||||
|
Result<ArchiveCategoryResp> create(@RequestBody ArchiveCategorySaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询工程建设档案分类表")
|
||||||
|
Result<ArchiveCategoryResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改工程建设档案分类表")
|
||||||
|
Result<Boolean> update(@RequestBody ArchiveCategorySaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除工程建设档案分类表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询工程建设档案分类表")
|
||||||
|
Result<PageResult<ArchiveCategoryResp>> page(@RequestBody ArchiveCategoryPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveFilePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveFileResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveFileSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案文件表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "ArchiveFileApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 工程建设档案文件表")
|
||||||
|
public interface ArchiveFileApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/archive-file";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增工程建设档案文件表")
|
||||||
|
Result<ArchiveFileResp> create(@RequestBody ArchiveFileSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询工程建设档案文件表")
|
||||||
|
Result<ArchiveFileResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改工程建设档案文件表")
|
||||||
|
Result<Boolean> update(@RequestBody ArchiveFileSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除工程建设档案文件表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询工程建设档案文件表")
|
||||||
|
Result<PageResult<ArchiveFileResp>> page(@RequestBody ArchiveFilePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveVolumePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveVolumeResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveVolumeSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案案卷表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "ArchiveVolumeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 工程建设档案案卷表")
|
||||||
|
public interface ArchiveVolumeApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/archive-volume";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增工程建设档案案卷表")
|
||||||
|
Result<ArchiveVolumeResp> create(@RequestBody ArchiveVolumeSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询工程建设档案案卷表")
|
||||||
|
Result<ArchiveVolumeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改工程建设档案案卷表")
|
||||||
|
Result<Boolean> update(@RequestBody ArchiveVolumeSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除工程建设档案案卷表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询工程建设档案案卷表")
|
||||||
|
Result<PageResult<ArchiveVolumeResp>> page(@RequestBody ArchiveVolumePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.AssetInventoryPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.AssetInventoryResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.AssetInventorySaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资产采集表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "AssetInventoryApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 资产采集表")
|
||||||
|
public interface AssetInventoryApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/asset-inventory";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增资产采集表")
|
||||||
|
Result<AssetInventoryResp> create(@RequestBody AssetInventorySaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询资产采集表")
|
||||||
|
Result<AssetInventoryResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改资产采集表")
|
||||||
|
Result<Boolean> update(@RequestBody AssetInventorySaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除资产采集表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询资产采集表")
|
||||||
|
Result<PageResult<AssetInventoryResp>> page(@RequestBody AssetInventoryPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.BridgePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.BridgeResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.BridgeSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 桥梁信息表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "BridgeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 桥梁信息表")
|
||||||
|
public interface BridgeApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/bridge";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增桥梁信息表")
|
||||||
|
Result<BridgeResp> create(@RequestBody BridgeSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询桥梁信息表")
|
||||||
|
Result<BridgeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改桥梁信息表")
|
||||||
|
Result<Boolean> update(@RequestBody BridgeSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除桥梁信息表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询桥梁信息表")
|
||||||
|
Result<PageResult<BridgeResp>> page(@RequestBody BridgePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "DefectApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 隐患表")
|
||||||
|
public interface DefectApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/defect";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增隐患表")
|
||||||
|
Result<DefectResp> create(@RequestBody DefectSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询隐患表")
|
||||||
|
Result<DefectResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改隐患表")
|
||||||
|
Result<Boolean> update(@RequestBody DefectSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除隐患表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询隐患表")
|
||||||
|
Result<PageResult<DefectResp>> page(@RequestBody DefectPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectAssetPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectAssetResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectAssetSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患-资产关联表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "DefectAssetApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 隐患-资产关联表")
|
||||||
|
public interface DefectAssetApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/defect-asset";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增隐患-资产关联表")
|
||||||
|
Result<DefectAssetResp> create(@RequestBody DefectAssetSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询隐患-资产关联表")
|
||||||
|
Result<DefectAssetResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改隐患-资产关联表")
|
||||||
|
Result<Boolean> update(@RequestBody DefectAssetSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除隐患-资产关联表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询隐患-资产关联表")
|
||||||
|
Result<PageResult<DefectAssetResp>> page(@RequestBody DefectAssetPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectTypePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectTypeResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.DefectTypeSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患类别表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "DefectTypeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 隐患类别表")
|
||||||
|
public interface DefectTypeApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/defect-type";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增隐患类别表")
|
||||||
|
Result<DefectTypeResp> create(@RequestBody DefectTypeSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询隐患类别表")
|
||||||
|
Result<DefectTypeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改隐患类别表")
|
||||||
|
Result<Boolean> update(@RequestBody DefectTypeSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除隐患类别表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询隐患类别表")
|
||||||
|
Result<PageResult<DefectTypeResp>> page(@RequestBody DefectTypePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilitySaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施信息表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "FacilityApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 设施信息表")
|
||||||
|
public interface FacilityApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/facility";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增设施信息表")
|
||||||
|
Result<FacilityResp> create(@RequestBody FacilitySaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询设施信息表")
|
||||||
|
Result<FacilityResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改设施信息表")
|
||||||
|
Result<Boolean> update(@RequestBody FacilitySaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除设施信息表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询设施信息表")
|
||||||
|
Result<PageResult<FacilityResp>> page(@RequestBody FacilityPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "FacilityTypeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 设施类型表")
|
||||||
|
public interface FacilityTypeApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/facility-type";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增设施类型表")
|
||||||
|
Result<FacilityTypeResp> create(@RequestBody FacilityTypeSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询设施类型表")
|
||||||
|
Result<FacilityTypeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改设施类型表")
|
||||||
|
Result<Boolean> update(@RequestBody FacilityTypeSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除设施类型表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询设施类型表")
|
||||||
|
Result<PageResult<FacilityTypeResp>> page(@RequestBody FacilityTypePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeFieldPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeFieldResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeFieldSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型字段配置表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "FacilityTypeFieldApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 设施类型字段配置表")
|
||||||
|
public interface FacilityTypeFieldApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/facility-type-field";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增设施类型字段配置表")
|
||||||
|
Result<FacilityTypeFieldResp> create(@RequestBody FacilityTypeFieldSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询设施类型字段配置表")
|
||||||
|
Result<FacilityTypeFieldResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改设施类型字段配置表")
|
||||||
|
Result<Boolean> update(@RequestBody FacilityTypeFieldSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除设施类型字段配置表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询设施类型字段配置表")
|
||||||
|
Result<PageResult<FacilityTypeFieldResp>> page(@RequestBody FacilityTypeFieldPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.InspectionPlanPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.InspectionPlanResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.InspectionPlanSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查计划表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "InspectionPlanApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 巡查计划表")
|
||||||
|
public interface InspectionPlanApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/inspection-plan";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增巡查计划表")
|
||||||
|
Result<InspectionPlanResp> create(@RequestBody InspectionPlanSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询巡查计划表")
|
||||||
|
Result<InspectionPlanResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改巡查计划表")
|
||||||
|
Result<Boolean> update(@RequestBody InspectionPlanSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除巡查计划表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询巡查计划表")
|
||||||
|
Result<PageResult<InspectionPlanResp>> page(@RequestBody InspectionPlanPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.InspectionRecordPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.InspectionRecordResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.InspectionRecordSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查日志表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "InspectionRecordApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 巡查日志表")
|
||||||
|
public interface InspectionRecordApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/inspection-record";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增巡查日志表")
|
||||||
|
Result<InspectionRecordResp> create(@RequestBody InspectionRecordSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询巡查日志表")
|
||||||
|
Result<InspectionRecordResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改巡查日志表")
|
||||||
|
Result<Boolean> update(@RequestBody InspectionRecordSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除巡查日志表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询巡查日志表")
|
||||||
|
Result<PageResult<InspectionRecordResp>> page(@RequestBody InspectionRecordPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "KnowledgeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 知识表")
|
||||||
|
public interface KnowledgeApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/knowledge";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增知识表")
|
||||||
|
Result<KnowledgeResp> create(@RequestBody KnowledgeSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询知识表")
|
||||||
|
Result<KnowledgeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改知识表")
|
||||||
|
Result<Boolean> update(@RequestBody KnowledgeSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除知识表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询知识表")
|
||||||
|
Result<PageResult<KnowledgeResp>> page(@RequestBody KnowledgePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeCategoryPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeCategoryResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeCategorySaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识分类表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "KnowledgeCategoryApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 知识分类表")
|
||||||
|
public interface KnowledgeCategoryApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/knowledge-category";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增知识分类表")
|
||||||
|
Result<KnowledgeCategoryResp> create(@RequestBody KnowledgeCategorySaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询知识分类表")
|
||||||
|
Result<KnowledgeCategoryResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改知识分类表")
|
||||||
|
Result<Boolean> update(@RequestBody KnowledgeCategorySaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除知识分类表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询知识分类表")
|
||||||
|
Result<PageResult<KnowledgeCategoryResp>> page(@RequestBody KnowledgeCategoryPageReq req);
|
||||||
|
}
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 基础服务接口写法。新表的增删改查按这个接口增加,路径放在 /rpc-api/maint 下面。
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "MaintHealthApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 养护基础服务")
|
||||||
|
public interface MaintHealthApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/health";
|
||||||
|
|
||||||
|
@GetMapping(PREFIX)
|
||||||
|
@Operation(summary = "健康检查")
|
||||||
|
Result<String> health();
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceDeptPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceDeptResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceDeptSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护单位表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "MaintenanceDeptApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 养护单位表")
|
||||||
|
public interface MaintenanceDeptApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/maintenance-dept";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增养护单位表")
|
||||||
|
Result<MaintenanceDeptResp> create(@RequestBody MaintenanceDeptSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询养护单位表")
|
||||||
|
Result<MaintenanceDeptResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改养护单位表")
|
||||||
|
Result<Boolean> update(@RequestBody MaintenanceDeptSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除养护单位表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询养护单位表")
|
||||||
|
Result<PageResult<MaintenanceDeptResp>> page(@RequestBody MaintenanceDeptPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceEquipmentPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceEquipmentResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceEquipmentSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护设备表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "MaintenanceEquipmentApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 养护设备表")
|
||||||
|
public interface MaintenanceEquipmentApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/maintenance-equipment";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增养护设备表")
|
||||||
|
Result<MaintenanceEquipmentResp> create(@RequestBody MaintenanceEquipmentSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询养护设备表")
|
||||||
|
Result<MaintenanceEquipmentResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改养护设备表")
|
||||||
|
Result<Boolean> update(@RequestBody MaintenanceEquipmentSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除养护设备表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询养护设备表")
|
||||||
|
Result<PageResult<MaintenanceEquipmentResp>> page(@RequestBody MaintenanceEquipmentPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenancePersonPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenancePersonResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.MaintenancePersonSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护人员表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "MaintenancePersonApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 养护人员表")
|
||||||
|
public interface MaintenancePersonApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/maintenance-person";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增养护人员表")
|
||||||
|
Result<MaintenancePersonResp> create(@RequestBody MaintenancePersonSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询养护人员表")
|
||||||
|
Result<MaintenancePersonResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改养护人员表")
|
||||||
|
Result<Boolean> update(@RequestBody MaintenancePersonSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除养护人员表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询养护人员表")
|
||||||
|
Result<PageResult<MaintenancePersonResp>> page(@RequestBody MaintenancePersonPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 道路信息表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "RoadApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 道路信息表")
|
||||||
|
public interface RoadApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/road";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增道路信息表")
|
||||||
|
Result<RoadResp> create(@RequestBody RoadSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询道路信息表")
|
||||||
|
Result<RoadResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改道路信息表")
|
||||||
|
Result<Boolean> update(@RequestBody RoadSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除道路信息表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询道路信息表")
|
||||||
|
Result<PageResult<RoadResp>> page(@RequestBody RoadPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadSectionPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadSectionResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadSectionSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 路段信息表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "RoadSectionApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 路段信息表")
|
||||||
|
public interface RoadSectionApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/road-section";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增路段信息表")
|
||||||
|
Result<RoadSectionResp> create(@RequestBody RoadSectionSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询路段信息表")
|
||||||
|
Result<RoadSectionResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改路段信息表")
|
||||||
|
Result<Boolean> update(@RequestBody RoadSectionSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除路段信息表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询路段信息表")
|
||||||
|
Result<PageResult<RoadSectionResp>> page(@RequestBody RoadSectionPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadUpgradingPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadUpgradingResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.RoadUpgradingSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 改扩建信息表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "RoadUpgradingApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 改扩建信息表")
|
||||||
|
public interface RoadUpgradingApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/road-upgrading";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增改扩建信息表")
|
||||||
|
Result<RoadUpgradingResp> create(@RequestBody RoadUpgradingSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询改扩建信息表")
|
||||||
|
Result<RoadUpgradingResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改改扩建信息表")
|
||||||
|
Result<Boolean> update(@RequestBody RoadUpgradingSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除改扩建信息表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询改扩建信息表")
|
||||||
|
Result<PageResult<RoadUpgradingResp>> page(@RequestBody RoadUpgradingPageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.SlopePageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.SlopeResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.SlopeSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 边坡信息表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "SlopeApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 边坡信息表")
|
||||||
|
public interface SlopeApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/slope";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增边坡信息表")
|
||||||
|
Result<SlopeResp> create(@RequestBody SlopeSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询边坡信息表")
|
||||||
|
Result<SlopeResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改边坡信息表")
|
||||||
|
Result<Boolean> update(@RequestBody SlopeSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除边坡信息表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询边坡信息表")
|
||||||
|
Result<PageResult<SlopeResp>> page(@RequestBody SlopePageReq req);
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.api;
|
||||||
|
|
||||||
|
import com.wanji.software.tocc.common.model.Result;
|
||||||
|
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.UserRoadSectionPageReq;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.UserRoadSectionResp;
|
||||||
|
import com.wanji.software.tocc.infra.maint.model.dto.UserRoadSectionSaveReq;
|
||||||
|
import com.wanji.software.tocc.maint.support.PageResult;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户-路段关联表
|
||||||
|
*/
|
||||||
|
@FeignClient(name = ApiConstants.NAME, contextId = "UserRoadSectionApi", url = "${maint.infra.url:http://127.0.0.1:7424}")
|
||||||
|
@Tag(name = "RPC 服务 - 用户-路段关联表")
|
||||||
|
public interface UserRoadSectionApi {
|
||||||
|
|
||||||
|
String PREFIX = ApiConstants.PREFIX + "/user-road-section";
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/create")
|
||||||
|
@Operation(summary = "新增用户-路段关联表")
|
||||||
|
Result<UserRoadSectionResp> create(@RequestBody UserRoadSectionSaveReq req);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/get-by-id")
|
||||||
|
@Operation(summary = "按主键查询用户-路段关联表")
|
||||||
|
Result<UserRoadSectionResp> getById(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PutMapping(PREFIX + "/update")
|
||||||
|
@Operation(summary = "修改用户-路段关联表")
|
||||||
|
Result<Boolean> update(@RequestBody UserRoadSectionSaveReq req);
|
||||||
|
|
||||||
|
@DeleteMapping(PREFIX + "/delete")
|
||||||
|
@Operation(summary = "删除用户-路段关联表")
|
||||||
|
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||||
|
|
||||||
|
@PostMapping(PREFIX + "/page")
|
||||||
|
@Operation(summary = "分页查询用户-路段关联表")
|
||||||
|
Result<PageResult<UserRoadSectionResp>> page(@RequestBody UserRoadSectionPageReq req);
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.constants;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务名需要和 spring.application.name 保持一致。
|
||||||
|
*/
|
||||||
|
public final class ApiConstants {
|
||||||
|
|
||||||
|
public static final String NAME = "maint-infra";
|
||||||
|
|
||||||
|
public static final String PREFIX = "/rpc-api/maint";
|
||||||
|
|
||||||
|
public static final String VERSION = "1.0.0";
|
||||||
|
|
||||||
|
private ApiConstants() {
|
||||||
|
}
|
||||||
|
}
|
||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案-资产关联表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案-资产关联表分页查询")
|
||||||
|
public class ArchiveAssetPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 资产类型(道路、桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(道路、桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案-资产关联表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案-资产关联表")
|
||||||
|
public class ArchiveAssetResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 资产类型(道路、桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(道路、桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案-资产关联表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案-资产关联表保存参数")
|
||||||
|
public class ArchiveAssetSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 资产类型(道路、桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(道路、桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+43
@@ -0,0 +1,43 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案分类表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案分类表分页查询")
|
||||||
|
public class ArchiveCategoryPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 上级分类ID */
|
||||||
|
@Schema(description = "上级分类ID")
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/** 分类编码 */
|
||||||
|
@Schema(description = "分类编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 分类名称 */
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 本层级排序 */
|
||||||
|
@Schema(description = "本层级排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 路径 */
|
||||||
|
@Schema(description = "路径")
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/** 是否叶子节点 */
|
||||||
|
@Schema(description = "是否叶子节点")
|
||||||
|
private Integer isLeaf;
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案分类表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案分类表")
|
||||||
|
public class ArchiveCategoryResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 上级分类ID */
|
||||||
|
@Schema(description = "上级分类ID")
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/** 分类编码 */
|
||||||
|
@Schema(description = "分类编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 分类名称 */
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 本层级排序 */
|
||||||
|
@Schema(description = "本层级排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 路径 */
|
||||||
|
@Schema(description = "路径")
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/** 是否叶子节点 */
|
||||||
|
@Schema(description = "是否叶子节点")
|
||||||
|
private Integer isLeaf;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案分类表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案分类表保存参数")
|
||||||
|
public class ArchiveCategorySaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 上级分类ID */
|
||||||
|
@Schema(description = "上级分类ID")
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/** 分类编码 */
|
||||||
|
@Schema(description = "分类编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 分类名称 */
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 本层级排序 */
|
||||||
|
@Schema(description = "本层级排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 路径 */
|
||||||
|
@Schema(description = "路径")
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/** 是否叶子节点 */
|
||||||
|
@Schema(description = "是否叶子节点")
|
||||||
|
private Integer isLeaf;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+43
@@ -0,0 +1,43 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案文件表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案文件表分页查询")
|
||||||
|
public class ArchiveFilePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 案卷ID */
|
||||||
|
@Schema(description = "案卷ID")
|
||||||
|
private String volumeId;
|
||||||
|
|
||||||
|
/** 件号 */
|
||||||
|
@Schema(description = "件号")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 文件题名 */
|
||||||
|
@Schema(description = "文件题名")
|
||||||
|
private String fileTitle;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 附件ID */
|
||||||
|
@Schema(description = "附件ID")
|
||||||
|
private String attachmentId;
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案文件表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案文件表")
|
||||||
|
public class ArchiveFileResp {
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
@Schema(description = "id")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 案卷ID */
|
||||||
|
@Schema(description = "案卷ID")
|
||||||
|
private String volumeId;
|
||||||
|
|
||||||
|
/** 件号 */
|
||||||
|
@Schema(description = "件号")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 文件题名 */
|
||||||
|
@Schema(description = "文件题名")
|
||||||
|
private String fileTitle;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 附件ID */
|
||||||
|
@Schema(description = "附件ID")
|
||||||
|
private String attachmentId;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案文件表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案文件表保存参数")
|
||||||
|
public class ArchiveFileSaveReq {
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
@Schema(description = "id")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 案卷ID */
|
||||||
|
@Schema(description = "案卷ID")
|
||||||
|
private String volumeId;
|
||||||
|
|
||||||
|
/** 件号 */
|
||||||
|
@Schema(description = "件号")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 文件题名 */
|
||||||
|
@Schema(description = "文件题名")
|
||||||
|
private String fileTitle;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 附件ID */
|
||||||
|
@Schema(description = "附件ID")
|
||||||
|
private String attachmentId;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+73
@@ -0,0 +1,73 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案表分页查询")
|
||||||
|
public class ArchivePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 档案分类ID */
|
||||||
|
@Schema(description = "档案分类ID")
|
||||||
|
private String archiveCategoryId;
|
||||||
|
|
||||||
|
/** 档案编号 */
|
||||||
|
@Schema(description = "档案编号")
|
||||||
|
private String archiveCode;
|
||||||
|
|
||||||
|
/** 档案名称 */
|
||||||
|
@Schema(description = "档案名称")
|
||||||
|
private String archiveName;
|
||||||
|
|
||||||
|
/** 工程名称 */
|
||||||
|
@Schema(description = "工程名称")
|
||||||
|
private String projectName;
|
||||||
|
|
||||||
|
/** 阶段(前期、设计、施工、监理、竣工、运维) */
|
||||||
|
@Schema(description = "阶段(前期、设计、施工、监理、竣工、运维)")
|
||||||
|
private Integer phase;
|
||||||
|
|
||||||
|
/** 编制人 */
|
||||||
|
@Schema(description = "编制人")
|
||||||
|
private String editor;
|
||||||
|
|
||||||
|
/** 审核人 */
|
||||||
|
@Schema(description = "审核人")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 批准人 */
|
||||||
|
@Schema(description = "批准人")
|
||||||
|
private String approver;
|
||||||
|
|
||||||
|
/** 形成日期 */
|
||||||
|
@Schema(description = "形成日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate formDate;
|
||||||
|
|
||||||
|
/** 保管期限 */
|
||||||
|
@Schema(description = "保管期限")
|
||||||
|
private String retentionPeriod;
|
||||||
|
|
||||||
|
/** 总卷数(卷) */
|
||||||
|
@Schema(description = "总卷数(卷)")
|
||||||
|
private Integer totalVolumes;
|
||||||
|
|
||||||
|
/** 总件数(件) */
|
||||||
|
@Schema(description = "总件数(件)")
|
||||||
|
private Integer totalFiles;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
}
|
||||||
+93
@@ -0,0 +1,93 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案表")
|
||||||
|
public class ArchiveResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案分类ID */
|
||||||
|
@Schema(description = "档案分类ID")
|
||||||
|
private String archiveCategoryId;
|
||||||
|
|
||||||
|
/** 档案编号 */
|
||||||
|
@Schema(description = "档案编号")
|
||||||
|
private String archiveCode;
|
||||||
|
|
||||||
|
/** 档案名称 */
|
||||||
|
@Schema(description = "档案名称")
|
||||||
|
private String archiveName;
|
||||||
|
|
||||||
|
/** 工程名称 */
|
||||||
|
@Schema(description = "工程名称")
|
||||||
|
private String projectName;
|
||||||
|
|
||||||
|
/** 阶段(前期、设计、施工、监理、竣工、运维) */
|
||||||
|
@Schema(description = "阶段(前期、设计、施工、监理、竣工、运维)")
|
||||||
|
private Integer phase;
|
||||||
|
|
||||||
|
/** 编制人 */
|
||||||
|
@Schema(description = "编制人")
|
||||||
|
private String editor;
|
||||||
|
|
||||||
|
/** 审核人 */
|
||||||
|
@Schema(description = "审核人")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 批准人 */
|
||||||
|
@Schema(description = "批准人")
|
||||||
|
private String approver;
|
||||||
|
|
||||||
|
/** 形成日期 */
|
||||||
|
@Schema(description = "形成日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate formDate;
|
||||||
|
|
||||||
|
/** 保管期限 */
|
||||||
|
@Schema(description = "保管期限")
|
||||||
|
private String retentionPeriod;
|
||||||
|
|
||||||
|
/** 总卷数(卷) */
|
||||||
|
@Schema(description = "总卷数(卷)")
|
||||||
|
private Integer totalVolumes;
|
||||||
|
|
||||||
|
/** 总件数(件) */
|
||||||
|
@Schema(description = "总件数(件)")
|
||||||
|
private Integer totalFiles;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+75
@@ -0,0 +1,75 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案表保存参数")
|
||||||
|
public class ArchiveSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案分类ID */
|
||||||
|
@Schema(description = "档案分类ID")
|
||||||
|
private String archiveCategoryId;
|
||||||
|
|
||||||
|
/** 档案编号 */
|
||||||
|
@Schema(description = "档案编号")
|
||||||
|
private String archiveCode;
|
||||||
|
|
||||||
|
/** 档案名称 */
|
||||||
|
@Schema(description = "档案名称")
|
||||||
|
private String archiveName;
|
||||||
|
|
||||||
|
/** 工程名称 */
|
||||||
|
@Schema(description = "工程名称")
|
||||||
|
private String projectName;
|
||||||
|
|
||||||
|
/** 阶段(前期、设计、施工、监理、竣工、运维) */
|
||||||
|
@Schema(description = "阶段(前期、设计、施工、监理、竣工、运维)")
|
||||||
|
private Integer phase;
|
||||||
|
|
||||||
|
/** 编制人 */
|
||||||
|
@Schema(description = "编制人")
|
||||||
|
private String editor;
|
||||||
|
|
||||||
|
/** 审核人 */
|
||||||
|
@Schema(description = "审核人")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 批准人 */
|
||||||
|
@Schema(description = "批准人")
|
||||||
|
private String approver;
|
||||||
|
|
||||||
|
/** 形成日期 */
|
||||||
|
@Schema(description = "形成日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate formDate;
|
||||||
|
|
||||||
|
/** 保管期限 */
|
||||||
|
@Schema(description = "保管期限")
|
||||||
|
private String retentionPeriod;
|
||||||
|
|
||||||
|
/** 总卷数(卷) */
|
||||||
|
@Schema(description = "总卷数(卷)")
|
||||||
|
private Integer totalVolumes;
|
||||||
|
|
||||||
|
/** 总件数(件) */
|
||||||
|
@Schema(description = "总件数(件)")
|
||||||
|
private Integer totalFiles;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+79
@@ -0,0 +1,79 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案案卷表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案案卷表分页查询")
|
||||||
|
public class ArchiveVolumePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 卷号 */
|
||||||
|
@Schema(description = "卷号")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 卷内编号 */
|
||||||
|
@Schema(description = "卷内编号")
|
||||||
|
private String volumeCode;
|
||||||
|
|
||||||
|
/** 案卷题名 */
|
||||||
|
@Schema(description = "案卷题名")
|
||||||
|
private String volumeTitle;
|
||||||
|
|
||||||
|
/** 文件起始日期 */
|
||||||
|
@Schema(description = "文件起始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startDate;
|
||||||
|
|
||||||
|
/** 文件终止日期 */
|
||||||
|
@Schema(description = "文件终止日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endDate;
|
||||||
|
|
||||||
|
/** 立卷人 */
|
||||||
|
@Schema(description = "立卷人")
|
||||||
|
private String filer;
|
||||||
|
|
||||||
|
/** 检查人 */
|
||||||
|
@Schema(description = "检查人")
|
||||||
|
private String inspector;
|
||||||
|
|
||||||
|
/** 审批人 */
|
||||||
|
@Schema(description = "审批人")
|
||||||
|
private String approver;
|
||||||
|
|
||||||
|
/** 立卷日期 */
|
||||||
|
@Schema(description = "立卷日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate fileDate;
|
||||||
|
|
||||||
|
/** 库房位置(柜号/架号/层号) */
|
||||||
|
@Schema(description = "库房位置(柜号/架号/层号)")
|
||||||
|
private String storageLocation;
|
||||||
|
|
||||||
|
/** 保管期限 */
|
||||||
|
@Schema(description = "保管期限")
|
||||||
|
private String retentionPeriod;
|
||||||
|
|
||||||
|
/** 总件数(件) */
|
||||||
|
@Schema(description = "总件数(件)")
|
||||||
|
private Integer totalFiles;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
}
|
||||||
+99
@@ -0,0 +1,99 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案案卷表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案案卷表")
|
||||||
|
public class ArchiveVolumeResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 卷号 */
|
||||||
|
@Schema(description = "卷号")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 卷内编号 */
|
||||||
|
@Schema(description = "卷内编号")
|
||||||
|
private String volumeCode;
|
||||||
|
|
||||||
|
/** 案卷题名 */
|
||||||
|
@Schema(description = "案卷题名")
|
||||||
|
private String volumeTitle;
|
||||||
|
|
||||||
|
/** 文件起始日期 */
|
||||||
|
@Schema(description = "文件起始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startDate;
|
||||||
|
|
||||||
|
/** 文件终止日期 */
|
||||||
|
@Schema(description = "文件终止日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endDate;
|
||||||
|
|
||||||
|
/** 立卷人 */
|
||||||
|
@Schema(description = "立卷人")
|
||||||
|
private String filer;
|
||||||
|
|
||||||
|
/** 检查人 */
|
||||||
|
@Schema(description = "检查人")
|
||||||
|
private String inspector;
|
||||||
|
|
||||||
|
/** 审批人 */
|
||||||
|
@Schema(description = "审批人")
|
||||||
|
private String approver;
|
||||||
|
|
||||||
|
/** 立卷日期 */
|
||||||
|
@Schema(description = "立卷日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate fileDate;
|
||||||
|
|
||||||
|
/** 库房位置(柜号/架号/层号) */
|
||||||
|
@Schema(description = "库房位置(柜号/架号/层号)")
|
||||||
|
private String storageLocation;
|
||||||
|
|
||||||
|
/** 保管期限 */
|
||||||
|
@Schema(description = "保管期限")
|
||||||
|
private String retentionPeriod;
|
||||||
|
|
||||||
|
/** 总件数(件) */
|
||||||
|
@Schema(description = "总件数(件)")
|
||||||
|
private Integer totalFiles;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+81
@@ -0,0 +1,81 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程建设档案案卷表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "工程建设档案案卷表保存参数")
|
||||||
|
public class ArchiveVolumeSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 档案ID */
|
||||||
|
@Schema(description = "档案ID")
|
||||||
|
private String archiveId;
|
||||||
|
|
||||||
|
/** 卷号 */
|
||||||
|
@Schema(description = "卷号")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 卷内编号 */
|
||||||
|
@Schema(description = "卷内编号")
|
||||||
|
private String volumeCode;
|
||||||
|
|
||||||
|
/** 案卷题名 */
|
||||||
|
@Schema(description = "案卷题名")
|
||||||
|
private String volumeTitle;
|
||||||
|
|
||||||
|
/** 文件起始日期 */
|
||||||
|
@Schema(description = "文件起始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startDate;
|
||||||
|
|
||||||
|
/** 文件终止日期 */
|
||||||
|
@Schema(description = "文件终止日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endDate;
|
||||||
|
|
||||||
|
/** 立卷人 */
|
||||||
|
@Schema(description = "立卷人")
|
||||||
|
private String filer;
|
||||||
|
|
||||||
|
/** 检查人 */
|
||||||
|
@Schema(description = "检查人")
|
||||||
|
private String inspector;
|
||||||
|
|
||||||
|
/** 审批人 */
|
||||||
|
@Schema(description = "审批人")
|
||||||
|
private String approver;
|
||||||
|
|
||||||
|
/** 立卷日期 */
|
||||||
|
@Schema(description = "立卷日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate fileDate;
|
||||||
|
|
||||||
|
/** 库房位置(柜号/架号/层号) */
|
||||||
|
@Schema(description = "库房位置(柜号/架号/层号)")
|
||||||
|
private String storageLocation;
|
||||||
|
|
||||||
|
/** 保管期限 */
|
||||||
|
@Schema(description = "保管期限")
|
||||||
|
private String retentionPeriod;
|
||||||
|
|
||||||
|
/** 总件数(件) */
|
||||||
|
@Schema(description = "总件数(件)")
|
||||||
|
private Integer totalFiles;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+74
@@ -0,0 +1,74 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资产采集表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "资产采集表分页查询")
|
||||||
|
public class AssetInventoryPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID(冗余) */
|
||||||
|
@Schema(description = "道路ID(冗余)")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID(冗余) */
|
||||||
|
@Schema(description = "路段ID(冗余)")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 资产类型(桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 资产状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "资产状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer assetStatus;
|
||||||
|
|
||||||
|
/** 附件(图片、视频) */
|
||||||
|
@Schema(description = "附件(图片、视频)")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交、审核通过、审核驳回) */
|
||||||
|
@Schema(description = "状态(草稿、已提交、审核通过、审核驳回)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 提交人 */
|
||||||
|
@Schema(description = "提交人")
|
||||||
|
private String submitter;
|
||||||
|
|
||||||
|
/** 提交时间 */
|
||||||
|
@Schema(description = "提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate submitTime;
|
||||||
|
|
||||||
|
/** 审核人 */
|
||||||
|
@Schema(description = "审核人")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 审核时间 */
|
||||||
|
@Schema(description = "审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate checkTime;
|
||||||
|
|
||||||
|
/** 审核意见 */
|
||||||
|
@Schema(description = "审核意见")
|
||||||
|
private String checkComment;
|
||||||
|
}
|
||||||
+94
@@ -0,0 +1,94 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资产采集表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "资产采集表")
|
||||||
|
public class AssetInventoryResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID(冗余) */
|
||||||
|
@Schema(description = "道路ID(冗余)")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID(冗余) */
|
||||||
|
@Schema(description = "路段ID(冗余)")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 资产类型(桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 资产状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "资产状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer assetStatus;
|
||||||
|
|
||||||
|
/** 附件(图片、视频) */
|
||||||
|
@Schema(description = "附件(图片、视频)")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交、审核通过、审核驳回) */
|
||||||
|
@Schema(description = "状态(草稿、已提交、审核通过、审核驳回)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 提交人 */
|
||||||
|
@Schema(description = "提交人")
|
||||||
|
private String submitter;
|
||||||
|
|
||||||
|
/** 提交时间 */
|
||||||
|
@Schema(description = "提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate submitTime;
|
||||||
|
|
||||||
|
/** 审核人 */
|
||||||
|
@Schema(description = "审核人")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 审核时间 */
|
||||||
|
@Schema(description = "审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate checkTime;
|
||||||
|
|
||||||
|
/** 审核意见 */
|
||||||
|
@Schema(description = "审核意见")
|
||||||
|
private String checkComment;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+76
@@ -0,0 +1,76 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资产采集表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "资产采集表保存参数")
|
||||||
|
public class AssetInventorySaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID(冗余) */
|
||||||
|
@Schema(description = "道路ID(冗余)")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID(冗余) */
|
||||||
|
@Schema(description = "路段ID(冗余)")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 资产类型(桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 资产状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "资产状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer assetStatus;
|
||||||
|
|
||||||
|
/** 附件(图片、视频) */
|
||||||
|
@Schema(description = "附件(图片、视频)")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交、审核通过、审核驳回) */
|
||||||
|
@Schema(description = "状态(草稿、已提交、审核通过、审核驳回)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 提交人 */
|
||||||
|
@Schema(description = "提交人")
|
||||||
|
private String submitter;
|
||||||
|
|
||||||
|
/** 提交时间 */
|
||||||
|
@Schema(description = "提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate submitTime;
|
||||||
|
|
||||||
|
/** 审核人 */
|
||||||
|
@Schema(description = "审核人")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 审核时间 */
|
||||||
|
@Schema(description = "审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate checkTime;
|
||||||
|
|
||||||
|
/** 审核意见 */
|
||||||
|
@Schema(description = "审核意见")
|
||||||
|
private String checkComment;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+103
@@ -0,0 +1,103 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 桥梁信息表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "桥梁信息表分页查询")
|
||||||
|
public class BridgePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 管养单位ID */
|
||||||
|
@Schema(description = "管养单位ID")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 桥梁编码 */
|
||||||
|
@Schema(description = "桥梁编码")
|
||||||
|
private String bridgeCode;
|
||||||
|
|
||||||
|
/** 桥梁名称 */
|
||||||
|
@Schema(description = "桥梁名称")
|
||||||
|
private String bridgeName;
|
||||||
|
|
||||||
|
/** 起点桩号 */
|
||||||
|
@Schema(description = "起点桩号")
|
||||||
|
private String chainageStart;
|
||||||
|
|
||||||
|
/** 终点桩号 */
|
||||||
|
@Schema(description = "终点桩号")
|
||||||
|
private String chainageEnd;
|
||||||
|
|
||||||
|
/** 桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他) */
|
||||||
|
@Schema(description = "桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他)")
|
||||||
|
private Integer bridgeType;
|
||||||
|
|
||||||
|
/** 桥梁全长(m) */
|
||||||
|
@Schema(description = "桥梁全长(m)")
|
||||||
|
private BigDecimal bridgeLen;
|
||||||
|
|
||||||
|
/** 跨径总长(m) */
|
||||||
|
@Schema(description = "跨径总长(m)")
|
||||||
|
private BigDecimal totalSpanLen;
|
||||||
|
|
||||||
|
/** 桥面净宽(m) */
|
||||||
|
@Schema(description = "桥面净宽(m)")
|
||||||
|
private BigDecimal deckClearWidth;
|
||||||
|
|
||||||
|
/** 建设单位 */
|
||||||
|
@Schema(description = "建设单位")
|
||||||
|
private String owner;
|
||||||
|
|
||||||
|
/** 设计单位 */
|
||||||
|
@Schema(description = "设计单位")
|
||||||
|
private String designer;
|
||||||
|
|
||||||
|
/** 施工单位 */
|
||||||
|
@Schema(description = "施工单位")
|
||||||
|
private String contractor;
|
||||||
|
|
||||||
|
/** 监理单位 */
|
||||||
|
@Schema(description = "监理单位")
|
||||||
|
private String supervisor;
|
||||||
|
|
||||||
|
/** 行政区划ID */
|
||||||
|
@Schema(description = "行政区划ID")
|
||||||
|
private String regionId;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 技术状态(优、良、中、次、差) */
|
||||||
|
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||||
|
private Integer techStatus;
|
||||||
|
|
||||||
|
/** 附件 */
|
||||||
|
@Schema(description = "附件")
|
||||||
|
private String attacmentIds;
|
||||||
|
}
|
||||||
+125
@@ -0,0 +1,125 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 桥梁信息表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "桥梁信息表")
|
||||||
|
public class BridgeResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID */
|
||||||
|
@Schema(description = "管养单位ID")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 桥梁编码 */
|
||||||
|
@Schema(description = "桥梁编码")
|
||||||
|
private String bridgeCode;
|
||||||
|
|
||||||
|
/** 桥梁名称 */
|
||||||
|
@Schema(description = "桥梁名称")
|
||||||
|
private String bridgeName;
|
||||||
|
|
||||||
|
/** 起点桩号 */
|
||||||
|
@Schema(description = "起点桩号")
|
||||||
|
private String chainageStart;
|
||||||
|
|
||||||
|
/** 终点桩号 */
|
||||||
|
@Schema(description = "终点桩号")
|
||||||
|
private String chainageEnd;
|
||||||
|
|
||||||
|
/** 桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他) */
|
||||||
|
@Schema(description = "桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他)")
|
||||||
|
private Integer bridgeType;
|
||||||
|
|
||||||
|
/** 桥梁全长(m) */
|
||||||
|
@Schema(description = "桥梁全长(m)")
|
||||||
|
private BigDecimal bridgeLen;
|
||||||
|
|
||||||
|
/** 跨径总长(m) */
|
||||||
|
@Schema(description = "跨径总长(m)")
|
||||||
|
private BigDecimal totalSpanLen;
|
||||||
|
|
||||||
|
/** 桥面净宽(m) */
|
||||||
|
@Schema(description = "桥面净宽(m)")
|
||||||
|
private BigDecimal deckClearWidth;
|
||||||
|
|
||||||
|
/** 建设单位 */
|
||||||
|
@Schema(description = "建设单位")
|
||||||
|
private String owner;
|
||||||
|
|
||||||
|
/** 设计单位 */
|
||||||
|
@Schema(description = "设计单位")
|
||||||
|
private String designer;
|
||||||
|
|
||||||
|
/** 施工单位 */
|
||||||
|
@Schema(description = "施工单位")
|
||||||
|
private String contractor;
|
||||||
|
|
||||||
|
/** 监理单位 */
|
||||||
|
@Schema(description = "监理单位")
|
||||||
|
private String supervisor;
|
||||||
|
|
||||||
|
/** 行政区划ID */
|
||||||
|
@Schema(description = "行政区划ID")
|
||||||
|
private String regionId;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 技术状态(优、良、中、次、差) */
|
||||||
|
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||||
|
private Integer techStatus;
|
||||||
|
|
||||||
|
/** 附件 */
|
||||||
|
@Schema(description = "附件")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+105
@@ -0,0 +1,105 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 桥梁信息表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "桥梁信息表保存参数")
|
||||||
|
public class BridgeSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID */
|
||||||
|
@Schema(description = "管养单位ID")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 桥梁编码 */
|
||||||
|
@Schema(description = "桥梁编码")
|
||||||
|
private String bridgeCode;
|
||||||
|
|
||||||
|
/** 桥梁名称 */
|
||||||
|
@Schema(description = "桥梁名称")
|
||||||
|
private String bridgeName;
|
||||||
|
|
||||||
|
/** 起点桩号 */
|
||||||
|
@Schema(description = "起点桩号")
|
||||||
|
private String chainageStart;
|
||||||
|
|
||||||
|
/** 终点桩号 */
|
||||||
|
@Schema(description = "终点桩号")
|
||||||
|
private String chainageEnd;
|
||||||
|
|
||||||
|
/** 桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他) */
|
||||||
|
@Schema(description = "桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他)")
|
||||||
|
private Integer bridgeType;
|
||||||
|
|
||||||
|
/** 桥梁全长(m) */
|
||||||
|
@Schema(description = "桥梁全长(m)")
|
||||||
|
private BigDecimal bridgeLen;
|
||||||
|
|
||||||
|
/** 跨径总长(m) */
|
||||||
|
@Schema(description = "跨径总长(m)")
|
||||||
|
private BigDecimal totalSpanLen;
|
||||||
|
|
||||||
|
/** 桥面净宽(m) */
|
||||||
|
@Schema(description = "桥面净宽(m)")
|
||||||
|
private BigDecimal deckClearWidth;
|
||||||
|
|
||||||
|
/** 建设单位 */
|
||||||
|
@Schema(description = "建设单位")
|
||||||
|
private String owner;
|
||||||
|
|
||||||
|
/** 设计单位 */
|
||||||
|
@Schema(description = "设计单位")
|
||||||
|
private String designer;
|
||||||
|
|
||||||
|
/** 施工单位 */
|
||||||
|
@Schema(description = "施工单位")
|
||||||
|
private String contractor;
|
||||||
|
|
||||||
|
/** 监理单位 */
|
||||||
|
@Schema(description = "监理单位")
|
||||||
|
private String supervisor;
|
||||||
|
|
||||||
|
/** 行政区划ID */
|
||||||
|
@Schema(description = "行政区划ID")
|
||||||
|
private String regionId;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 技术状态(优、良、中、次、差) */
|
||||||
|
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||||
|
private Integer techStatus;
|
||||||
|
|
||||||
|
/** 附件 */
|
||||||
|
@Schema(description = "附件")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患-资产关联表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患-资产关联表分页查询")
|
||||||
|
public class DefectAssetPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 隐患ID */
|
||||||
|
@Schema(description = "隐患ID")
|
||||||
|
private String defectId;
|
||||||
|
|
||||||
|
/** 资产类型(桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患-资产关联表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患-资产关联表")
|
||||||
|
public class DefectAssetResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 隐患ID */
|
||||||
|
@Schema(description = "隐患ID")
|
||||||
|
private String defectId;
|
||||||
|
|
||||||
|
/** 资产类型(桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患-资产关联表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患-资产关联表保存参数")
|
||||||
|
public class DefectAssetSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 隐患ID */
|
||||||
|
@Schema(description = "隐患ID")
|
||||||
|
private String defectId;
|
||||||
|
|
||||||
|
/** 资产类型(桥梁、边坡、设施) */
|
||||||
|
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||||
|
private Integer assetType;
|
||||||
|
|
||||||
|
/** 资产ID */
|
||||||
|
@Schema(description = "资产ID")
|
||||||
|
private String assetId;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+144
@@ -0,0 +1,144 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患表分页查询")
|
||||||
|
public class DefectPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 隐患起点桩号 */
|
||||||
|
@Schema(description = "隐患起点桩号")
|
||||||
|
private String chainageStart;
|
||||||
|
|
||||||
|
/** 隐患终点桩号 */
|
||||||
|
@Schema(description = "隐患终点桩号")
|
||||||
|
private String chainageEnd;
|
||||||
|
|
||||||
|
/** 检测时间 */
|
||||||
|
@Schema(description = "检测时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionDate;
|
||||||
|
|
||||||
|
/** 隐患类别ID */
|
||||||
|
@Schema(description = "隐患类别ID")
|
||||||
|
private String defectTypeId;
|
||||||
|
|
||||||
|
/** 隐患等级(低风险、一般风险、较大风险、重大风险) */
|
||||||
|
@Schema(description = "隐患等级(低风险、一般风险、较大风险、重大风险)")
|
||||||
|
private Integer defectGrade;
|
||||||
|
|
||||||
|
/** 治理措施 */
|
||||||
|
@Schema(description = "治理措施")
|
||||||
|
private String remedialMeasure;
|
||||||
|
|
||||||
|
/** 数量 */
|
||||||
|
@Schema(description = "数量")
|
||||||
|
private BigDecimal remedialQty;
|
||||||
|
|
||||||
|
/** 预估金额(元) */
|
||||||
|
@Schema(description = "预估金额(元)")
|
||||||
|
private BigDecimal estimatedAmt;
|
||||||
|
|
||||||
|
/** 病害附件(图片、视频) */
|
||||||
|
@Schema(description = "病害附件(图片、视频)")
|
||||||
|
private String defectAttacmentIds;
|
||||||
|
|
||||||
|
/** 处置人(路长、巡查人员) */
|
||||||
|
@Schema(description = "处置人(路长、巡查人员)")
|
||||||
|
private String maintenancer;
|
||||||
|
|
||||||
|
/** 养护类型(日常养护、预防养护、修复养护、专项养护、应急养护) */
|
||||||
|
@Schema(description = "养护类型(日常养护、预防养护、修复养护、专项养护、应急养护)")
|
||||||
|
private Integer maintenanceType;
|
||||||
|
|
||||||
|
/** 养护开始日期 */
|
||||||
|
@Schema(description = "养护开始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceStartDate;
|
||||||
|
|
||||||
|
/** 养护结束日期 */
|
||||||
|
@Schema(description = "养护结束日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceEndDate;
|
||||||
|
|
||||||
|
/** 养护附件(图片、视频) */
|
||||||
|
@Schema(description = "养护附件(图片、视频)")
|
||||||
|
private String maintenanceAttacmentIds;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回) */
|
||||||
|
@Schema(description = "状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 病害提交人(路长、巡查人员) */
|
||||||
|
@Schema(description = "病害提交人(路长、巡查人员)")
|
||||||
|
private String submitter;
|
||||||
|
|
||||||
|
/** 病害提交时间 */
|
||||||
|
@Schema(description = "病害提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate submitTime;
|
||||||
|
|
||||||
|
/** 病害审核人(管理员) */
|
||||||
|
@Schema(description = "病害审核人(管理员)")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 病害审核时间 */
|
||||||
|
@Schema(description = "病害审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate checkTime;
|
||||||
|
|
||||||
|
/** 病害审核意见 */
|
||||||
|
@Schema(description = "病害审核意见")
|
||||||
|
private String checkComment;
|
||||||
|
|
||||||
|
/** 处置结果提交人(路长、巡查人员) */
|
||||||
|
@Schema(description = "处置结果提交人(路长、巡查人员)")
|
||||||
|
private String maintenanceSubmitter;
|
||||||
|
|
||||||
|
/** 处置结果提交时间 */
|
||||||
|
@Schema(description = "处置结果提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceSubmitTime;
|
||||||
|
|
||||||
|
/** 处置结果审核人(管理员) */
|
||||||
|
@Schema(description = "处置结果审核人(管理员)")
|
||||||
|
private String maintenanceChecker;
|
||||||
|
|
||||||
|
/** 处置结果审核时间 */
|
||||||
|
@Schema(description = "处置结果审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceCheckTime;
|
||||||
|
|
||||||
|
/** 处置结果审核意见 */
|
||||||
|
@Schema(description = "处置结果审核意见")
|
||||||
|
private String maintenanceCheckComment;
|
||||||
|
|
||||||
|
/** 来源(APP端、PC端、历史数据) */
|
||||||
|
@Schema(description = "来源(APP端、PC端、历史数据)")
|
||||||
|
private Integer source;
|
||||||
|
}
|
||||||
+172
@@ -0,0 +1,172 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患表")
|
||||||
|
public class DefectResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 隐患起点桩号 */
|
||||||
|
@Schema(description = "隐患起点桩号")
|
||||||
|
private String chainageStart;
|
||||||
|
|
||||||
|
/** 隐患终点桩号 */
|
||||||
|
@Schema(description = "隐患终点桩号")
|
||||||
|
private String chainageEnd;
|
||||||
|
|
||||||
|
/** 检测时间 */
|
||||||
|
@Schema(description = "检测时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionDate;
|
||||||
|
|
||||||
|
/** 隐患类别ID */
|
||||||
|
@Schema(description = "隐患类别ID")
|
||||||
|
private String defectTypeId;
|
||||||
|
|
||||||
|
/** 隐患等级(低风险、一般风险、较大风险、重大风险) */
|
||||||
|
@Schema(description = "隐患等级(低风险、一般风险、较大风险、重大风险)")
|
||||||
|
private Integer defectGrade;
|
||||||
|
|
||||||
|
/** 治理措施 */
|
||||||
|
@Schema(description = "治理措施")
|
||||||
|
private String remedialMeasure;
|
||||||
|
|
||||||
|
/** 数量 */
|
||||||
|
@Schema(description = "数量")
|
||||||
|
private BigDecimal remedialQty;
|
||||||
|
|
||||||
|
/** 预估金额(元) */
|
||||||
|
@Schema(description = "预估金额(元)")
|
||||||
|
private BigDecimal estimatedAmt;
|
||||||
|
|
||||||
|
/** 病害描述 */
|
||||||
|
@Schema(description = "病害描述")
|
||||||
|
private String defectDescription;
|
||||||
|
|
||||||
|
/** 病害附件(图片、视频) */
|
||||||
|
@Schema(description = "病害附件(图片、视频)")
|
||||||
|
private String defectAttacmentIds;
|
||||||
|
|
||||||
|
/** 处置人(路长、巡查人员) */
|
||||||
|
@Schema(description = "处置人(路长、巡查人员)")
|
||||||
|
private String maintenancer;
|
||||||
|
|
||||||
|
/** 养护类型(日常养护、预防养护、修复养护、专项养护、应急养护) */
|
||||||
|
@Schema(description = "养护类型(日常养护、预防养护、修复养护、专项养护、应急养护)")
|
||||||
|
private Integer maintenanceType;
|
||||||
|
|
||||||
|
/** 养护开始日期 */
|
||||||
|
@Schema(description = "养护开始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceStartDate;
|
||||||
|
|
||||||
|
/** 养护结束日期 */
|
||||||
|
@Schema(description = "养护结束日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceEndDate;
|
||||||
|
|
||||||
|
/** 养护内容 */
|
||||||
|
@Schema(description = "养护内容")
|
||||||
|
private String maintenanceContent;
|
||||||
|
|
||||||
|
/** 养护附件(图片、视频) */
|
||||||
|
@Schema(description = "养护附件(图片、视频)")
|
||||||
|
private String maintenanceAttacmentIds;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回) */
|
||||||
|
@Schema(description = "状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 病害提交人(路长、巡查人员) */
|
||||||
|
@Schema(description = "病害提交人(路长、巡查人员)")
|
||||||
|
private String submitter;
|
||||||
|
|
||||||
|
/** 病害提交时间 */
|
||||||
|
@Schema(description = "病害提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate submitTime;
|
||||||
|
|
||||||
|
/** 病害审核人(管理员) */
|
||||||
|
@Schema(description = "病害审核人(管理员)")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 病害审核时间 */
|
||||||
|
@Schema(description = "病害审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate checkTime;
|
||||||
|
|
||||||
|
/** 病害审核意见 */
|
||||||
|
@Schema(description = "病害审核意见")
|
||||||
|
private String checkComment;
|
||||||
|
|
||||||
|
/** 处置结果提交人(路长、巡查人员) */
|
||||||
|
@Schema(description = "处置结果提交人(路长、巡查人员)")
|
||||||
|
private String maintenanceSubmitter;
|
||||||
|
|
||||||
|
/** 处置结果提交时间 */
|
||||||
|
@Schema(description = "处置结果提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceSubmitTime;
|
||||||
|
|
||||||
|
/** 处置结果审核人(管理员) */
|
||||||
|
@Schema(description = "处置结果审核人(管理员)")
|
||||||
|
private String maintenanceChecker;
|
||||||
|
|
||||||
|
/** 处置结果审核时间 */
|
||||||
|
@Schema(description = "处置结果审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceCheckTime;
|
||||||
|
|
||||||
|
/** 处置结果审核意见 */
|
||||||
|
@Schema(description = "处置结果审核意见")
|
||||||
|
private String maintenanceCheckComment;
|
||||||
|
|
||||||
|
/** 来源(APP端、PC端、历史数据) */
|
||||||
|
@Schema(description = "来源(APP端、PC端、历史数据)")
|
||||||
|
private Integer source;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+154
@@ -0,0 +1,154 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患表保存参数")
|
||||||
|
public class DefectSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 隐患起点桩号 */
|
||||||
|
@Schema(description = "隐患起点桩号")
|
||||||
|
private String chainageStart;
|
||||||
|
|
||||||
|
/** 隐患终点桩号 */
|
||||||
|
@Schema(description = "隐患终点桩号")
|
||||||
|
private String chainageEnd;
|
||||||
|
|
||||||
|
/** 检测时间 */
|
||||||
|
@Schema(description = "检测时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionDate;
|
||||||
|
|
||||||
|
/** 隐患类别ID */
|
||||||
|
@Schema(description = "隐患类别ID")
|
||||||
|
private String defectTypeId;
|
||||||
|
|
||||||
|
/** 隐患等级(低风险、一般风险、较大风险、重大风险) */
|
||||||
|
@Schema(description = "隐患等级(低风险、一般风险、较大风险、重大风险)")
|
||||||
|
private Integer defectGrade;
|
||||||
|
|
||||||
|
/** 治理措施 */
|
||||||
|
@Schema(description = "治理措施")
|
||||||
|
private String remedialMeasure;
|
||||||
|
|
||||||
|
/** 数量 */
|
||||||
|
@Schema(description = "数量")
|
||||||
|
private BigDecimal remedialQty;
|
||||||
|
|
||||||
|
/** 预估金额(元) */
|
||||||
|
@Schema(description = "预估金额(元)")
|
||||||
|
private BigDecimal estimatedAmt;
|
||||||
|
|
||||||
|
/** 病害描述 */
|
||||||
|
@Schema(description = "病害描述")
|
||||||
|
private String defectDescription;
|
||||||
|
|
||||||
|
/** 病害附件(图片、视频) */
|
||||||
|
@Schema(description = "病害附件(图片、视频)")
|
||||||
|
private String defectAttacmentIds;
|
||||||
|
|
||||||
|
/** 处置人(路长、巡查人员) */
|
||||||
|
@Schema(description = "处置人(路长、巡查人员)")
|
||||||
|
private String maintenancer;
|
||||||
|
|
||||||
|
/** 养护类型(日常养护、预防养护、修复养护、专项养护、应急养护) */
|
||||||
|
@Schema(description = "养护类型(日常养护、预防养护、修复养护、专项养护、应急养护)")
|
||||||
|
private Integer maintenanceType;
|
||||||
|
|
||||||
|
/** 养护开始日期 */
|
||||||
|
@Schema(description = "养护开始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceStartDate;
|
||||||
|
|
||||||
|
/** 养护结束日期 */
|
||||||
|
@Schema(description = "养护结束日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceEndDate;
|
||||||
|
|
||||||
|
/** 养护内容 */
|
||||||
|
@Schema(description = "养护内容")
|
||||||
|
private String maintenanceContent;
|
||||||
|
|
||||||
|
/** 养护附件(图片、视频) */
|
||||||
|
@Schema(description = "养护附件(图片、视频)")
|
||||||
|
private String maintenanceAttacmentIds;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回) */
|
||||||
|
@Schema(description = "状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 病害提交人(路长、巡查人员) */
|
||||||
|
@Schema(description = "病害提交人(路长、巡查人员)")
|
||||||
|
private String submitter;
|
||||||
|
|
||||||
|
/** 病害提交时间 */
|
||||||
|
@Schema(description = "病害提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate submitTime;
|
||||||
|
|
||||||
|
/** 病害审核人(管理员) */
|
||||||
|
@Schema(description = "病害审核人(管理员)")
|
||||||
|
private String checker;
|
||||||
|
|
||||||
|
/** 病害审核时间 */
|
||||||
|
@Schema(description = "病害审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate checkTime;
|
||||||
|
|
||||||
|
/** 病害审核意见 */
|
||||||
|
@Schema(description = "病害审核意见")
|
||||||
|
private String checkComment;
|
||||||
|
|
||||||
|
/** 处置结果提交人(路长、巡查人员) */
|
||||||
|
@Schema(description = "处置结果提交人(路长、巡查人员)")
|
||||||
|
private String maintenanceSubmitter;
|
||||||
|
|
||||||
|
/** 处置结果提交时间 */
|
||||||
|
@Schema(description = "处置结果提交时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceSubmitTime;
|
||||||
|
|
||||||
|
/** 处置结果审核人(管理员) */
|
||||||
|
@Schema(description = "处置结果审核人(管理员)")
|
||||||
|
private String maintenanceChecker;
|
||||||
|
|
||||||
|
/** 处置结果审核时间 */
|
||||||
|
@Schema(description = "处置结果审核时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate maintenanceCheckTime;
|
||||||
|
|
||||||
|
/** 处置结果审核意见 */
|
||||||
|
@Schema(description = "处置结果审核意见")
|
||||||
|
private String maintenanceCheckComment;
|
||||||
|
|
||||||
|
/** 来源(APP端、PC端、历史数据) */
|
||||||
|
@Schema(description = "来源(APP端、PC端、历史数据)")
|
||||||
|
private Integer source;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患类别表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患类别表分页查询")
|
||||||
|
public class DefectTypePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 计量单位(㎡、m³) */
|
||||||
|
@Schema(description = "计量单位(㎡、m³)")
|
||||||
|
private String unit;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
}
|
||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患类别表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患类别表")
|
||||||
|
public class DefectTypeResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 计量单位(㎡、m³) */
|
||||||
|
@Schema(description = "计量单位(㎡、m³)")
|
||||||
|
private String unit;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+33
@@ -0,0 +1,33 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 隐患类别表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "隐患类别表保存参数")
|
||||||
|
public class DefectTypeSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 计量单位(㎡、m³) */
|
||||||
|
@Schema(description = "计量单位(㎡、m³)")
|
||||||
|
private String unit;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+87
@@ -0,0 +1,87 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施信息表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施信息表分页查询")
|
||||||
|
public class FacilityPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 管养单位ID */
|
||||||
|
@Schema(description = "管养单位ID")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 设施类型ID */
|
||||||
|
@Schema(description = "设施类型ID")
|
||||||
|
private String facilityTypeId;
|
||||||
|
|
||||||
|
/** 设施编码 */
|
||||||
|
@Schema(description = "设施编码")
|
||||||
|
private String facilityCode;
|
||||||
|
|
||||||
|
/** 设施名称 */
|
||||||
|
@Schema(description = "设施名称")
|
||||||
|
private String facilityName;
|
||||||
|
|
||||||
|
/** 桩号 */
|
||||||
|
@Schema(description = "桩号")
|
||||||
|
private String chainage;
|
||||||
|
|
||||||
|
/** 版面形状 */
|
||||||
|
@Schema(description = "版面形状")
|
||||||
|
private String faceShape;
|
||||||
|
|
||||||
|
/** 版面材质 */
|
||||||
|
@Schema(description = "版面材质")
|
||||||
|
private String faceMaterial;
|
||||||
|
|
||||||
|
/** 版面尺寸 */
|
||||||
|
@Schema(description = "版面尺寸")
|
||||||
|
private String faceDimension;
|
||||||
|
|
||||||
|
/** 支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他) */
|
||||||
|
@Schema(description = "支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他)")
|
||||||
|
private Integer mountingType;
|
||||||
|
|
||||||
|
/** 行政区划ID */
|
||||||
|
@Schema(description = "行政区划ID")
|
||||||
|
private String regionId;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 技术状态(优、良、中、次、差) */
|
||||||
|
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||||
|
private Integer techStatus;
|
||||||
|
|
||||||
|
/** 附件 */
|
||||||
|
@Schema(description = "附件")
|
||||||
|
private String attacmentIds;
|
||||||
|
}
|
||||||
+113
@@ -0,0 +1,113 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施信息表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施信息表")
|
||||||
|
public class FacilityResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID */
|
||||||
|
@Schema(description = "管养单位ID")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 设施类型ID */
|
||||||
|
@Schema(description = "设施类型ID")
|
||||||
|
private String facilityTypeId;
|
||||||
|
|
||||||
|
/** 设施编码 */
|
||||||
|
@Schema(description = "设施编码")
|
||||||
|
private String facilityCode;
|
||||||
|
|
||||||
|
/** 设施名称 */
|
||||||
|
@Schema(description = "设施名称")
|
||||||
|
private String facilityName;
|
||||||
|
|
||||||
|
/** 桩号 */
|
||||||
|
@Schema(description = "桩号")
|
||||||
|
private String chainage;
|
||||||
|
|
||||||
|
/** 版面形状 */
|
||||||
|
@Schema(description = "版面形状")
|
||||||
|
private String faceShape;
|
||||||
|
|
||||||
|
/** 版面材质 */
|
||||||
|
@Schema(description = "版面材质")
|
||||||
|
private String faceMaterial;
|
||||||
|
|
||||||
|
/** 版面尺寸 */
|
||||||
|
@Schema(description = "版面尺寸")
|
||||||
|
private String faceDimension;
|
||||||
|
|
||||||
|
/** 支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他) */
|
||||||
|
@Schema(description = "支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他)")
|
||||||
|
private Integer mountingType;
|
||||||
|
|
||||||
|
/** 行政区划ID */
|
||||||
|
@Schema(description = "行政区划ID")
|
||||||
|
private String regionId;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 技术状态(优、良、中、次、差) */
|
||||||
|
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||||
|
private Integer techStatus;
|
||||||
|
|
||||||
|
/** 附件 */
|
||||||
|
@Schema(description = "附件")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 自定义扩展属性 */
|
||||||
|
@Schema(description = "自定义扩展属性")
|
||||||
|
private String customProp;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+93
@@ -0,0 +1,93 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施信息表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施信息表保存参数")
|
||||||
|
public class FacilitySaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID */
|
||||||
|
@Schema(description = "管养单位ID")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 设施类型ID */
|
||||||
|
@Schema(description = "设施类型ID")
|
||||||
|
private String facilityTypeId;
|
||||||
|
|
||||||
|
/** 设施编码 */
|
||||||
|
@Schema(description = "设施编码")
|
||||||
|
private String facilityCode;
|
||||||
|
|
||||||
|
/** 设施名称 */
|
||||||
|
@Schema(description = "设施名称")
|
||||||
|
private String facilityName;
|
||||||
|
|
||||||
|
/** 桩号 */
|
||||||
|
@Schema(description = "桩号")
|
||||||
|
private String chainage;
|
||||||
|
|
||||||
|
/** 版面形状 */
|
||||||
|
@Schema(description = "版面形状")
|
||||||
|
private String faceShape;
|
||||||
|
|
||||||
|
/** 版面材质 */
|
||||||
|
@Schema(description = "版面材质")
|
||||||
|
private String faceMaterial;
|
||||||
|
|
||||||
|
/** 版面尺寸 */
|
||||||
|
@Schema(description = "版面尺寸")
|
||||||
|
private String faceDimension;
|
||||||
|
|
||||||
|
/** 支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他) */
|
||||||
|
@Schema(description = "支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他)")
|
||||||
|
private Integer mountingType;
|
||||||
|
|
||||||
|
/** 行政区划ID */
|
||||||
|
@Schema(description = "行政区划ID")
|
||||||
|
private String regionId;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||||
|
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 技术状态(优、良、中、次、差) */
|
||||||
|
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||||
|
private Integer techStatus;
|
||||||
|
|
||||||
|
/** 附件 */
|
||||||
|
@Schema(description = "附件")
|
||||||
|
private String attacmentIds;
|
||||||
|
|
||||||
|
/** 自定义扩展属性 */
|
||||||
|
@Schema(description = "自定义扩展属性")
|
||||||
|
private String customProp;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+43
@@ -0,0 +1,43 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型字段配置表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施类型字段配置表分页查询")
|
||||||
|
public class FacilityTypeFieldPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 设施类型ID */
|
||||||
|
@Schema(description = "设施类型ID")
|
||||||
|
private String facilityTypeId;
|
||||||
|
|
||||||
|
/** 字段编码 */
|
||||||
|
@Schema(description = "字段编码")
|
||||||
|
private String fieldCode;
|
||||||
|
|
||||||
|
/** 字段名称 */
|
||||||
|
@Schema(description = "字段名称")
|
||||||
|
private String fieldName;
|
||||||
|
|
||||||
|
/** 字段类型(字符、文本、数字、日期、字典) */
|
||||||
|
@Schema(description = "字段类型(字符、文本、数字、日期、字典)")
|
||||||
|
private Integer fieldType;
|
||||||
|
|
||||||
|
/** 字典编码 */
|
||||||
|
@Schema(description = "字典编码")
|
||||||
|
private String dictCode;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型字段配置表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施类型字段配置表")
|
||||||
|
public class FacilityTypeFieldResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 设施类型ID */
|
||||||
|
@Schema(description = "设施类型ID")
|
||||||
|
private String facilityTypeId;
|
||||||
|
|
||||||
|
/** 字段编码 */
|
||||||
|
@Schema(description = "字段编码")
|
||||||
|
private String fieldCode;
|
||||||
|
|
||||||
|
/** 字段名称 */
|
||||||
|
@Schema(description = "字段名称")
|
||||||
|
private String fieldName;
|
||||||
|
|
||||||
|
/** 字段类型(字符、文本、数字、日期、字典) */
|
||||||
|
@Schema(description = "字段类型(字符、文本、数字、日期、字典)")
|
||||||
|
private Integer fieldType;
|
||||||
|
|
||||||
|
/** 字典编码 */
|
||||||
|
@Schema(description = "字典编码")
|
||||||
|
private String dictCode;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型字段配置表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施类型字段配置表保存参数")
|
||||||
|
public class FacilityTypeFieldSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 设施类型ID */
|
||||||
|
@Schema(description = "设施类型ID")
|
||||||
|
private String facilityTypeId;
|
||||||
|
|
||||||
|
/** 字段编码 */
|
||||||
|
@Schema(description = "字段编码")
|
||||||
|
private String fieldCode;
|
||||||
|
|
||||||
|
/** 字段名称 */
|
||||||
|
@Schema(description = "字段名称")
|
||||||
|
private String fieldName;
|
||||||
|
|
||||||
|
/** 字段类型(字符、文本、数字、日期、字典) */
|
||||||
|
@Schema(description = "字段类型(字符、文本、数字、日期、字典)")
|
||||||
|
private Integer fieldType;
|
||||||
|
|
||||||
|
/** 字典编码 */
|
||||||
|
@Schema(description = "字典编码")
|
||||||
|
private String dictCode;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+27
@@ -0,0 +1,27 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施类型表分页查询")
|
||||||
|
public class FacilityTypePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施类型表")
|
||||||
|
public class FacilityTypeResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设施类型表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "设施类型表保存参数")
|
||||||
|
public class FacilityTypeSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+58
@@ -0,0 +1,58 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查计划表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "巡查计划表分页查询")
|
||||||
|
public class InspectionPlanPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 计划名称 */
|
||||||
|
@Schema(description = "计划名称")
|
||||||
|
private String planName;
|
||||||
|
|
||||||
|
/** 巡查类型(日常巡查、经常检查、定期检查) */
|
||||||
|
@Schema(description = "巡查类型(日常巡查、经常检查、定期检查)")
|
||||||
|
private Integer inspectionType;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 开始日期 */
|
||||||
|
@Schema(description = "开始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startDate;
|
||||||
|
|
||||||
|
/** 结束日期 */
|
||||||
|
@Schema(description = "结束日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endDate;
|
||||||
|
|
||||||
|
/** 频率 */
|
||||||
|
@Schema(description = "频率")
|
||||||
|
private String frequency;
|
||||||
|
|
||||||
|
/** 状态(启用、停用) */
|
||||||
|
@Schema(description = "状态(启用、停用)")
|
||||||
|
private Integer status;
|
||||||
|
}
|
||||||
+78
@@ -0,0 +1,78 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查计划表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "巡查计划表")
|
||||||
|
public class InspectionPlanResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 计划名称 */
|
||||||
|
@Schema(description = "计划名称")
|
||||||
|
private String planName;
|
||||||
|
|
||||||
|
/** 巡查类型(日常巡查、经常检查、定期检查) */
|
||||||
|
@Schema(description = "巡查类型(日常巡查、经常检查、定期检查)")
|
||||||
|
private Integer inspectionType;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 开始日期 */
|
||||||
|
@Schema(description = "开始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startDate;
|
||||||
|
|
||||||
|
/** 结束日期 */
|
||||||
|
@Schema(description = "结束日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endDate;
|
||||||
|
|
||||||
|
/** 频率 */
|
||||||
|
@Schema(description = "频率")
|
||||||
|
private String frequency;
|
||||||
|
|
||||||
|
/** 状态(启用、停用) */
|
||||||
|
@Schema(description = "状态(启用、停用)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+60
@@ -0,0 +1,60 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查计划表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "巡查计划表保存参数")
|
||||||
|
public class InspectionPlanSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 计划名称 */
|
||||||
|
@Schema(description = "计划名称")
|
||||||
|
private String planName;
|
||||||
|
|
||||||
|
/** 巡查类型(日常巡查、经常检查、定期检查) */
|
||||||
|
@Schema(description = "巡查类型(日常巡查、经常检查、定期检查)")
|
||||||
|
private Integer inspectionType;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 开始日期 */
|
||||||
|
@Schema(description = "开始日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate startDate;
|
||||||
|
|
||||||
|
/** 结束日期 */
|
||||||
|
@Schema(description = "结束日期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate endDate;
|
||||||
|
|
||||||
|
/** 频率 */
|
||||||
|
@Schema(description = "频率")
|
||||||
|
private String frequency;
|
||||||
|
|
||||||
|
/** 状态(启用、停用) */
|
||||||
|
@Schema(description = "状态(启用、停用)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+54
@@ -0,0 +1,54 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查日志表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "巡查日志表分页查询")
|
||||||
|
public class InspectionRecordPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 巡查人员ID(冗余) */
|
||||||
|
@Schema(description = "巡查人员ID(冗余)")
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
/** 巡查计划ID */
|
||||||
|
@Schema(description = "巡查计划ID")
|
||||||
|
private String inspectionPlanId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 巡查开始时间 */
|
||||||
|
@Schema(description = "巡查开始时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionStartTime;
|
||||||
|
|
||||||
|
/** 巡查结束时间 */
|
||||||
|
@Schema(description = "巡查结束时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionEndTime;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交) */
|
||||||
|
@Schema(description = "状态(草稿、已提交)")
|
||||||
|
private Integer status;
|
||||||
|
}
|
||||||
+78
@@ -0,0 +1,78 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查日志表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "巡查日志表")
|
||||||
|
public class InspectionRecordResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 巡查人员ID(冗余) */
|
||||||
|
@Schema(description = "巡查人员ID(冗余)")
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
/** 巡查计划ID */
|
||||||
|
@Schema(description = "巡查计划ID")
|
||||||
|
private String inspectionPlanId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 巡查开始时间 */
|
||||||
|
@Schema(description = "巡查开始时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionStartTime;
|
||||||
|
|
||||||
|
/** 巡查结束时间 */
|
||||||
|
@Schema(description = "巡查结束时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionEndTime;
|
||||||
|
|
||||||
|
/** 巡查轨迹 */
|
||||||
|
@Schema(description = "巡查轨迹")
|
||||||
|
private String inspectionRoute;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交) */
|
||||||
|
@Schema(description = "状态(草稿、已提交)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+60
@@ -0,0 +1,60 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡查日志表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "巡查日志表保存参数")
|
||||||
|
public class InspectionRecordSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 管养单位ID(冗余) */
|
||||||
|
@Schema(description = "管养单位ID(冗余)")
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/** 巡查人员ID(冗余) */
|
||||||
|
@Schema(description = "巡查人员ID(冗余)")
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
/** 巡查计划ID */
|
||||||
|
@Schema(description = "巡查计划ID")
|
||||||
|
private String inspectionPlanId;
|
||||||
|
|
||||||
|
/** 道路ID */
|
||||||
|
@Schema(description = "道路ID")
|
||||||
|
private String roadId;
|
||||||
|
|
||||||
|
/** 路段ID */
|
||||||
|
@Schema(description = "路段ID")
|
||||||
|
private String roadSectionId;
|
||||||
|
|
||||||
|
/** 巡查开始时间 */
|
||||||
|
@Schema(description = "巡查开始时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionStartTime;
|
||||||
|
|
||||||
|
/** 巡查结束时间 */
|
||||||
|
@Schema(description = "巡查结束时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate inspectionEndTime;
|
||||||
|
|
||||||
|
/** 巡查轨迹 */
|
||||||
|
@Schema(description = "巡查轨迹")
|
||||||
|
private String inspectionRoute;
|
||||||
|
|
||||||
|
/** 状态(草稿、已提交) */
|
||||||
|
@Schema(description = "状态(草稿、已提交)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+43
@@ -0,0 +1,43 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识分类表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "知识分类表分页查询")
|
||||||
|
public class KnowledgeCategoryPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 上级分类ID */
|
||||||
|
@Schema(description = "上级分类ID")
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/** 分类编码 */
|
||||||
|
@Schema(description = "分类编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 分类名称 */
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 本层级排序 */
|
||||||
|
@Schema(description = "本层级排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 路径 */
|
||||||
|
@Schema(description = "路径")
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/** 是否叶子节点 */
|
||||||
|
@Schema(description = "是否叶子节点")
|
||||||
|
private Integer isLeaf;
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识分类表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "知识分类表")
|
||||||
|
public class KnowledgeCategoryResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 上级分类ID */
|
||||||
|
@Schema(description = "上级分类ID")
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/** 分类编码 */
|
||||||
|
@Schema(description = "分类编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 分类名称 */
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 本层级排序 */
|
||||||
|
@Schema(description = "本层级排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 路径 */
|
||||||
|
@Schema(description = "路径")
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/** 是否叶子节点 */
|
||||||
|
@Schema(description = "是否叶子节点")
|
||||||
|
private Integer isLeaf;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识分类表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "知识分类表保存参数")
|
||||||
|
public class KnowledgeCategorySaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 上级分类ID */
|
||||||
|
@Schema(description = "上级分类ID")
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/** 分类编码 */
|
||||||
|
@Schema(description = "分类编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
/** 分类名称 */
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 本层级排序 */
|
||||||
|
@Schema(description = "本层级排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 路径 */
|
||||||
|
@Schema(description = "路径")
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/** 是否叶子节点 */
|
||||||
|
@Schema(description = "是否叶子节点")
|
||||||
|
private Integer isLeaf;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+39
@@ -0,0 +1,39 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "知识表分页查询")
|
||||||
|
public class KnowledgePageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 知识分类ID */
|
||||||
|
@Schema(description = "知识分类ID")
|
||||||
|
private String knowledgeCategoryId;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Schema(description = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 附件ID */
|
||||||
|
@Schema(description = "附件ID")
|
||||||
|
private String attachmentId;
|
||||||
|
|
||||||
|
/** 状态(上架、下架) */
|
||||||
|
@Schema(description = "状态(上架、下架)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "知识表")
|
||||||
|
public class KnowledgeResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 知识分类ID */
|
||||||
|
@Schema(description = "知识分类ID")
|
||||||
|
private String knowledgeCategoryId;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Schema(description = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 内容 */
|
||||||
|
@Schema(description = "内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 附件ID */
|
||||||
|
@Schema(description = "附件ID")
|
||||||
|
private String attachmentId;
|
||||||
|
|
||||||
|
/** 状态(上架、下架) */
|
||||||
|
@Schema(description = "状态(上架、下架)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 知识表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "知识表保存参数")
|
||||||
|
public class KnowledgeSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 知识分类ID */
|
||||||
|
@Schema(description = "知识分类ID")
|
||||||
|
private String knowledgeCategoryId;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Schema(description = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 内容 */
|
||||||
|
@Schema(description = "内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 附件ID */
|
||||||
|
@Schema(description = "附件ID")
|
||||||
|
private String attachmentId;
|
||||||
|
|
||||||
|
/** 状态(上架、下架) */
|
||||||
|
@Schema(description = "状态(上架、下架)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 排序 */
|
||||||
|
@Schema(description = "排序")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护单位表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护单位表分页查询")
|
||||||
|
public class MaintenanceDeptPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 单位名称 */
|
||||||
|
@Schema(description = "单位名称")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/** 联系人 */
|
||||||
|
@Schema(description = "联系人")
|
||||||
|
private String linkman;
|
||||||
|
|
||||||
|
/** 联系方式 */
|
||||||
|
@Schema(description = "联系方式")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/** 单位地址 */
|
||||||
|
@Schema(description = "单位地址")
|
||||||
|
private String address;
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护单位表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护单位表")
|
||||||
|
public class MaintenanceDeptResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 单位名称 */
|
||||||
|
@Schema(description = "单位名称")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/** 联系人 */
|
||||||
|
@Schema(description = "联系人")
|
||||||
|
private String linkman;
|
||||||
|
|
||||||
|
/** 联系方式 */
|
||||||
|
@Schema(description = "联系方式")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/** 单位地址 */
|
||||||
|
@Schema(description = "单位地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护单位表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护单位表保存参数")
|
||||||
|
public class MaintenanceDeptSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 单位名称 */
|
||||||
|
@Schema(description = "单位名称")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/** 联系人 */
|
||||||
|
@Schema(description = "联系人")
|
||||||
|
private String linkman;
|
||||||
|
|
||||||
|
/** 联系方式 */
|
||||||
|
@Schema(description = "联系方式")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/** 单位地址 */
|
||||||
|
@Schema(description = "单位地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+43
@@ -0,0 +1,43 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护设备表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护设备表分页查询")
|
||||||
|
public class MaintenanceEquipmentPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 养护单位ID */
|
||||||
|
@Schema(description = "养护单位ID")
|
||||||
|
private String maintenanceDeptId;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Schema(description = "设备编码")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
/** 设备名称 */
|
||||||
|
@Schema(description = "设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/** 规格型号 */
|
||||||
|
@Schema(description = "规格型号")
|
||||||
|
private String specification;
|
||||||
|
|
||||||
|
/** 生成厂家 */
|
||||||
|
@Schema(description = "生成厂家")
|
||||||
|
private String manufacturer;
|
||||||
|
|
||||||
|
/** 状态(合格、降级、停用、报废) */
|
||||||
|
@Schema(description = "状态(合格、降级、停用、报废)")
|
||||||
|
private Integer status;
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护设备表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护设备表")
|
||||||
|
public class MaintenanceEquipmentResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 养护单位ID */
|
||||||
|
@Schema(description = "养护单位ID")
|
||||||
|
private String maintenanceDeptId;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Schema(description = "设备编码")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
/** 设备名称 */
|
||||||
|
@Schema(description = "设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/** 规格型号 */
|
||||||
|
@Schema(description = "规格型号")
|
||||||
|
private String specification;
|
||||||
|
|
||||||
|
/** 生成厂家 */
|
||||||
|
@Schema(description = "生成厂家")
|
||||||
|
private String manufacturer;
|
||||||
|
|
||||||
|
/** 状态(合格、降级、停用、报废) */
|
||||||
|
@Schema(description = "状态(合格、降级、停用、报废)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护设备表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护设备表保存参数")
|
||||||
|
public class MaintenanceEquipmentSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 养护单位ID */
|
||||||
|
@Schema(description = "养护单位ID")
|
||||||
|
private String maintenanceDeptId;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Schema(description = "设备编码")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
/** 设备名称 */
|
||||||
|
@Schema(description = "设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/** 规格型号 */
|
||||||
|
@Schema(description = "规格型号")
|
||||||
|
private String specification;
|
||||||
|
|
||||||
|
/** 生成厂家 */
|
||||||
|
@Schema(description = "生成厂家")
|
||||||
|
private String manufacturer;
|
||||||
|
|
||||||
|
/** 状态(合格、降级、停用、报废) */
|
||||||
|
@Schema(description = "状态(合格、降级、停用、报废)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护人员表分页查询
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护人员表分页查询")
|
||||||
|
public class MaintenancePersonPageReq {
|
||||||
|
|
||||||
|
@Schema(description = "页码,从 1 开始")
|
||||||
|
private Long pageNo = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "每页条数")
|
||||||
|
private Long pageSize = 10L;
|
||||||
|
|
||||||
|
/** 养护单位ID */
|
||||||
|
@Schema(description = "养护单位ID")
|
||||||
|
private String maintenanceDeptId;
|
||||||
|
|
||||||
|
/** 姓名 */
|
||||||
|
@Schema(description = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 性别(男、女) */
|
||||||
|
@Schema(description = "性别(男、女)")
|
||||||
|
private Integer gender;
|
||||||
|
|
||||||
|
/** 手机号 */
|
||||||
|
@Schema(description = "手机号")
|
||||||
|
private String mobile;
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护人员表
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护人员表")
|
||||||
|
public class MaintenancePersonResp {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 养护单位ID */
|
||||||
|
@Schema(description = "养护单位ID")
|
||||||
|
private String maintenanceDeptId;
|
||||||
|
|
||||||
|
/** 姓名 */
|
||||||
|
@Schema(description = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 性别(男、女) */
|
||||||
|
@Schema(description = "性别(男、女)")
|
||||||
|
private Integer gender;
|
||||||
|
|
||||||
|
/** 手机号 */
|
||||||
|
@Schema(description = "手机号")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 创建人 */
|
||||||
|
@Schema(description = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate createTime;
|
||||||
|
|
||||||
|
/** 最近修改人 */
|
||||||
|
@Schema(description = "最近修改人")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 最近修改时间 */
|
||||||
|
@Schema(description = "最近修改时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate updateTime;
|
||||||
|
}
|
||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
package com.wanji.software.tocc.infra.maint.model.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 养护人员表保存参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "养护人员表保存参数")
|
||||||
|
public class MaintenancePersonSaveReq {
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 养护单位ID */
|
||||||
|
@Schema(description = "养护单位ID")
|
||||||
|
private String maintenanceDeptId;
|
||||||
|
|
||||||
|
/** 姓名 */
|
||||||
|
@Schema(description = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 性别(男、女) */
|
||||||
|
@Schema(description = "性别(男、女)")
|
||||||
|
private Integer gender;
|
||||||
|
|
||||||
|
/** 手机号 */
|
||||||
|
@Schema(description = "手机号")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user