From d9b72f83af7b1e582fefc51ffd81c591947935e6 Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 18 Aug 2025 10:54:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(hw-portal):=20=E6=B7=BB=E5=8A=A0=20jsonStr?= =?UTF-8?q?in=E5=AD=97=E6=AE=B5=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 HwWeb 类中添加 webJsonString 字段,用于存储 json 字符串 - 更新 HwWebMapper.xml,添加 webJsonString 的映射和相关 SQL 语句 --- .../main/java/com/ruoyi/portal/domain/HwWeb.java | 14 ++++++++++++++ .../main/resources/mapper/portal/HwWebMapper.xml | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWeb.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWeb.java index 3650335..e2276ba 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWeb.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwWeb.java @@ -22,6 +22,10 @@ public class HwWeb extends BaseEntity @Excel(name = "json") private String webJson; + /** json字符串 */ + @Excel(name = "json字符串") + private String webJsonString; + public void setWebId(Long webId) { this.webId = webId; @@ -40,12 +44,22 @@ public class HwWeb extends BaseEntity { return webJson; } + public void setWebJsonString(String webJsonString) + { + this.webJsonString = webJsonString; + } + + public String getWebJsonString() + { + return webJsonString; + } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("webId", getWebId()) .append("webJson", getWebJson()) + .append("webJsonString", getWebJsonString()) .toString(); } } diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper.xml index aa09e41..30e8661 100644 --- a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper.xml +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper.xml @@ -7,16 +7,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select web_id, web_json from hw_web + select web_id, web_json, web_json_string from hw_web @@ -29,9 +31,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" insert into hw_web web_json, + web_json_string, #{webJson}, + #{webJsonString}, @@ -39,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update hw_web web_json = #{webJson}, + web_json_string = #{webJsonString}, where web_id = #{webId}