From a1894210d52cbc0129f4a8908d1d934f0254fb3d Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Tue, 23 Sep 2025 15:45:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(hw-portal):=E4=B8=BAHwWebDocument=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0json=E5=92=8Ctype=E5=AD=97=E6=AE=B5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增了json和type两个字段,用于扩展hw_web_document表的存储能力。 同时更新了对应的Java实体类、Mapper XML文件,以支持新字段的读取与持久化操作。 --- .../portal/controller/HwWebController.java | 1 + .../ruoyi/portal/domain/HwWebDocument.java | 24 +++++++++++++++++++ .../mapper/portal/HwWebDocumentMapper.xml | 14 ++++++++++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwWebController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwWebController.java index c242648..c3d2ba5 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwWebController.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwWebController.java @@ -111,4 +111,5 @@ public class HwWebController extends BaseController { return success(hwWebService.selectHwWebList(HwWeb)) ; } + } diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWebDocument.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWebDocument.java index 39dc096..8326ebc 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWebDocument.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWebDocument.java @@ -34,6 +34,12 @@ public class HwWebDocument extends BaseEntity @Excel(name = "密钥") private String secretKey; + /** json */ + private String json; + + /** 文件类型 */ + private String type; + public void setDocumentId(String documentId) { this.documentId = documentId; @@ -80,6 +86,22 @@ public class HwWebDocument extends BaseEntity return secretKey; } + public String getJson() { + return json; + } + + public void setJson(String json) { + this.json = json; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) @@ -89,6 +111,8 @@ public class HwWebDocument extends BaseEntity .append("createTime", getCreateTime()) .append("webCode", getWebCode()) .append("secretKey", getSecretKey()) + .append("json", getJson()) + .append("type", getType()) .toString(); } } diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebDocumentMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebDocumentMapper.xml index 8bd2fb8..a15ef1b 100644 --- a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebDocumentMapper.xml +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebDocumentMapper.xml @@ -11,10 +11,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + - select document_id, tenant_id, document_address, create_time, web_code, secretKey from hw_web_document + select document_id, tenant_id, document_address, create_time, web_code, secretKey , + json,type + from hw_web_document @@ -42,6 +48,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_time, web_code, secretKey, + json, + type, #{documentId}, @@ -50,6 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{createTime}, #{webCode}, #{secretKey}, + #{json}, + #{type}, @@ -62,6 +72,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_time = #{createTime}, web_code = #{webCode}, secretKey = #{secretKey}, + json = #{json}, + type = #{type}, where document_id = #{documentId}