diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4459c28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +target/ +.idea/ +*.iml +.classpath +.project +.settings/ +logs/ diff --git a/lib/DmJdbcDriver8-8.1.5.60.jar b/lib/DmJdbcDriver8-8.1.5.60.jar new file mode 100644 index 0000000..f639872 Binary files /dev/null and b/lib/DmJdbcDriver8-8.1.5.60.jar differ diff --git a/maint-support/pom.xml b/maint-support/pom.xml new file mode 100644 index 0000000..c4186b8 --- /dev/null +++ b/maint-support/pom.xml @@ -0,0 +1,25 @@ + + + 4.0.0 + + com.wanji.software + maint-dev + 1.0.0 + + maint-support + 本地开发支撑,交回代码时不包含本模块 + + + + org.springframework.boot + spring-boot-starter-web + + + org.projectlombok + lombok + true + + + diff --git a/maint-support/src/main/java/com/wanji/software/tocc/common/exception/BusinessException.java b/maint-support/src/main/java/com/wanji/software/tocc/common/exception/BusinessException.java new file mode 100644 index 0000000..34c3515 --- /dev/null +++ b/maint-support/src/main/java/com/wanji/software/tocc/common/exception/BusinessException.java @@ -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; + } +} diff --git a/maint-support/src/main/java/com/wanji/software/tocc/common/model/Result.java b/maint-support/src/main/java/com/wanji/software/tocc/common/model/Result.java new file mode 100644 index 0000000..b7dbffa --- /dev/null +++ b/maint-support/src/main/java/com/wanji/software/tocc/common/model/Result.java @@ -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 implements Serializable { + + private T data; + private Integer code; + private String msg; + + public static Result ok() { + return of(null, 0, "操作成功"); + } + + public static Result ok(T data) { + return of(data, 0, "操作成功"); + } + + public static Result ok(T data, String msg) { + return of(data, 0, msg); + } + + public static Result fail() { + return of(null, 1, "操作失败"); + } + + public static Result fail(String msg) { + return of(null, 1, msg); + } + + public static Result fail(int code, String msg) { + return of(null, code, msg); + } + + public static Result of(T data, Integer code, String msg) { + return new Result(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; + } +} diff --git a/maint-support/src/main/java/com/wanji/software/tocc/maint/support/CurrentUser.java b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/CurrentUser.java new file mode 100644 index 0000000..4c9fa22 --- /dev/null +++ b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/CurrentUser.java @@ -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(); + } +} diff --git a/maint-support/src/main/java/com/wanji/software/tocc/maint/support/CurrentUserHolder.java b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/CurrentUserHolder.java new file mode 100644 index 0000000..187c684 --- /dev/null +++ b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/CurrentUserHolder.java @@ -0,0 +1,25 @@ +package com.wanji.software.tocc.maint.support; + +/** + * 当前请求的用户。业务代码用 {@link #get()} 取创建人、机构,不要自己写死用户。 + */ +public final class CurrentUserHolder { + + private static final ThreadLocal HOLDER = new ThreadLocal(); + + 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(); + } +} diff --git a/maint-support/src/main/java/com/wanji/software/tocc/maint/support/LocalDevAuthFilter.java b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/LocalDevAuthFilter.java new file mode 100644 index 0000000..930f3e3 --- /dev/null +++ b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/LocalDevAuthFilter.java @@ -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; + } +} diff --git a/maint-support/src/main/java/com/wanji/software/tocc/maint/support/PageResult.java b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/PageResult.java new file mode 100644 index 0000000..5319cca --- /dev/null +++ b/maint-support/src/main/java/com/wanji/software/tocc/maint/support/PageResult.java @@ -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 { + + private long total; + private long pageNo; + private long pageSize; + private List records = Collections.emptyList(); +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..853cd6c --- /dev/null +++ b/pom.xml @@ -0,0 +1,71 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.5.14 + + + + com.wanji.software + maint-dev + 1.0.0 + pom + 养护开发工程 + 道路养护系统本地开发工程,不依赖公司内网 + + + maint-support + tocc-infra-maint + tocc-system-maint + + + + 1.8 + UTF-8 + 2020.0.6 + 3.5.4.1 + 4.1.0 + + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + com.baomidou + mybatis-plus-boot-starter + ${mybatis-plus.version} + + + com.github.xiaoymin + knife4j-openapi3-spring-boot-starter + ${knife4j.version} + + + com.wanji.software + maint-support + ${project.version} + + + com.wanji.software + tocc-infra-maint-api + ${project.version} + + + com.wanji.software + tocc-system-maint-api + ${project.version} + + + + diff --git a/sql/养护数据库结构20261111.sql b/sql/养护数据库结构20261111.sql new file mode 100644 index 0000000..e763fbf --- /dev/null +++ b/sql/养护数据库结构20261111.sql @@ -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 '最近修改时间'; \ No newline at end of file diff --git a/tocc-infra-maint/pom.xml b/tocc-infra-maint/pom.xml new file mode 100644 index 0000000..b234d0b --- /dev/null +++ b/tocc-infra-maint/pom.xml @@ -0,0 +1,18 @@ + + + 4.0.0 + + com.wanji.software + maint-dev + 1.0.0 + + tocc-infra-maint + pom + 养护基础服务 + + tocc-infra-maint-api + tocc-infra-maint-biz + + diff --git a/tocc-infra-maint/tocc-infra-maint-api/pom.xml b/tocc-infra-maint/tocc-infra-maint-api/pom.xml new file mode 100644 index 0000000..2f03325 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + com.wanji.software + tocc-infra-maint + 1.0.0 + + tocc-infra-maint-api + 养护基础服务接口,系统服务通过这些接口访问数据库 + + + com.wanji.software + maint-support + + + org.springframework.cloud + spring-cloud-starter-openfeign + true + + + io.swagger.core.v3 + swagger-annotations + 2.2.8 + + + org.springframework.boot + spring-boot-starter-validation + true + + + org.projectlombok + lombok + true + + + diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveApi.java new file mode 100644 index 0000000..05f9ebc --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveApi.java @@ -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 create(@RequestBody ArchiveSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询工程建设档案表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改工程建设档案表") + Result update(@RequestBody ArchiveSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除工程建设档案表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询工程建设档案表") + Result> page(@RequestBody ArchivePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveAssetApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveAssetApi.java new file mode 100644 index 0000000..fecc269 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveAssetApi.java @@ -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 create(@RequestBody ArchiveAssetSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询工程建设档案-资产关联表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改工程建设档案-资产关联表") + Result update(@RequestBody ArchiveAssetSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除工程建设档案-资产关联表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询工程建设档案-资产关联表") + Result> page(@RequestBody ArchiveAssetPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveCategoryApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveCategoryApi.java new file mode 100644 index 0000000..1614784 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveCategoryApi.java @@ -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 create(@RequestBody ArchiveCategorySaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询工程建设档案分类表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改工程建设档案分类表") + Result update(@RequestBody ArchiveCategorySaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除工程建设档案分类表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询工程建设档案分类表") + Result> page(@RequestBody ArchiveCategoryPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveFileApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveFileApi.java new file mode 100644 index 0000000..cda5e85 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveFileApi.java @@ -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 create(@RequestBody ArchiveFileSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询工程建设档案文件表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改工程建设档案文件表") + Result update(@RequestBody ArchiveFileSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除工程建设档案文件表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询工程建设档案文件表") + Result> page(@RequestBody ArchiveFilePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveVolumeApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveVolumeApi.java new file mode 100644 index 0000000..c9bffec --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/ArchiveVolumeApi.java @@ -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 create(@RequestBody ArchiveVolumeSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询工程建设档案案卷表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改工程建设档案案卷表") + Result update(@RequestBody ArchiveVolumeSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除工程建设档案案卷表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询工程建设档案案卷表") + Result> page(@RequestBody ArchiveVolumePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/AssetInventoryApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/AssetInventoryApi.java new file mode 100644 index 0000000..7c1e4cd --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/AssetInventoryApi.java @@ -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 create(@RequestBody AssetInventorySaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询资产采集表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改资产采集表") + Result update(@RequestBody AssetInventorySaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除资产采集表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询资产采集表") + Result> page(@RequestBody AssetInventoryPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/BridgeApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/BridgeApi.java new file mode 100644 index 0000000..0439558 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/BridgeApi.java @@ -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 create(@RequestBody BridgeSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询桥梁信息表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改桥梁信息表") + Result update(@RequestBody BridgeSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除桥梁信息表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询桥梁信息表") + Result> page(@RequestBody BridgePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectApi.java new file mode 100644 index 0000000..ca30ad2 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectApi.java @@ -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 create(@RequestBody DefectSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询隐患表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改隐患表") + Result update(@RequestBody DefectSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除隐患表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询隐患表") + Result> page(@RequestBody DefectPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectAssetApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectAssetApi.java new file mode 100644 index 0000000..c3fae10 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectAssetApi.java @@ -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 create(@RequestBody DefectAssetSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询隐患-资产关联表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改隐患-资产关联表") + Result update(@RequestBody DefectAssetSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除隐患-资产关联表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询隐患-资产关联表") + Result> page(@RequestBody DefectAssetPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectTypeApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectTypeApi.java new file mode 100644 index 0000000..a56c5da --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/DefectTypeApi.java @@ -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 create(@RequestBody DefectTypeSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询隐患类别表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改隐患类别表") + Result update(@RequestBody DefectTypeSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除隐患类别表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询隐患类别表") + Result> page(@RequestBody DefectTypePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityApi.java new file mode 100644 index 0000000..53e0e2a --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityApi.java @@ -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 create(@RequestBody FacilitySaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询设施信息表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改设施信息表") + Result update(@RequestBody FacilitySaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除设施信息表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询设施信息表") + Result> page(@RequestBody FacilityPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityTypeApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityTypeApi.java new file mode 100644 index 0000000..82d9af1 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityTypeApi.java @@ -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 create(@RequestBody FacilityTypeSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询设施类型表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改设施类型表") + Result update(@RequestBody FacilityTypeSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除设施类型表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询设施类型表") + Result> page(@RequestBody FacilityTypePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityTypeFieldApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityTypeFieldApi.java new file mode 100644 index 0000000..293e6d5 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/FacilityTypeFieldApi.java @@ -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 create(@RequestBody FacilityTypeFieldSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询设施类型字段配置表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改设施类型字段配置表") + Result update(@RequestBody FacilityTypeFieldSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除设施类型字段配置表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询设施类型字段配置表") + Result> page(@RequestBody FacilityTypeFieldPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/InspectionPlanApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/InspectionPlanApi.java new file mode 100644 index 0000000..8bccf6a --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/InspectionPlanApi.java @@ -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 create(@RequestBody InspectionPlanSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询巡查计划表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改巡查计划表") + Result update(@RequestBody InspectionPlanSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除巡查计划表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询巡查计划表") + Result> page(@RequestBody InspectionPlanPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/InspectionRecordApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/InspectionRecordApi.java new file mode 100644 index 0000000..fba42f7 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/InspectionRecordApi.java @@ -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 create(@RequestBody InspectionRecordSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询巡查日志表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改巡查日志表") + Result update(@RequestBody InspectionRecordSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除巡查日志表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询巡查日志表") + Result> page(@RequestBody InspectionRecordPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/KnowledgeApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/KnowledgeApi.java new file mode 100644 index 0000000..a935608 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/KnowledgeApi.java @@ -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 create(@RequestBody KnowledgeSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询知识表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改知识表") + Result update(@RequestBody KnowledgeSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除知识表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询知识表") + Result> page(@RequestBody KnowledgePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/KnowledgeCategoryApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/KnowledgeCategoryApi.java new file mode 100644 index 0000000..b83de3d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/KnowledgeCategoryApi.java @@ -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 create(@RequestBody KnowledgeCategorySaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询知识分类表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改知识分类表") + Result update(@RequestBody KnowledgeCategorySaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除知识分类表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询知识分类表") + Result> page(@RequestBody KnowledgeCategoryPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintHealthApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintHealthApi.java new file mode 100644 index 0000000..361e834 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintHealthApi.java @@ -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 health(); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenanceDeptApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenanceDeptApi.java new file mode 100644 index 0000000..e3e1bf3 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenanceDeptApi.java @@ -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 create(@RequestBody MaintenanceDeptSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询养护单位表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改养护单位表") + Result update(@RequestBody MaintenanceDeptSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除养护单位表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询养护单位表") + Result> page(@RequestBody MaintenanceDeptPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenanceEquipmentApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenanceEquipmentApi.java new file mode 100644 index 0000000..27470fb --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenanceEquipmentApi.java @@ -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 create(@RequestBody MaintenanceEquipmentSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询养护设备表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改养护设备表") + Result update(@RequestBody MaintenanceEquipmentSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除养护设备表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询养护设备表") + Result> page(@RequestBody MaintenanceEquipmentPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenancePersonApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenancePersonApi.java new file mode 100644 index 0000000..788da89 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/MaintenancePersonApi.java @@ -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 create(@RequestBody MaintenancePersonSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询养护人员表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改养护人员表") + Result update(@RequestBody MaintenancePersonSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除养护人员表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询养护人员表") + Result> page(@RequestBody MaintenancePersonPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadApi.java new file mode 100644 index 0000000..4b71b28 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadApi.java @@ -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 create(@RequestBody RoadSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询道路信息表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改道路信息表") + Result update(@RequestBody RoadSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除道路信息表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询道路信息表") + Result> page(@RequestBody RoadPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadSectionApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadSectionApi.java new file mode 100644 index 0000000..aeb0605 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadSectionApi.java @@ -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 create(@RequestBody RoadSectionSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询路段信息表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改路段信息表") + Result update(@RequestBody RoadSectionSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除路段信息表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询路段信息表") + Result> page(@RequestBody RoadSectionPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadUpgradingApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadUpgradingApi.java new file mode 100644 index 0000000..de2a4f8 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/RoadUpgradingApi.java @@ -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 create(@RequestBody RoadUpgradingSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询改扩建信息表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改改扩建信息表") + Result update(@RequestBody RoadUpgradingSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除改扩建信息表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询改扩建信息表") + Result> page(@RequestBody RoadUpgradingPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/SlopeApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/SlopeApi.java new file mode 100644 index 0000000..11d9c98 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/SlopeApi.java @@ -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 create(@RequestBody SlopeSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询边坡信息表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改边坡信息表") + Result update(@RequestBody SlopeSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除边坡信息表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询边坡信息表") + Result> page(@RequestBody SlopePageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/UserRoadSectionApi.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/UserRoadSectionApi.java new file mode 100644 index 0000000..1ea6909 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/api/UserRoadSectionApi.java @@ -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 create(@RequestBody UserRoadSectionSaveReq req); + + @GetMapping(PREFIX + "/get-by-id") + @Operation(summary = "按主键查询用户-路段关联表") + Result getById(@Parameter(description = "主键") @RequestParam("id") String id); + + @PutMapping(PREFIX + "/update") + @Operation(summary = "修改用户-路段关联表") + Result update(@RequestBody UserRoadSectionSaveReq req); + + @DeleteMapping(PREFIX + "/delete") + @Operation(summary = "删除用户-路段关联表") + Result delete(@Parameter(description = "主键") @RequestParam("id") String id); + + @PostMapping(PREFIX + "/page") + @Operation(summary = "分页查询用户-路段关联表") + Result> page(@RequestBody UserRoadSectionPageReq req); +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/constants/ApiConstants.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/constants/ApiConstants.java new file mode 100644 index 0000000..c4faf06 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/constants/ApiConstants.java @@ -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() { + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetPageReq.java new file mode 100644 index 0000000..ed558dc --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetResp.java new file mode 100644 index 0000000..172da0d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetSaveReq.java new file mode 100644 index 0000000..41c5467 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveAssetSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategoryPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategoryPageReq.java new file mode 100644 index 0000000..878255e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategoryPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategoryResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategoryResp.java new file mode 100644 index 0000000..28f8097 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategoryResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategorySaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategorySaveReq.java new file mode 100644 index 0000000..e5bff02 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveCategorySaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFilePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFilePageReq.java new file mode 100644 index 0000000..8cfcd14 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFilePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFileResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFileResp.java new file mode 100644 index 0000000..081c4e2 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFileResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFileSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFileSaveReq.java new file mode 100644 index 0000000..1c26270 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveFileSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchivePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchivePageReq.java new file mode 100644 index 0000000..1df3983 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchivePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveResp.java new file mode 100644 index 0000000..5fd51ba --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveSaveReq.java new file mode 100644 index 0000000..b7985b9 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumePageReq.java new file mode 100644 index 0000000..fc1080d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumeResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumeResp.java new file mode 100644 index 0000000..fc96184 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumeResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumeSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumeSaveReq.java new file mode 100644 index 0000000..438a3c7 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/ArchiveVolumeSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventoryPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventoryPageReq.java new file mode 100644 index 0000000..8cff3ff --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventoryPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventoryResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventoryResp.java new file mode 100644 index 0000000..76a171f --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventoryResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventorySaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventorySaveReq.java new file mode 100644 index 0000000..3b96798 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/AssetInventorySaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgePageReq.java new file mode 100644 index 0000000..9c17762 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgeResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgeResp.java new file mode 100644 index 0000000..48d92c4 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgeResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgeSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgeSaveReq.java new file mode 100644 index 0000000..9c63cef --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/BridgeSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetPageReq.java new file mode 100644 index 0000000..d9d5308 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetResp.java new file mode 100644 index 0000000..15de20a --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetSaveReq.java new file mode 100644 index 0000000..2b43288 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectAssetSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectPageReq.java new file mode 100644 index 0000000..6744895 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectResp.java new file mode 100644 index 0000000..b0a0f04 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectSaveReq.java new file mode 100644 index 0000000..ddedc14 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypePageReq.java new file mode 100644 index 0000000..31ee5a1 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypeResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypeResp.java new file mode 100644 index 0000000..647d950 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypeResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypeSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypeSaveReq.java new file mode 100644 index 0000000..9055ea3 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/DefectTypeSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityPageReq.java new file mode 100644 index 0000000..75dc171 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityResp.java new file mode 100644 index 0000000..8df7e03 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilitySaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilitySaveReq.java new file mode 100644 index 0000000..1318cde --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilitySaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldPageReq.java new file mode 100644 index 0000000..e2e2bc6 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldResp.java new file mode 100644 index 0000000..ea6f6e3 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldSaveReq.java new file mode 100644 index 0000000..f153d1c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeFieldSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypePageReq.java new file mode 100644 index 0000000..7de395c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeResp.java new file mode 100644 index 0000000..d4daaf3 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeSaveReq.java new file mode 100644 index 0000000..77894d8 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/FacilityTypeSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanPageReq.java new file mode 100644 index 0000000..007f965 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanResp.java new file mode 100644 index 0000000..e60e42d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanSaveReq.java new file mode 100644 index 0000000..7e597db --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionPlanSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordPageReq.java new file mode 100644 index 0000000..6402887 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordResp.java new file mode 100644 index 0000000..f2da483 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordSaveReq.java new file mode 100644 index 0000000..1925850 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/InspectionRecordSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategoryPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategoryPageReq.java new file mode 100644 index 0000000..3c9a03d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategoryPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategoryResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategoryResp.java new file mode 100644 index 0000000..ce47b9b --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategoryResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategorySaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategorySaveReq.java new file mode 100644 index 0000000..e088a2e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeCategorySaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgePageReq.java new file mode 100644 index 0000000..b9c2101 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgePageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeResp.java new file mode 100644 index 0000000..6d7e21e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeSaveReq.java new file mode 100644 index 0000000..9024734 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/KnowledgeSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptPageReq.java new file mode 100644 index 0000000..bb2072a --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptResp.java new file mode 100644 index 0000000..9c6d0bc --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptSaveReq.java new file mode 100644 index 0000000..67bd18d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceDeptSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentPageReq.java new file mode 100644 index 0000000..db46717 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentResp.java new file mode 100644 index 0000000..7aa4d8f --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentSaveReq.java new file mode 100644 index 0000000..b864d6c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenanceEquipmentSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonPageReq.java new file mode 100644 index 0000000..1b2a52c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonPageReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonResp.java new file mode 100644 index 0000000..8e9ef0a --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonResp.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonSaveReq.java new file mode 100644 index 0000000..e536e1b --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/MaintenancePersonSaveReq.java @@ -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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadPageReq.java new file mode 100644 index 0000000..792a319 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadPageReq.java @@ -0,0 +1,63 @@ +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 RoadPageReq { + + @Schema(description = "页码,从 1 开始") + private Long pageNo = 1L; + + @Schema(description = "每页条数") + private Long pageSize = 10L; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路编码 */ + @Schema(description = "道路编码") + private String roadCode; + + /** 道路名称 */ + @Schema(description = "道路名称") + private String roadName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 行政等级(国道、省道、县道、乡道) */ + @Schema(description = "行政等级(国道、省道、县道、乡道)") + private Integer adminLevel; + + /** 道路长度(㎞) */ + @Schema(description = "道路长度(㎞)") + private BigDecimal roadLen; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 状态(在建、在用、停用、待拆除、灭失) */ + @Schema(description = "状态(在建、在用、停用、待拆除、灭失)") + private Integer status; + + /** 技术状态(优、良、中、次、差) */ + @Schema(description = "技术状态(优、良、中、次、差)") + private Integer techStatus; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadResp.java new file mode 100644 index 0000000..2a69ba0 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadResp.java @@ -0,0 +1,105 @@ +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 RoadResp { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路编码 */ + @Schema(description = "道路编码") + private String roadCode; + + /** 道路名称 */ + @Schema(description = "道路名称") + private String roadName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 行政等级(国道、省道、县道、乡道) */ + @Schema(description = "行政等级(国道、省道、县道、乡道)") + private Integer adminLevel; + + /** 道路长度(㎞) */ + @Schema(description = "道路长度(㎞)") + private BigDecimal roadLen; + + /** 路基 */ + @Schema(description = "路基") + private String subgrade; + + /** 路面 */ + @Schema(description = "路面") + private String pavement; + + /** 主要构筑物 */ + @Schema(description = "主要构筑物") + private String majorStructure; + + /** 沿线设施 */ + @Schema(description = "沿线设施") + private String roadsideFacility; + + /** 沿线环境 */ + @Schema(description = "沿线环境") + private String roadsideEnv; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 状态(在建、在用、停用、待拆除、灭失) */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSaveReq.java new file mode 100644 index 0000000..71bcbef --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSaveReq.java @@ -0,0 +1,85 @@ +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 RoadSaveReq { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路编码 */ + @Schema(description = "道路编码") + private String roadCode; + + /** 道路名称 */ + @Schema(description = "道路名称") + private String roadName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 行政等级(国道、省道、县道、乡道) */ + @Schema(description = "行政等级(国道、省道、县道、乡道)") + private Integer adminLevel; + + /** 道路长度(㎞) */ + @Schema(description = "道路长度(㎞)") + private BigDecimal roadLen; + + /** 路基 */ + @Schema(description = "路基") + private String subgrade; + + /** 路面 */ + @Schema(description = "路面") + private String pavement; + + /** 主要构筑物 */ + @Schema(description = "主要构筑物") + private String majorStructure; + + /** 沿线设施 */ + @Schema(description = "沿线设施") + private String roadsideFacility; + + /** 沿线环境 */ + @Schema(description = "沿线环境") + private String roadsideEnv; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 状态(在建、在用、停用、待拆除、灭失) */ + @Schema(description = "状态(在建、在用、停用、待拆除、灭失)") + private Integer status; + + /** 技术状态(优、良、中、次、差) */ + @Schema(description = "技术状态(优、良、中、次、差)") + private Integer techStatus; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; + + /** 备注 */ + @Schema(description = "备注") + private String remark; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionPageReq.java new file mode 100644 index 0000000..89f5f7d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionPageReq.java @@ -0,0 +1,59 @@ +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 RoadSectionPageReq { + + @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; + + /** 路段编码 */ + @Schema(description = "路段编码") + private String sectionCode; + + /** 路段名称 */ + @Schema(description = "路段名称") + private String sectionName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 路段长度(㎞) */ + @Schema(description = "路段长度(㎞)") + private BigDecimal sectionLen; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; + + /** 排序 */ + @Schema(description = "排序") + private Integer orderNum; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionResp.java new file mode 100644 index 0000000..286afe0 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionResp.java @@ -0,0 +1,81 @@ +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 RoadSectionResp { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段编码 */ + @Schema(description = "路段编码") + private String sectionCode; + + /** 路段名称 */ + @Schema(description = "路段名称") + private String sectionName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 路段长度(㎞) */ + @Schema(description = "路段长度(㎞)") + private BigDecimal sectionLen; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; + + /** 排序 */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionSaveReq.java new file mode 100644 index 0000000..bbe96f7 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadSectionSaveReq.java @@ -0,0 +1,61 @@ +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 RoadSectionSaveReq { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段编码 */ + @Schema(description = "路段编码") + private String sectionCode; + + /** 路段名称 */ + @Schema(description = "路段名称") + private String sectionName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 路段长度(㎞) */ + @Schema(description = "路段长度(㎞)") + private BigDecimal sectionLen; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; + + /** 排序 */ + @Schema(description = "排序") + private Integer orderNum; + + /** 备注 */ + @Schema(description = "备注") + private String remark; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingPageReq.java new file mode 100644 index 0000000..25402e9 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingPageReq.java @@ -0,0 +1,67 @@ +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 RoadUpgradingPageReq { + + @Schema(description = "页码,从 1 开始") + private Long pageNo = 1L; + + @Schema(description = "每页条数") + private Long pageSize = 10L; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 项目编码 */ + @Schema(description = "项目编码") + private String projectCode; + + /** 项目名称 */ + @Schema(description = "项目名称") + private String projectName; + + /** 项目类型(新建、改建、扩建、路面改造、加宽、改线) */ + @Schema(description = "项目类型(新建、改建、扩建、路面改造、加宽、改线)") + private Integer projectType; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 项目来源 */ + @Schema(description = "项目来源") + private String projectSource; + + /** 开工日期 */ + @Schema(description = "开工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate commencementDate; + + /** 竣工日期 */ + @Schema(description = "竣工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate completionDate; + + /** 验收日期 */ + @Schema(description = "验收日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate handoverDate; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingResp.java new file mode 100644 index 0000000..590e0c6 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingResp.java @@ -0,0 +1,91 @@ +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 RoadUpgradingResp { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 项目编码 */ + @Schema(description = "项目编码") + private String projectCode; + + /** 项目名称 */ + @Schema(description = "项目名称") + private String projectName; + + /** 项目类型(新建、改建、扩建、路面改造、加宽、改线) */ + @Schema(description = "项目类型(新建、改建、扩建、路面改造、加宽、改线)") + private Integer projectType; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 项目来源 */ + @Schema(description = "项目来源") + private String projectSource; + + /** 开工日期 */ + @Schema(description = "开工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate commencementDate; + + /** 竣工日期 */ + @Schema(description = "竣工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate completionDate; + + /** 验收日期 */ + @Schema(description = "验收日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate handoverDate; + + /** 工程内容 */ + @Schema(description = "工程内容") + private String content; + + /** 附件 */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingSaveReq.java new file mode 100644 index 0000000..e4fbe55 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/RoadUpgradingSaveReq.java @@ -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 RoadUpgradingSaveReq { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 项目编码 */ + @Schema(description = "项目编码") + private String projectCode; + + /** 项目名称 */ + @Schema(description = "项目名称") + private String projectName; + + /** 项目类型(新建、改建、扩建、路面改造、加宽、改线) */ + @Schema(description = "项目类型(新建、改建、扩建、路面改造、加宽、改线)") + private Integer projectType; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 项目来源 */ + @Schema(description = "项目来源") + private String projectSource; + + /** 开工日期 */ + @Schema(description = "开工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate commencementDate; + + /** 竣工日期 */ + @Schema(description = "竣工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate completionDate; + + /** 验收日期 */ + @Schema(description = "验收日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate handoverDate; + + /** 工程内容 */ + @Schema(description = "工程内容") + private String content; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; + + /** 备注 */ + @Schema(description = "备注") + private String remark; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopePageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopePageReq.java new file mode 100644 index 0000000..dd96992 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopePageReq.java @@ -0,0 +1,83 @@ +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 SlopePageReq { + + @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 slopeCode; + + /** 边坡名称 */ + @Schema(description = "边坡名称") + private String slopeName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 边坡类型(挖方边坡、填方边坡 、半填半挖边坡) */ + @Schema(description = "边坡类型(挖方边坡、填方边坡 、半填半挖边坡)") + private Integer slopeType; + + /** 边坡位置(左侧、右侧、中央分隔带) */ + @Schema(description = "边坡位置(左侧、右侧、中央分隔带)") + private Integer slopePosition; + + /** 边坡高度(m) */ + @Schema(description = "边坡高度(m)") + private BigDecimal slopeHeight; + + /** 行政区划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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopeResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopeResp.java new file mode 100644 index 0000000..1222969 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopeResp.java @@ -0,0 +1,105 @@ +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 SlopeResp { + + /** 主键 */ + @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 slopeCode; + + /** 边坡名称 */ + @Schema(description = "边坡名称") + private String slopeName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 边坡类型(挖方边坡、填方边坡 、半填半挖边坡) */ + @Schema(description = "边坡类型(挖方边坡、填方边坡 、半填半挖边坡)") + private Integer slopeType; + + /** 边坡位置(左侧、右侧、中央分隔带) */ + @Schema(description = "边坡位置(左侧、右侧、中央分隔带)") + private Integer slopePosition; + + /** 边坡高度(m) */ + @Schema(description = "边坡高度(m)") + private BigDecimal slopeHeight; + + /** 行政区划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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopeSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopeSaveReq.java new file mode 100644 index 0000000..7ce82b4 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/SlopeSaveReq.java @@ -0,0 +1,85 @@ +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 SlopeSaveReq { + + /** 主键 */ + @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 slopeCode; + + /** 边坡名称 */ + @Schema(description = "边坡名称") + private String slopeName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 边坡类型(挖方边坡、填方边坡 、半填半挖边坡) */ + @Schema(description = "边坡类型(挖方边坡、填方边坡 、半填半挖边坡)") + private Integer slopeType; + + /** 边坡位置(左侧、右侧、中央分隔带) */ + @Schema(description = "边坡位置(左侧、右侧、中央分隔带)") + private Integer slopePosition; + + /** 边坡高度(m) */ + @Schema(description = "边坡高度(m)") + private BigDecimal slopeHeight; + + /** 行政区划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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionPageReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionPageReq.java new file mode 100644 index 0000000..be55aff --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionPageReq.java @@ -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 UserRoadSectionPageReq { + + @Schema(description = "页码,从 1 开始") + private Long pageNo = 1L; + + @Schema(description = "每页条数") + private Long pageSize = 10L; + + /** 用户ID(路长、巡查人员) */ + @Schema(description = "用户ID(路长、巡查人员)") + private String userId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段ID */ + @Schema(description = "路段ID") + private String roadSectionId; + + /** 排序 */ + @Schema(description = "排序") + private Integer orderNum; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionResp.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionResp.java new file mode 100644 index 0000000..7df01f7 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionResp.java @@ -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 UserRoadSectionResp { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 用户ID(路长、巡查人员) */ + @Schema(description = "用户ID(路长、巡查人员)") + private String userId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段ID */ + @Schema(description = "路段ID") + private String roadSectionId; + + /** 排序 */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionSaveReq.java b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionSaveReq.java new file mode 100644 index 0000000..00c0a43 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-api/src/main/java/com/wanji/software/tocc/infra/maint/model/dto/UserRoadSectionSaveReq.java @@ -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 UserRoadSectionSaveReq { + + /** 主键 */ + @Schema(description = "主键") + private String id; + + /** 用户ID(路长、巡查人员) */ + @Schema(description = "用户ID(路长、巡查人员)") + private String userId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段ID */ + @Schema(description = "路段ID") + private String roadSectionId; + + /** 排序 */ + @Schema(description = "排序") + private Integer orderNum; + + /** 备注 */ + @Schema(description = "备注") + private String remark; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/pom.xml b/tocc-infra-maint/tocc-infra-maint-biz/pom.xml new file mode 100644 index 0000000..05da85f --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/pom.xml @@ -0,0 +1,68 @@ + + + 4.0.0 + + com.wanji.software + tocc-infra-maint + 1.0.0 + + tocc-infra-maint-biz + 养护基础服务,负责 SZ_MAINT 的表 + + + + com.wanji.software + tocc-infra-maint-api + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + com.wanji.software + maint-support + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-validation + + + com.baomidou + mybatis-plus-boot-starter + + + com.github.xiaoymin + knife4j-openapi3-spring-boot-starter + + + com.dameng + DmJdbcDriver8 + 8.1.5.60 + system + ${project.basedir}/../../lib/DmJdbcDriver8-8.1.5.60.jar + + + org.projectlombok + lombok + true + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + true + + + + + diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/MaintInfraApplication.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/MaintInfraApplication.java new file mode 100644 index 0000000..aab6c2d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/MaintInfraApplication.java @@ -0,0 +1,22 @@ +package com.wanji.software.tocc.infra.maint; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.ComponentScan; + +/** + * 养护基础服务。表访问、Mapper、Feign 接口实现放在本进程。 + */ +@SpringBootApplication +@ComponentScan(basePackages = { + "com.wanji.software.tocc.infra.maint", + "com.wanji.software.tocc.maint.support" +}) +@MapperScan("com.wanji.software.tocc.infra.maint.mapper") +public class MaintInfraApplication { + + public static void main(String[] args) { + SpringApplication.run(MaintInfraApplication.class, args); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveApiImpl.java new file mode 100644 index 0000000..60c0138 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.ArchiveApi; +import com.wanji.software.tocc.infra.maint.mapper.ArchiveMapper; +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.infra.maint.model.po.Archive; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class ArchiveApiImpl implements ArchiveApi { + + @Resource + private ArchiveMapper archiveMapper; + + @Override + public Result create(ArchiveSaveReq req) { + return MaintRecords.create(archiveMapper, req, Archive.class, ArchiveResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(archiveMapper, id, ArchiveResp.class); + } + + @Override + public Result update(ArchiveSaveReq req) { + return MaintRecords.update(archiveMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(archiveMapper, id); + } + + @Override + public Result> page(ArchivePageReq req) { + return MaintRecords.page(archiveMapper, req, Archive.class, ArchiveResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveAssetApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveAssetApiImpl.java new file mode 100644 index 0000000..5254d27 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveAssetApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.ArchiveAssetApi; +import com.wanji.software.tocc.infra.maint.mapper.ArchiveAssetMapper; +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.infra.maint.model.po.ArchiveAsset; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class ArchiveAssetApiImpl implements ArchiveAssetApi { + + @Resource + private ArchiveAssetMapper archiveAssetMapper; + + @Override + public Result create(ArchiveAssetSaveReq req) { + return MaintRecords.create(archiveAssetMapper, req, ArchiveAsset.class, ArchiveAssetResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(archiveAssetMapper, id, ArchiveAssetResp.class); + } + + @Override + public Result update(ArchiveAssetSaveReq req) { + return MaintRecords.update(archiveAssetMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(archiveAssetMapper, id); + } + + @Override + public Result> page(ArchiveAssetPageReq req) { + return MaintRecords.page(archiveAssetMapper, req, ArchiveAsset.class, ArchiveAssetResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveCategoryApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveCategoryApiImpl.java new file mode 100644 index 0000000..1c731b5 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveCategoryApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.ArchiveCategoryApi; +import com.wanji.software.tocc.infra.maint.mapper.ArchiveCategoryMapper; +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.infra.maint.model.po.ArchiveCategory; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class ArchiveCategoryApiImpl implements ArchiveCategoryApi { + + @Resource + private ArchiveCategoryMapper archiveCategoryMapper; + + @Override + public Result create(ArchiveCategorySaveReq req) { + return MaintRecords.create(archiveCategoryMapper, req, ArchiveCategory.class, ArchiveCategoryResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(archiveCategoryMapper, id, ArchiveCategoryResp.class); + } + + @Override + public Result update(ArchiveCategorySaveReq req) { + return MaintRecords.update(archiveCategoryMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(archiveCategoryMapper, id); + } + + @Override + public Result> page(ArchiveCategoryPageReq req) { + return MaintRecords.page(archiveCategoryMapper, req, ArchiveCategory.class, ArchiveCategoryResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveFileApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveFileApiImpl.java new file mode 100644 index 0000000..ad3aea6 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveFileApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.ArchiveFileApi; +import com.wanji.software.tocc.infra.maint.mapper.ArchiveFileMapper; +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.infra.maint.model.po.ArchiveFile; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class ArchiveFileApiImpl implements ArchiveFileApi { + + @Resource + private ArchiveFileMapper archiveFileMapper; + + @Override + public Result create(ArchiveFileSaveReq req) { + return MaintRecords.create(archiveFileMapper, req, ArchiveFile.class, ArchiveFileResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(archiveFileMapper, id, ArchiveFileResp.class); + } + + @Override + public Result update(ArchiveFileSaveReq req) { + return MaintRecords.update(archiveFileMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(archiveFileMapper, id); + } + + @Override + public Result> page(ArchiveFilePageReq req) { + return MaintRecords.page(archiveFileMapper, req, ArchiveFile.class, ArchiveFileResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveVolumeApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveVolumeApiImpl.java new file mode 100644 index 0000000..8b9c4fe --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/ArchiveVolumeApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.ArchiveVolumeApi; +import com.wanji.software.tocc.infra.maint.mapper.ArchiveVolumeMapper; +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.infra.maint.model.po.ArchiveVolume; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class ArchiveVolumeApiImpl implements ArchiveVolumeApi { + + @Resource + private ArchiveVolumeMapper archiveVolumeMapper; + + @Override + public Result create(ArchiveVolumeSaveReq req) { + return MaintRecords.create(archiveVolumeMapper, req, ArchiveVolume.class, ArchiveVolumeResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(archiveVolumeMapper, id, ArchiveVolumeResp.class); + } + + @Override + public Result update(ArchiveVolumeSaveReq req) { + return MaintRecords.update(archiveVolumeMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(archiveVolumeMapper, id); + } + + @Override + public Result> page(ArchiveVolumePageReq req) { + return MaintRecords.page(archiveVolumeMapper, req, ArchiveVolume.class, ArchiveVolumeResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/AssetInventoryApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/AssetInventoryApiImpl.java new file mode 100644 index 0000000..d7bff06 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/AssetInventoryApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.AssetInventoryApi; +import com.wanji.software.tocc.infra.maint.mapper.AssetInventoryMapper; +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.infra.maint.model.po.AssetInventory; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class AssetInventoryApiImpl implements AssetInventoryApi { + + @Resource + private AssetInventoryMapper assetInventoryMapper; + + @Override + public Result create(AssetInventorySaveReq req) { + return MaintRecords.create(assetInventoryMapper, req, AssetInventory.class, AssetInventoryResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(assetInventoryMapper, id, AssetInventoryResp.class); + } + + @Override + public Result update(AssetInventorySaveReq req) { + return MaintRecords.update(assetInventoryMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(assetInventoryMapper, id); + } + + @Override + public Result> page(AssetInventoryPageReq req) { + return MaintRecords.page(assetInventoryMapper, req, AssetInventory.class, AssetInventoryResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/BridgeApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/BridgeApiImpl.java new file mode 100644 index 0000000..3ba9382 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/BridgeApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.BridgeApi; +import com.wanji.software.tocc.infra.maint.mapper.BridgeMapper; +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.infra.maint.model.po.Bridge; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class BridgeApiImpl implements BridgeApi { + + @Resource + private BridgeMapper bridgeMapper; + + @Override + public Result create(BridgeSaveReq req) { + return MaintRecords.create(bridgeMapper, req, Bridge.class, BridgeResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(bridgeMapper, id, BridgeResp.class); + } + + @Override + public Result update(BridgeSaveReq req) { + return MaintRecords.update(bridgeMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(bridgeMapper, id); + } + + @Override + public Result> page(BridgePageReq req) { + return MaintRecords.page(bridgeMapper, req, Bridge.class, BridgeResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectApiImpl.java new file mode 100644 index 0000000..0ca7349 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.DefectApi; +import com.wanji.software.tocc.infra.maint.mapper.DefectMapper; +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.infra.maint.model.po.Defect; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class DefectApiImpl implements DefectApi { + + @Resource + private DefectMapper defectMapper; + + @Override + public Result create(DefectSaveReq req) { + return MaintRecords.create(defectMapper, req, Defect.class, DefectResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(defectMapper, id, DefectResp.class); + } + + @Override + public Result update(DefectSaveReq req) { + return MaintRecords.update(defectMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(defectMapper, id); + } + + @Override + public Result> page(DefectPageReq req) { + return MaintRecords.page(defectMapper, req, Defect.class, DefectResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectAssetApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectAssetApiImpl.java new file mode 100644 index 0000000..f5e80be --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectAssetApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.DefectAssetApi; +import com.wanji.software.tocc.infra.maint.mapper.DefectAssetMapper; +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.infra.maint.model.po.DefectAsset; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class DefectAssetApiImpl implements DefectAssetApi { + + @Resource + private DefectAssetMapper defectAssetMapper; + + @Override + public Result create(DefectAssetSaveReq req) { + return MaintRecords.create(defectAssetMapper, req, DefectAsset.class, DefectAssetResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(defectAssetMapper, id, DefectAssetResp.class); + } + + @Override + public Result update(DefectAssetSaveReq req) { + return MaintRecords.update(defectAssetMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(defectAssetMapper, id); + } + + @Override + public Result> page(DefectAssetPageReq req) { + return MaintRecords.page(defectAssetMapper, req, DefectAsset.class, DefectAssetResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectTypeApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectTypeApiImpl.java new file mode 100644 index 0000000..09e4b8d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/DefectTypeApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.DefectTypeApi; +import com.wanji.software.tocc.infra.maint.mapper.DefectTypeMapper; +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.infra.maint.model.po.DefectType; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class DefectTypeApiImpl implements DefectTypeApi { + + @Resource + private DefectTypeMapper defectTypeMapper; + + @Override + public Result create(DefectTypeSaveReq req) { + return MaintRecords.create(defectTypeMapper, req, DefectType.class, DefectTypeResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(defectTypeMapper, id, DefectTypeResp.class); + } + + @Override + public Result update(DefectTypeSaveReq req) { + return MaintRecords.update(defectTypeMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(defectTypeMapper, id); + } + + @Override + public Result> page(DefectTypePageReq req) { + return MaintRecords.page(defectTypeMapper, req, DefectType.class, DefectTypeResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityApiImpl.java new file mode 100644 index 0000000..d3680bd --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.FacilityApi; +import com.wanji.software.tocc.infra.maint.mapper.FacilityMapper; +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.infra.maint.model.po.Facility; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class FacilityApiImpl implements FacilityApi { + + @Resource + private FacilityMapper facilityMapper; + + @Override + public Result create(FacilitySaveReq req) { + return MaintRecords.create(facilityMapper, req, Facility.class, FacilityResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(facilityMapper, id, FacilityResp.class); + } + + @Override + public Result update(FacilitySaveReq req) { + return MaintRecords.update(facilityMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(facilityMapper, id); + } + + @Override + public Result> page(FacilityPageReq req) { + return MaintRecords.page(facilityMapper, req, Facility.class, FacilityResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityTypeApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityTypeApiImpl.java new file mode 100644 index 0000000..23553a0 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityTypeApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.FacilityTypeApi; +import com.wanji.software.tocc.infra.maint.mapper.FacilityTypeMapper; +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.infra.maint.model.po.FacilityType; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class FacilityTypeApiImpl implements FacilityTypeApi { + + @Resource + private FacilityTypeMapper facilityTypeMapper; + + @Override + public Result create(FacilityTypeSaveReq req) { + return MaintRecords.create(facilityTypeMapper, req, FacilityType.class, FacilityTypeResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(facilityTypeMapper, id, FacilityTypeResp.class); + } + + @Override + public Result update(FacilityTypeSaveReq req) { + return MaintRecords.update(facilityTypeMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(facilityTypeMapper, id); + } + + @Override + public Result> page(FacilityTypePageReq req) { + return MaintRecords.page(facilityTypeMapper, req, FacilityType.class, FacilityTypeResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityTypeFieldApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityTypeFieldApiImpl.java new file mode 100644 index 0000000..d40b386 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/FacilityTypeFieldApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.FacilityTypeFieldApi; +import com.wanji.software.tocc.infra.maint.mapper.FacilityTypeFieldMapper; +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.infra.maint.model.po.FacilityTypeField; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class FacilityTypeFieldApiImpl implements FacilityTypeFieldApi { + + @Resource + private FacilityTypeFieldMapper facilityTypeFieldMapper; + + @Override + public Result create(FacilityTypeFieldSaveReq req) { + return MaintRecords.create(facilityTypeFieldMapper, req, FacilityTypeField.class, FacilityTypeFieldResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(facilityTypeFieldMapper, id, FacilityTypeFieldResp.class); + } + + @Override + public Result update(FacilityTypeFieldSaveReq req) { + return MaintRecords.update(facilityTypeFieldMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(facilityTypeFieldMapper, id); + } + + @Override + public Result> page(FacilityTypeFieldPageReq req) { + return MaintRecords.page(facilityTypeFieldMapper, req, FacilityTypeField.class, FacilityTypeFieldResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/InspectionPlanApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/InspectionPlanApiImpl.java new file mode 100644 index 0000000..09f515e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/InspectionPlanApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.InspectionPlanApi; +import com.wanji.software.tocc.infra.maint.mapper.InspectionPlanMapper; +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.infra.maint.model.po.InspectionPlan; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class InspectionPlanApiImpl implements InspectionPlanApi { + + @Resource + private InspectionPlanMapper inspectionPlanMapper; + + @Override + public Result create(InspectionPlanSaveReq req) { + return MaintRecords.create(inspectionPlanMapper, req, InspectionPlan.class, InspectionPlanResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(inspectionPlanMapper, id, InspectionPlanResp.class); + } + + @Override + public Result update(InspectionPlanSaveReq req) { + return MaintRecords.update(inspectionPlanMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(inspectionPlanMapper, id); + } + + @Override + public Result> page(InspectionPlanPageReq req) { + return MaintRecords.page(inspectionPlanMapper, req, InspectionPlan.class, InspectionPlanResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/InspectionRecordApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/InspectionRecordApiImpl.java new file mode 100644 index 0000000..1b93f26 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/InspectionRecordApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.InspectionRecordApi; +import com.wanji.software.tocc.infra.maint.mapper.InspectionRecordMapper; +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.infra.maint.model.po.InspectionRecord; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class InspectionRecordApiImpl implements InspectionRecordApi { + + @Resource + private InspectionRecordMapper inspectionRecordMapper; + + @Override + public Result create(InspectionRecordSaveReq req) { + return MaintRecords.create(inspectionRecordMapper, req, InspectionRecord.class, InspectionRecordResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(inspectionRecordMapper, id, InspectionRecordResp.class); + } + + @Override + public Result update(InspectionRecordSaveReq req) { + return MaintRecords.update(inspectionRecordMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(inspectionRecordMapper, id); + } + + @Override + public Result> page(InspectionRecordPageReq req) { + return MaintRecords.page(inspectionRecordMapper, req, InspectionRecord.class, InspectionRecordResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/KnowledgeApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/KnowledgeApiImpl.java new file mode 100644 index 0000000..302c62d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/KnowledgeApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.KnowledgeApi; +import com.wanji.software.tocc.infra.maint.mapper.KnowledgeMapper; +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.infra.maint.model.po.Knowledge; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class KnowledgeApiImpl implements KnowledgeApi { + + @Resource + private KnowledgeMapper knowledgeMapper; + + @Override + public Result create(KnowledgeSaveReq req) { + return MaintRecords.create(knowledgeMapper, req, Knowledge.class, KnowledgeResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(knowledgeMapper, id, KnowledgeResp.class); + } + + @Override + public Result update(KnowledgeSaveReq req) { + return MaintRecords.update(knowledgeMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(knowledgeMapper, id); + } + + @Override + public Result> page(KnowledgePageReq req) { + return MaintRecords.page(knowledgeMapper, req, Knowledge.class, KnowledgeResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/KnowledgeCategoryApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/KnowledgeCategoryApiImpl.java new file mode 100644 index 0000000..06d6c8b --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/KnowledgeCategoryApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.KnowledgeCategoryApi; +import com.wanji.software.tocc.infra.maint.mapper.KnowledgeCategoryMapper; +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.infra.maint.model.po.KnowledgeCategory; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class KnowledgeCategoryApiImpl implements KnowledgeCategoryApi { + + @Resource + private KnowledgeCategoryMapper knowledgeCategoryMapper; + + @Override + public Result create(KnowledgeCategorySaveReq req) { + return MaintRecords.create(knowledgeCategoryMapper, req, KnowledgeCategory.class, KnowledgeCategoryResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(knowledgeCategoryMapper, id, KnowledgeCategoryResp.class); + } + + @Override + public Result update(KnowledgeCategorySaveReq req) { + return MaintRecords.update(knowledgeCategoryMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(knowledgeCategoryMapper, id); + } + + @Override + public Result> page(KnowledgeCategoryPageReq req) { + return MaintRecords.page(knowledgeCategoryMapper, req, KnowledgeCategory.class, KnowledgeCategoryResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintHealthApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintHealthApiImpl.java new file mode 100644 index 0000000..2941bd2 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintHealthApiImpl.java @@ -0,0 +1,16 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.MaintHealthApi; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@Validated +public class MaintHealthApiImpl implements MaintHealthApi { + + @Override + public Result health() { + return Result.ok("ok"); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenanceDeptApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenanceDeptApiImpl.java new file mode 100644 index 0000000..4cbe3bb --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenanceDeptApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.MaintenanceDeptApi; +import com.wanji.software.tocc.infra.maint.mapper.MaintenanceDeptMapper; +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.infra.maint.model.po.MaintenanceDept; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class MaintenanceDeptApiImpl implements MaintenanceDeptApi { + + @Resource + private MaintenanceDeptMapper maintenanceDeptMapper; + + @Override + public Result create(MaintenanceDeptSaveReq req) { + return MaintRecords.create(maintenanceDeptMapper, req, MaintenanceDept.class, MaintenanceDeptResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(maintenanceDeptMapper, id, MaintenanceDeptResp.class); + } + + @Override + public Result update(MaintenanceDeptSaveReq req) { + return MaintRecords.update(maintenanceDeptMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(maintenanceDeptMapper, id); + } + + @Override + public Result> page(MaintenanceDeptPageReq req) { + return MaintRecords.page(maintenanceDeptMapper, req, MaintenanceDept.class, MaintenanceDeptResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenanceEquipmentApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenanceEquipmentApiImpl.java new file mode 100644 index 0000000..d7cc1fb --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenanceEquipmentApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.MaintenanceEquipmentApi; +import com.wanji.software.tocc.infra.maint.mapper.MaintenanceEquipmentMapper; +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.infra.maint.model.po.MaintenanceEquipment; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class MaintenanceEquipmentApiImpl implements MaintenanceEquipmentApi { + + @Resource + private MaintenanceEquipmentMapper maintenanceEquipmentMapper; + + @Override + public Result create(MaintenanceEquipmentSaveReq req) { + return MaintRecords.create(maintenanceEquipmentMapper, req, MaintenanceEquipment.class, MaintenanceEquipmentResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(maintenanceEquipmentMapper, id, MaintenanceEquipmentResp.class); + } + + @Override + public Result update(MaintenanceEquipmentSaveReq req) { + return MaintRecords.update(maintenanceEquipmentMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(maintenanceEquipmentMapper, id); + } + + @Override + public Result> page(MaintenanceEquipmentPageReq req) { + return MaintRecords.page(maintenanceEquipmentMapper, req, MaintenanceEquipment.class, MaintenanceEquipmentResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenancePersonApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenancePersonApiImpl.java new file mode 100644 index 0000000..683e532 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/MaintenancePersonApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.MaintenancePersonApi; +import com.wanji.software.tocc.infra.maint.mapper.MaintenancePersonMapper; +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.infra.maint.model.po.MaintenancePerson; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class MaintenancePersonApiImpl implements MaintenancePersonApi { + + @Resource + private MaintenancePersonMapper maintenancePersonMapper; + + @Override + public Result create(MaintenancePersonSaveReq req) { + return MaintRecords.create(maintenancePersonMapper, req, MaintenancePerson.class, MaintenancePersonResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(maintenancePersonMapper, id, MaintenancePersonResp.class); + } + + @Override + public Result update(MaintenancePersonSaveReq req) { + return MaintRecords.update(maintenancePersonMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(maintenancePersonMapper, id); + } + + @Override + public Result> page(MaintenancePersonPageReq req) { + return MaintRecords.page(maintenancePersonMapper, req, MaintenancePerson.class, MaintenancePersonResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadApiImpl.java new file mode 100644 index 0000000..6dbe96c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.RoadApi; +import com.wanji.software.tocc.infra.maint.mapper.RoadMapper; +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.infra.maint.model.po.Road; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class RoadApiImpl implements RoadApi { + + @Resource + private RoadMapper roadMapper; + + @Override + public Result create(RoadSaveReq req) { + return MaintRecords.create(roadMapper, req, Road.class, RoadResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(roadMapper, id, RoadResp.class); + } + + @Override + public Result update(RoadSaveReq req) { + return MaintRecords.update(roadMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(roadMapper, id); + } + + @Override + public Result> page(RoadPageReq req) { + return MaintRecords.page(roadMapper, req, Road.class, RoadResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadSectionApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadSectionApiImpl.java new file mode 100644 index 0000000..3c48168 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadSectionApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.RoadSectionApi; +import com.wanji.software.tocc.infra.maint.mapper.RoadSectionMapper; +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.infra.maint.model.po.RoadSection; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class RoadSectionApiImpl implements RoadSectionApi { + + @Resource + private RoadSectionMapper roadSectionMapper; + + @Override + public Result create(RoadSectionSaveReq req) { + return MaintRecords.create(roadSectionMapper, req, RoadSection.class, RoadSectionResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(roadSectionMapper, id, RoadSectionResp.class); + } + + @Override + public Result update(RoadSectionSaveReq req) { + return MaintRecords.update(roadSectionMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(roadSectionMapper, id); + } + + @Override + public Result> page(RoadSectionPageReq req) { + return MaintRecords.page(roadSectionMapper, req, RoadSection.class, RoadSectionResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadUpgradingApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadUpgradingApiImpl.java new file mode 100644 index 0000000..336664f --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/RoadUpgradingApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.RoadUpgradingApi; +import com.wanji.software.tocc.infra.maint.mapper.RoadUpgradingMapper; +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.infra.maint.model.po.RoadUpgrading; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class RoadUpgradingApiImpl implements RoadUpgradingApi { + + @Resource + private RoadUpgradingMapper roadUpgradingMapper; + + @Override + public Result create(RoadUpgradingSaveReq req) { + return MaintRecords.create(roadUpgradingMapper, req, RoadUpgrading.class, RoadUpgradingResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(roadUpgradingMapper, id, RoadUpgradingResp.class); + } + + @Override + public Result update(RoadUpgradingSaveReq req) { + return MaintRecords.update(roadUpgradingMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(roadUpgradingMapper, id); + } + + @Override + public Result> page(RoadUpgradingPageReq req) { + return MaintRecords.page(roadUpgradingMapper, req, RoadUpgrading.class, RoadUpgradingResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/SlopeApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/SlopeApiImpl.java new file mode 100644 index 0000000..3668011 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/SlopeApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.SlopeApi; +import com.wanji.software.tocc.infra.maint.mapper.SlopeMapper; +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.infra.maint.model.po.Slope; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class SlopeApiImpl implements SlopeApi { + + @Resource + private SlopeMapper slopeMapper; + + @Override + public Result create(SlopeSaveReq req) { + return MaintRecords.create(slopeMapper, req, Slope.class, SlopeResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(slopeMapper, id, SlopeResp.class); + } + + @Override + public Result update(SlopeSaveReq req) { + return MaintRecords.update(slopeMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(slopeMapper, id); + } + + @Override + public Result> page(SlopePageReq req) { + return MaintRecords.page(slopeMapper, req, Slope.class, SlopeResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/UserRoadSectionApiImpl.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/UserRoadSectionApiImpl.java new file mode 100644 index 0000000..b62a719 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/api/impl/UserRoadSectionApiImpl.java @@ -0,0 +1,48 @@ +package com.wanji.software.tocc.infra.maint.api.impl; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.UserRoadSectionApi; +import com.wanji.software.tocc.infra.maint.mapper.UserRoadSectionMapper; +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.infra.maint.model.po.UserRoadSection; +import com.wanji.software.tocc.infra.maint.support.MaintRecords; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Validated +public class UserRoadSectionApiImpl implements UserRoadSectionApi { + + @Resource + private UserRoadSectionMapper userRoadSectionMapper; + + @Override + public Result create(UserRoadSectionSaveReq req) { + return MaintRecords.create(userRoadSectionMapper, req, UserRoadSection.class, UserRoadSectionResp.class); + } + + @Override + public Result getById(String id) { + return MaintRecords.get(userRoadSectionMapper, id, UserRoadSectionResp.class); + } + + @Override + public Result update(UserRoadSectionSaveReq req) { + return MaintRecords.update(userRoadSectionMapper, req); + } + + @Override + public Result delete(String id) { + return MaintRecords.delete(userRoadSectionMapper, id); + } + + @Override + public Result> page(UserRoadSectionPageReq req) { + return MaintRecords.page(userRoadSectionMapper, req, UserRoadSection.class, UserRoadSectionResp.class); + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/config/ExceptionAdvice.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/config/ExceptionAdvice.java new file mode 100644 index 0000000..850030e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/config/ExceptionAdvice.java @@ -0,0 +1,41 @@ +package com.wanji.software.tocc.infra.maint.config; + +import com.wanji.software.tocc.common.exception.BusinessException; +import com.wanji.software.tocc.common.model.Result; +import lombok.extern.slf4j.Slf4j; +import org.springframework.dao.DataAccessException; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.RestControllerAdvice; + +import java.sql.SQLException; + +/** + * 统一异常处理。业务异常回短文案;系统异常记日志后返回固定提示,不把堆栈返回给调用方。 + */ +@Slf4j +@RestControllerAdvice +public class ExceptionAdvice { + + @ExceptionHandler(BusinessException.class) + public Result handleBusiness(BusinessException exception) { + log.warn("业务异常: {}", exception.getMessage()); + return Result.fail(exception.getCode() == null ? 1 : exception.getCode(), + safeMsg(exception.getMessage(), "请求失败")); + } + + @ExceptionHandler({SQLException.class, DataAccessException.class}) + public Result handleSql(Exception exception) { + log.error("数据库异常", exception); + return Result.fail("服务异常"); + } + + @ExceptionHandler(Exception.class) + public Result handle(Exception exception) { + log.error("系统异常", exception); + return Result.fail("系统繁忙,请稍后再试"); + } + + private String safeMsg(String message, String fallback) { + return message == null || message.trim().isEmpty() ? fallback : message; + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveAssetMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveAssetMapper.java new file mode 100644 index 0000000..ec0121a --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveAssetMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.ArchiveAsset; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface ArchiveAssetMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveCategoryMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveCategoryMapper.java new file mode 100644 index 0000000..97faabd --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveCategoryMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.ArchiveCategory; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface ArchiveCategoryMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveFileMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveFileMapper.java new file mode 100644 index 0000000..155e50c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveFileMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.ArchiveFile; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface ArchiveFileMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveMapper.java new file mode 100644 index 0000000..5849c37 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Archive; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface ArchiveMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveVolumeMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveVolumeMapper.java new file mode 100644 index 0000000..b9f138e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/ArchiveVolumeMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.ArchiveVolume; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface ArchiveVolumeMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/AssetInventoryMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/AssetInventoryMapper.java new file mode 100644 index 0000000..cac2235 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/AssetInventoryMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.AssetInventory; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface AssetInventoryMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/BridgeMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/BridgeMapper.java new file mode 100644 index 0000000..274777b --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/BridgeMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Bridge; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface BridgeMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectAssetMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectAssetMapper.java new file mode 100644 index 0000000..b8b6c3c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectAssetMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.DefectAsset; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface DefectAssetMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectMapper.java new file mode 100644 index 0000000..4aec076 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Defect; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface DefectMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectTypeMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectTypeMapper.java new file mode 100644 index 0000000..1c40a27 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/DefectTypeMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.DefectType; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface DefectTypeMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityMapper.java new file mode 100644 index 0000000..4e75d1e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Facility; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface FacilityMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityTypeFieldMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityTypeFieldMapper.java new file mode 100644 index 0000000..1f498a6 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityTypeFieldMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.FacilityTypeField; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface FacilityTypeFieldMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityTypeMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityTypeMapper.java new file mode 100644 index 0000000..782a2f9 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/FacilityTypeMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.FacilityType; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface FacilityTypeMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/InspectionPlanMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/InspectionPlanMapper.java new file mode 100644 index 0000000..63a39bf --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/InspectionPlanMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.InspectionPlan; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface InspectionPlanMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/InspectionRecordMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/InspectionRecordMapper.java new file mode 100644 index 0000000..7e04ed5 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/InspectionRecordMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.InspectionRecord; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface InspectionRecordMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/KnowledgeCategoryMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/KnowledgeCategoryMapper.java new file mode 100644 index 0000000..2d82799 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/KnowledgeCategoryMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.KnowledgeCategory; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface KnowledgeCategoryMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/KnowledgeMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/KnowledgeMapper.java new file mode 100644 index 0000000..3852fcd --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/KnowledgeMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Knowledge; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface KnowledgeMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenanceDeptMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenanceDeptMapper.java new file mode 100644 index 0000000..ca767d0 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenanceDeptMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.MaintenanceDept; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface MaintenanceDeptMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenanceEquipmentMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenanceEquipmentMapper.java new file mode 100644 index 0000000..9ee312d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenanceEquipmentMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.MaintenanceEquipment; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface MaintenanceEquipmentMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenancePersonMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenancePersonMapper.java new file mode 100644 index 0000000..6d79644 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/MaintenancePersonMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.MaintenancePerson; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface MaintenancePersonMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadMapper.java new file mode 100644 index 0000000..5f2f9cf --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Road; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface RoadMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadSectionMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadSectionMapper.java new file mode 100644 index 0000000..e6fbcaa --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadSectionMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.RoadSection; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface RoadSectionMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadUpgradingMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadUpgradingMapper.java new file mode 100644 index 0000000..fc7f129 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/RoadUpgradingMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.RoadUpgrading; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface RoadUpgradingMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/SlopeMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/SlopeMapper.java new file mode 100644 index 0000000..386d28b --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/SlopeMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.Slope; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface SlopeMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/UserRoadSectionMapper.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/UserRoadSectionMapper.java new file mode 100644 index 0000000..39e6d3f --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/UserRoadSectionMapper.java @@ -0,0 +1,9 @@ +package com.wanji.software.tocc.infra.maint.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.wanji.software.tocc.infra.maint.model.po.UserRoadSection; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface UserRoadSectionMapper extends BaseMapper { +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/package-info.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/package-info.java new file mode 100644 index 0000000..5016359 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/mapper/package-info.java @@ -0,0 +1,4 @@ +/** + * 表的 Mapper 接口放在这个包,启动类已经扫描。 + */ +package com.wanji.software.tocc.infra.maint.mapper; diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Archive.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Archive.java new file mode 100644 index 0000000..006fbcd --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Archive.java @@ -0,0 +1,99 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 工程建设档案表 + */ +@Data +@TableName("MTC_ARCHIVE") +@Schema(description = "工程建设档案表") +public class Archive { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveAsset.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveAsset.java new file mode 100644 index 0000000..aea8b76 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveAsset.java @@ -0,0 +1,62 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 工程建设档案-资产关联表 + */ +@Data +@TableName("MTC_ARCHIVE_ASSET") +@Schema(description = "工程建设档案-资产关联表") +public class ArchiveAsset { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveCategory.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveCategory.java new file mode 100644 index 0000000..9097a44 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveCategory.java @@ -0,0 +1,71 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 工程建设档案分类表 + */ +@Data +@TableName("MTC_ARCHIVE_CATEGORY") +@Schema(description = "工程建设档案分类表") +public class ArchiveCategory { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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 = "路径") + @TableField("\"path\"") + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveFile.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveFile.java new file mode 100644 index 0000000..fdbddb9 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveFile.java @@ -0,0 +1,70 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 工程建设档案文件表 + */ +@Data +@TableName("MTC_ARCHIVE_FILE") +@Schema(description = "工程建设档案文件表") +public class ArchiveFile { + + /** id */ + @Schema(description = "id") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveVolume.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveVolume.java new file mode 100644 index 0000000..55718f7 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/ArchiveVolume.java @@ -0,0 +1,105 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 工程建设档案案卷表 + */ +@Data +@TableName("MTC_ARCHIVE_VOLUME") +@Schema(description = "工程建设档案案卷表") +public class ArchiveVolume { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/AssetInventory.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/AssetInventory.java new file mode 100644 index 0000000..12728b1 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/AssetInventory.java @@ -0,0 +1,100 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 资产采集表 + */ +@Data +@TableName("MTC_ASSET_INVENTORY") +@Schema(description = "资产采集表") +public class AssetInventory { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Bridge.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Bridge.java new file mode 100644 index 0000000..c4cc013 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Bridge.java @@ -0,0 +1,131 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import 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 +@TableName("MTC_BRIDGE") +@Schema(description = "桥梁信息表") +public class Bridge { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Defect.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Defect.java new file mode 100644 index 0000000..814294f --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Defect.java @@ -0,0 +1,178 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import 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 +@TableName("MTC_DEFECT") +@Schema(description = "隐患表") +public class Defect { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/DefectAsset.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/DefectAsset.java new file mode 100644 index 0000000..d402c60 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/DefectAsset.java @@ -0,0 +1,62 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 隐患-资产关联表 + */ +@Data +@TableName("MTC_DEFECT_ASSET") +@Schema(description = "隐患-资产关联表") +public class DefectAsset { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/DefectType.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/DefectType.java new file mode 100644 index 0000000..7d75ca0 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/DefectType.java @@ -0,0 +1,58 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 隐患类别表 + */ +@Data +@TableName("MTC_DEFECT_TYPE") +@Schema(description = "隐患类别表") +public class DefectType { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Facility.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Facility.java new file mode 100644 index 0000000..0865da4 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Facility.java @@ -0,0 +1,119 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import 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 +@TableName("MTC_FACILITY") +@Schema(description = "设施信息表") +public class Facility { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/FacilityType.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/FacilityType.java new file mode 100644 index 0000000..87363d2 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/FacilityType.java @@ -0,0 +1,54 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 设施类型表 + */ +@Data +@TableName("MTC_FACILITY_TYPE") +@Schema(description = "设施类型表") +public class FacilityType { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/FacilityTypeField.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/FacilityTypeField.java new file mode 100644 index 0000000..b992b2c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/FacilityTypeField.java @@ -0,0 +1,70 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 设施类型字段配置表 + */ +@Data +@TableName("MTC_FACILITY_TYPE_FIELD") +@Schema(description = "设施类型字段配置表") +public class FacilityTypeField { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/InspectionPlan.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/InspectionPlan.java new file mode 100644 index 0000000..fd04620 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/InspectionPlan.java @@ -0,0 +1,84 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 巡查计划表 + */ +@Data +@TableName("MTC_INSPECTION_PLAN") +@Schema(description = "巡查计划表") +public class InspectionPlan { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/InspectionRecord.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/InspectionRecord.java new file mode 100644 index 0000000..539e636 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/InspectionRecord.java @@ -0,0 +1,84 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 巡查日志表 + */ +@Data +@TableName("MTC_INSPECTION_RECORD") +@Schema(description = "巡查日志表") +public class InspectionRecord { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Knowledge.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Knowledge.java new file mode 100644 index 0000000..bf7c9e4 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Knowledge.java @@ -0,0 +1,70 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 知识表 + */ +@Data +@TableName("MTC_KNOWLEDGE") +@Schema(description = "知识表") +public class Knowledge { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/KnowledgeCategory.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/KnowledgeCategory.java new file mode 100644 index 0000000..e556026 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/KnowledgeCategory.java @@ -0,0 +1,71 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 知识分类表 + */ +@Data +@TableName("MTC_KNOWLEDGE_CATEGORY") +@Schema(description = "知识分类表") +public class KnowledgeCategory { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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 = "路径") + @TableField("\"path\"") + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenanceDept.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenanceDept.java new file mode 100644 index 0000000..519cb18 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenanceDept.java @@ -0,0 +1,62 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 养护单位表 + */ +@Data +@TableName("MTC_MAINTENANCE_DEPT") +@Schema(description = "养护单位表") +public class MaintenanceDept { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenanceEquipment.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenanceEquipment.java new file mode 100644 index 0000000..1aa94ea --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenanceEquipment.java @@ -0,0 +1,70 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 养护设备表 + */ +@Data +@TableName("MTC_MAINTENANCE_EQUIPMENT") +@Schema(description = "养护设备表") +public class MaintenanceEquipment { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenancePerson.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenancePerson.java new file mode 100644 index 0000000..713999e --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/MaintenancePerson.java @@ -0,0 +1,62 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 养护人员表 + */ +@Data +@TableName("MTC_MAINTENANCE_PERSON") +@Schema(description = "养护人员表") +public class MaintenancePerson { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Road.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Road.java new file mode 100644 index 0000000..d08efe4 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Road.java @@ -0,0 +1,111 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import 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 +@TableName("MTC_ROAD") +@Schema(description = "道路信息表") +public class Road { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + private String id; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路编码 */ + @Schema(description = "道路编码") + private String roadCode; + + /** 道路名称 */ + @Schema(description = "道路名称") + private String roadName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 行政等级(国道、省道、县道、乡道) */ + @Schema(description = "行政等级(国道、省道、县道、乡道)") + private Integer adminLevel; + + /** 道路长度(㎞) */ + @Schema(description = "道路长度(㎞)") + private BigDecimal roadLen; + + /** 路基 */ + @Schema(description = "路基") + private String subgrade; + + /** 路面 */ + @Schema(description = "路面") + private String pavement; + + /** 主要构筑物 */ + @Schema(description = "主要构筑物") + private String majorStructure; + + /** 沿线设施 */ + @Schema(description = "沿线设施") + private String roadsideFacility; + + /** 沿线环境 */ + @Schema(description = "沿线环境") + private String roadsideEnv; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 状态(在建、在用、停用、待拆除、灭失) */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/RoadSection.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/RoadSection.java new file mode 100644 index 0000000..48848dc --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/RoadSection.java @@ -0,0 +1,87 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import 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 +@TableName("MTC_ROAD_SECTION") +@Schema(description = "路段信息表") +public class RoadSection { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + private String id; + + /** 管养单位ID */ + @Schema(description = "管养单位ID") + private String deptId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段编码 */ + @Schema(description = "路段编码") + private String sectionCode; + + /** 路段名称 */ + @Schema(description = "路段名称") + private String sectionName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 路段长度(㎞) */ + @Schema(description = "路段长度(㎞)") + private BigDecimal sectionLen; + + /** 行政区划ID */ + @Schema(description = "行政区划ID") + private String regionId; + + /** 附件 */ + @Schema(description = "附件") + private String attacmentIds; + + /** 排序 */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/RoadUpgrading.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/RoadUpgrading.java new file mode 100644 index 0000000..08af160 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/RoadUpgrading.java @@ -0,0 +1,97 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 改扩建信息表 + */ +@Data +@TableName("MTC_ROAD_UPGRADING") +@Schema(description = "改扩建信息表") +public class RoadUpgrading { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + private String id; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 项目编码 */ + @Schema(description = "项目编码") + private String projectCode; + + /** 项目名称 */ + @Schema(description = "项目名称") + private String projectName; + + /** 项目类型(新建、改建、扩建、路面改造、加宽、改线) */ + @Schema(description = "项目类型(新建、改建、扩建、路面改造、加宽、改线)") + private Integer projectType; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 项目来源 */ + @Schema(description = "项目来源") + private String projectSource; + + /** 开工日期 */ + @Schema(description = "开工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate commencementDate; + + /** 竣工日期 */ + @Schema(description = "竣工日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate completionDate; + + /** 验收日期 */ + @Schema(description = "验收日期") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate handoverDate; + + /** 工程内容 */ + @Schema(description = "工程内容") + private String content; + + /** 附件 */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Slope.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Slope.java new file mode 100644 index 0000000..f6fbed4 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/Slope.java @@ -0,0 +1,111 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import 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 +@TableName("MTC_SLOPE") +@Schema(description = "边坡信息表") +public class Slope { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + 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 slopeCode; + + /** 边坡名称 */ + @Schema(description = "边坡名称") + private String slopeName; + + /** 起点桩号 */ + @Schema(description = "起点桩号") + private String chainageStart; + + /** 终点桩号 */ + @Schema(description = "终点桩号") + private String chainageEnd; + + /** 边坡类型(挖方边坡、填方边坡 、半填半挖边坡) */ + @Schema(description = "边坡类型(挖方边坡、填方边坡 、半填半挖边坡)") + private Integer slopeType; + + /** 边坡位置(左侧、右侧、中央分隔带) */ + @Schema(description = "边坡位置(左侧、右侧、中央分隔带)") + private Integer slopePosition; + + /** 边坡高度(m) */ + @Schema(description = "边坡高度(m)") + private BigDecimal slopeHeight; + + /** 行政区划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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/UserRoadSection.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/UserRoadSection.java new file mode 100644 index 0000000..37fc52c --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/model/po/UserRoadSection.java @@ -0,0 +1,62 @@ +package com.wanji.software.tocc.infra.maint.model.po; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +/** + * 用户-路段关联表 + */ +@Data +@TableName("MTC_USER_ROAD_SECTION") +@Schema(description = "用户-路段关联表") +public class UserRoadSection { + + /** 主键 */ + @Schema(description = "主键") + @TableId(value = "ID", type = IdType.INPUT) + private String id; + + /** 用户ID(路长、巡查人员) */ + @Schema(description = "用户ID(路长、巡查人员)") + private String userId; + + /** 道路ID */ + @Schema(description = "道路ID") + private String roadId; + + /** 路段ID */ + @Schema(description = "路段ID") + private String roadSectionId; + + /** 排序 */ + @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; +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/support/MaintRecords.java b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/support/MaintRecords.java new file mode 100644 index 0000000..4355e4d --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/java/com/wanji/software/tocc/infra/maint/support/MaintRecords.java @@ -0,0 +1,167 @@ +package com.wanji.software.tocc.infra.maint.support; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.maint.support.CurrentUser; +import com.wanji.software.tocc.maint.support.CurrentUserHolder; +import com.wanji.software.tocc.maint.support.PageResult; +import org.springframework.beans.BeanWrapper; +import org.springframework.beans.BeanWrapperImpl; +import org.springframework.util.StringUtils; + +import java.beans.PropertyDescriptor; +import java.time.LocalDateTime; +import java.util.UUID; +import java.util.stream.Collectors; + +/** + * 各表通用的增删改查。创建人和修改人取当前请求用户。 + */ +public final class MaintRecords { + + private MaintRecords() { + } + + public static Result create(BaseMapper mapper, Object request, Class entityClass, Class responseClass) { + E entity = newInstance(entityClass); + copyNonNull(request, entity); + if (!StringUtils.hasText(readString(entity, "id"))) { + write(entity, "id", UUID.randomUUID().toString()); + } + CurrentUser user = CurrentUserHolder.get(); + LocalDateTime now = LocalDateTime.now(); + write(entity, "createBy", user.getUserId()); + write(entity, "createTime", now); + write(entity, "updateBy", user.getUserId()); + write(entity, "updateTime", now); + mapper.insert(entity); + return Result.ok(copy(entity, responseClass)); + } + + public static Result get(BaseMapper mapper, String id, Class responseClass) { + E entity = mapper.selectById(id); + if (entity == null) { + return Result.fail("数据不存在"); + } + return Result.ok(copy(entity, responseClass)); + } + + public static Result update(BaseMapper mapper, Object request) { + String id = readString(request, "id"); + if (!StringUtils.hasText(id)) { + return Result.fail("主键不能为空"); + } + E entity = mapper.selectById(id); + if (entity == null) { + return Result.fail("数据不存在"); + } + copyNonNull(request, entity); + CurrentUser user = CurrentUserHolder.get(); + write(entity, "updateBy", user.getUserId()); + write(entity, "updateTime", LocalDateTime.now()); + return Result.ok(mapper.updateById(entity) > 0); + } + + public static Result delete(BaseMapper mapper, String id) { + if (!StringUtils.hasText(id)) { + return Result.fail("主键不能为空"); + } + return Result.ok(mapper.deleteById(id) > 0); + } + + public static Result> page(BaseMapper mapper, Object request, Class entityClass, Class responseClass) { + long pageNo = readLong(request, "pageNo", 1L); + long pageSize = readLong(request, "pageSize", 10L); + QueryWrapper wrapper = new QueryWrapper(); + BeanWrapper source = new BeanWrapperImpl(request); + for (PropertyDescriptor descriptor : source.getPropertyDescriptors()) { + String name = descriptor.getName(); + if ("class".equals(name) || "pageNo".equals(name) || "pageSize".equals(name)) { + continue; + } + Object value = source.getPropertyValue(name); + if (value == null) { + continue; + } + if (value instanceof String && !StringUtils.hasText((String) value)) { + continue; + } + wrapper.eq(column(name), value); + } + wrapper.orderByDesc("CREATE_TIME"); + Page page = mapper.selectPage(new Page(pageNo, pageSize), wrapper); + PageResult result = new PageResult(); + result.setTotal(page.getTotal()); + result.setPageNo(page.getCurrent()); + result.setPageSize(page.getSize()); + result.setRecords(page.getRecords().stream().map(item -> copy(item, responseClass)).collect(Collectors.toList())); + return Result.ok(result); + } + + private static String column(String property) { + if ("path".equals(property)) { + return "\"path\""; + } + StringBuilder column = new StringBuilder(); + for (int i = 0; i < property.length(); i++) { + char current = property.charAt(i); + if (Character.isUpperCase(current) && i > 0) { + column.append('_'); + } + column.append(Character.toUpperCase(current)); + } + return column.toString(); + } + + private static void copyNonNull(Object source, Object target) { + BeanWrapper src = new BeanWrapperImpl(source); + BeanWrapper dst = new BeanWrapperImpl(target); + for (PropertyDescriptor descriptor : src.getPropertyDescriptors()) { + String name = descriptor.getName(); + if ("class".equals(name)) { + continue; + } + Object value = src.getPropertyValue(name); + if (value != null && dst.isWritableProperty(name)) { + dst.setPropertyValue(name, value); + } + } + } + + private static T copy(Object source, Class targetClass) { + T target = newInstance(targetClass); + copyNonNull(source, target); + return target; + } + + private static T newInstance(Class type) { + try { + return type.getDeclaredConstructor().newInstance(); + } catch (ReflectiveOperationException ex) { + throw new IllegalStateException("无法创建 " + type.getSimpleName(), ex); + } + } + + private static String readString(Object bean, String property) { + Object value = new BeanWrapperImpl(bean).getPropertyValue(property); + return value == null ? null : String.valueOf(value); + } + + private static long readLong(Object bean, String property, long fallback) { + Object value = new BeanWrapperImpl(bean).getPropertyValue(property); + if (value instanceof Number) { + long number = ((Number) value).longValue(); + return number > 0 ? number : fallback; + } + return fallback; + } + + private static void write(Object bean, String property, Object value) { + BeanWrapper wrapper = new BeanWrapperImpl(bean); + if (wrapper.isWritableProperty(property)) { + wrapper.setPropertyValue(property, value); + } + } +} diff --git a/tocc-infra-maint/tocc-infra-maint-biz/src/main/resources/application.yml b/tocc-infra-maint/tocc-infra-maint-biz/src/main/resources/application.yml new file mode 100644 index 0000000..e4efe99 --- /dev/null +++ b/tocc-infra-maint/tocc-infra-maint-biz/src/main/resources/application.yml @@ -0,0 +1,38 @@ +server: + port: 7424 + +spring: + application: + name: maint-infra + jackson: + serialization: + write-dates-as-timestamps: false + date-format: yyyy-MM-dd HH:mm:ss + time-zone: GMT+8 + datasource: + url: jdbc:dm://127.0.0.1:5236?schema=SZ_MAINT&compatibleMode=4&characterEncoding=UTF-8 + username: SYSDBA + password: 请改成你本机达梦的口令 + driver-class-name: dm.jdbc.driver.DmDriver + +mybatis-plus: + mapper-locations: classpath:/mapper/*Mapper.xml + type-aliases-package: com.wanji.software.tocc.infra.maint.model.po + configuration: + map-underscore-to-camel-case: true + global-config: + db-config: + id-type: input + +springdoc: + api-docs: + enabled: true + path: /v3/api-docs + swagger-ui: + enabled: true + path: /swagger-ui.html + +knife4j: + enable: true + setting: + language: zh_cn diff --git a/tocc-system-maint/pom.xml b/tocc-system-maint/pom.xml new file mode 100644 index 0000000..75bfbcc --- /dev/null +++ b/tocc-system-maint/pom.xml @@ -0,0 +1,18 @@ + + + 4.0.0 + + com.wanji.software + maint-dev + 1.0.0 + + tocc-system-maint + pom + 养护系统服务 + + tocc-system-maint-api + tocc-system-maint-biz + + diff --git a/tocc-system-maint/tocc-system-maint-api/pom.xml b/tocc-system-maint/tocc-system-maint-api/pom.xml new file mode 100644 index 0000000..b71ad4e --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-api/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + com.wanji.software + tocc-system-maint + 1.0.0 + + tocc-system-maint-api + 养护系统服务接口 + + + com.wanji.software + maint-support + + + org.springframework.cloud + spring-cloud-starter-openfeign + true + + + io.swagger.core.v3 + swagger-annotations + 2.2.8 + + + diff --git a/tocc-system-maint/tocc-system-maint-api/src/main/java/com/wanji/software/tocc/system/maint/constants/ApiConstants.java b/tocc-system-maint/tocc-system-maint-api/src/main/java/com/wanji/software/tocc/system/maint/constants/ApiConstants.java new file mode 100644 index 0000000..66614fe --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-api/src/main/java/com/wanji/software/tocc/system/maint/constants/ApiConstants.java @@ -0,0 +1,16 @@ +package com.wanji.software.tocc.system.maint.constants; + +/** + * 服务名需要和 spring.application.name 保持一致。 + */ +public final class ApiConstants { + + public static final String NAME = "maint-system"; + + public static final String PREFIX = "/rpc-api/maint-system"; + + public static final String VERSION = "1.0.0"; + + private ApiConstants() { + } +} diff --git a/tocc-system-maint/tocc-system-maint-biz/pom.xml b/tocc-system-maint/tocc-system-maint-biz/pom.xml new file mode 100644 index 0000000..4de7643 --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-biz/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + + com.wanji.software + tocc-system-maint + 1.0.0 + + tocc-system-maint-biz + 养护系统服务,给前端提供接口,通过 Feign 调用基础服务 + + + + com.wanji.software + tocc-system-maint-api + + + com.wanji.software + tocc-infra-maint-api + + + com.wanji.software + maint-support + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-validation + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + com.github.xiaoymin + knife4j-openapi3-spring-boot-starter + + + org.projectlombok + lombok + true + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/MaintSystemApplication.java b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/MaintSystemApplication.java new file mode 100644 index 0000000..2a6cdd9 --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/MaintSystemApplication.java @@ -0,0 +1,22 @@ +package com.wanji.software.tocc.system.maint; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.context.annotation.ComponentScan; + +/** + * 养护系统服务。页面接口放在本进程,数据库访问调用基础服务。 + */ +@SpringBootApplication +@ComponentScan(basePackages = { + "com.wanji.software.tocc.system.maint", + "com.wanji.software.tocc.maint.support" +}) +@EnableFeignClients(basePackages = "com.wanji.software.tocc.infra.maint.api") +public class MaintSystemApplication { + + public static void main(String[] args) { + SpringApplication.run(MaintSystemApplication.class, args); + } +} diff --git a/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/config/ExceptionAdvice.java b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/config/ExceptionAdvice.java new file mode 100644 index 0000000..f5f4b86 --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/config/ExceptionAdvice.java @@ -0,0 +1,59 @@ +package com.wanji.software.tocc.system.maint.config; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.wanji.software.tocc.common.exception.BusinessException; +import com.wanji.software.tocc.common.model.Result; +import feign.FeignException; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.RestControllerAdvice; + +import javax.annotation.Resource; + +/** + * 统一异常处理。业务异常回短文案;调用基础服务失败或系统异常记日志后返回固定提示。 + */ +@Slf4j +@RestControllerAdvice +public class ExceptionAdvice { + + @Resource + private ObjectMapper objectMapper; + + @ExceptionHandler(BusinessException.class) + public Result handleBusiness(BusinessException exception) { + log.warn("业务异常: {}", exception.getMessage()); + return Result.fail(exception.getCode() == null ? 1 : exception.getCode(), + safeMsg(exception.getMessage(), "请求失败")); + } + + @ExceptionHandler(FeignException.class) + public Result handleFeign(FeignException exception) { + log.error("调用基础服务失败", exception); + String remoteMsg = readRemoteMsg(exception); + return Result.fail(safeMsg(remoteMsg, "基础服务暂时不可用")); + } + + @ExceptionHandler(Exception.class) + public Result handle(Exception exception) { + log.error("系统异常", exception); + return Result.fail("系统繁忙,请稍后再试"); + } + + private String readRemoteMsg(FeignException exception) { + try { + byte[] body = exception.content(); + if (body == null || body.length == 0) { + return null; + } + Result result = objectMapper.readValue(body, Result.class); + return result == null ? null : result.getMsg(); + } catch (Exception ex) { + return null; + } + } + + private String safeMsg(String message, String fallback) { + return message == null || message.trim().isEmpty() ? fallback : message; + } +} diff --git a/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/config/MaintFeignConfig.java b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/config/MaintFeignConfig.java new file mode 100644 index 0000000..235a2b4 --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/config/MaintFeignConfig.java @@ -0,0 +1,70 @@ +package com.wanji.software.tocc.system.maint.config; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.wanji.software.tocc.common.exception.BusinessException; +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.maint.support.CurrentUser; +import com.wanji.software.tocc.maint.support.CurrentUserHolder; +import com.wanji.software.tocc.maint.support.LocalDevAuthFilter; +import feign.RequestInterceptor; +import feign.Response; +import feign.codec.ErrorDecoder; +import feign.Util; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.io.UnsupportedEncodingException; +import java.nio.charset.StandardCharsets; +import java.net.URLEncoder; + +/** + * 调用基础服务时带上当前用户;非 2xx 时尽量还原远端 Result 文案。 + */ +@Configuration +public class MaintFeignConfig { + + @Bean + public RequestInterceptor currentUserInterceptor() { + return template -> { + CurrentUser current = CurrentUserHolder.get(); + template.header(LocalDevAuthFilter.USER_ID_HEADER, current.getUserId()); + template.header(LocalDevAuthFilter.USER_NAME_HEADER, encode(current.getUserName())); + template.header(LocalDevAuthFilter.ORG_ID_HEADER, current.getOrgId()); + }; + } + + @Bean + public ErrorDecoder maintErrorDecoder(ObjectMapper objectMapper) { + return (methodKey, response) -> { + String remoteMsg = readRemoteMsg(objectMapper, response); + if (remoteMsg != null) { + return new BusinessException(remoteMsg); + } + return new BusinessException("基础服务暂时不可用"); + }; + } + + private String readRemoteMsg(ObjectMapper objectMapper, Response response) { + if (response == null || response.body() == null) { + return null; + } + try { + String body = Util.toString(response.body().asReader(StandardCharsets.UTF_8)); + Result result = objectMapper.readValue(body, Result.class); + if (result == null || result.getMsg() == null || result.getMsg().trim().isEmpty()) { + return null; + } + return result.getMsg(); + } catch (Exception ex) { + return null; + } + } + + private String encode(String value) { + try { + return URLEncoder.encode(value, "UTF-8"); + } catch (UnsupportedEncodingException ex) { + return value; + } + } +} diff --git a/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/controller/MaintController.java b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/controller/MaintController.java new file mode 100644 index 0000000..e3d81c2 --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-biz/src/main/java/com/wanji/software/tocc/system/maint/controller/MaintController.java @@ -0,0 +1,49 @@ +package com.wanji.software.tocc.system.maint.controller; + +import com.wanji.software.tocc.common.model.Result; +import com.wanji.software.tocc.infra.maint.api.BridgeApi; +import com.wanji.software.tocc.infra.maint.api.MaintHealthApi; +import com.wanji.software.tocc.infra.maint.model.dto.BridgeResp; +import com.wanji.software.tocc.maint.support.CurrentUserHolder; +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.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * 给前端的接口放在这个包。需要查库时注入基础服务的 Feign 接口,不要在本服务写 Mapper。 + */ +@Tag(name = "道路养护管理") +@RestController +@RequestMapping("/maint") +public class MaintController { + + @Resource + private MaintHealthApi maintHealthApi; + + @Resource + private BridgeApi bridgeApi; + + @GetMapping("/health") + @Operation(summary = "检查基础服务是否可用") + public Result health() { + return maintHealthApi.health(); + } + + @GetMapping("/current-user") + @Operation(summary = "查看本地开发使用的当前用户") + public Result currentUser() { + return Result.ok(CurrentUserHolder.get().getUserName()); + } + + @GetMapping("/bridge") + @Operation(summary = "查看本地开发使用的当前用户") + public Result getBridgeById(@RequestParam("id") String id) { + return Result.ok(bridgeApi.getById(id).getCheckedData()); + } +} diff --git a/tocc-system-maint/tocc-system-maint-biz/src/main/resources/application.yml b/tocc-system-maint/tocc-system-maint-biz/src/main/resources/application.yml new file mode 100644 index 0000000..27a84ea --- /dev/null +++ b/tocc-system-maint/tocc-system-maint-biz/src/main/resources/application.yml @@ -0,0 +1,25 @@ +server: + port: 8525 + +spring: + application: + name: maint-system + autoconfigure: + exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration + +maint: + infra: + url: http://127.0.0.1:7424 + +springdoc: + api-docs: + enabled: true + path: /v3/api-docs + swagger-ui: + enabled: true + path: /swagger-ui.html + +knife4j: + enable: true + setting: + language: zh_cn