From 76f2dbcaa7cfcaf1c9a9e673aa95d182d880e4d6 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 20 Oct 2025 18:21:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=A1=A8text=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=9A=84SQL=E8=AF=AD=E5=8F=A5=E5=8A=A0=E4=B8=8AtypeHandler=3DC?= =?UTF-8?q?ompressHandler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1405671310852096]数据库表text类型字段的SQL语句加上typeHandler=CompressHandler http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1405671310852096 --- .../report/dao/mapper/ReportInstanceMapper.xml | 4 ++-- .../module/report/dao/mapper/ReportMapper.xml | 16 ++++++++-------- .../report/dao/mapper/ReportSendJobMapper.xml | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/neatlogic/module/report/dao/mapper/ReportInstanceMapper.xml b/src/main/java/neatlogic/module/report/dao/mapper/ReportInstanceMapper.xml index 124f243..0f7d0bb 100644 --- a/src/main/java/neatlogic/module/report/dao/mapper/ReportInstanceMapper.xml +++ b/src/main/java/neatlogic/module/report/dao/mapper/ReportInstanceMapper.xml @@ -133,7 +133,7 @@ `report_id` = #{reportId}, `name` = #{name}, `is_active` = #{isActive}, - `config` = #{configStr}, + `config` = #{configStr, typeHandler=CompressHandler}, `lcu` = #{lcu}, `lcd` = NOW(3) WHERE `id` = #{id} @@ -185,7 +185,7 @@ #{name}, 0, #{isActive}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, #{fcu}, NOW(3), #{fcu}, diff --git a/src/main/java/neatlogic/module/report/dao/mapper/ReportMapper.xml b/src/main/java/neatlogic/module/report/dao/mapper/ReportMapper.xml index d561345..c2ff7bd 100644 --- a/src/main/java/neatlogic/module/report/dao/mapper/ReportMapper.xml +++ b/src/main/java/neatlogic/module/report/dao/mapper/ReportMapper.xml @@ -205,9 +205,9 @@ along with this program. If not, see .--> `report` SET `name` = #{name}, `type` = #{type}, - `sql` = #{sql}, - `condition` = #{condition}, - `content` = #{content}, + `sql` = #{sql, typeHandler=CompressHandler}, + `condition` = #{condition, typeHandler=CompressHandler}, + `content` = #{content, typeHandler=CompressHandler}, `is_active` = #{isActive}, `lcu` = #{lcu}, `lcd` = NOW(3) @@ -240,7 +240,7 @@ along with this program. If not, see .--> #{name}, #{type}, #{label}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, #{sort}, #{width}) @@ -260,9 +260,9 @@ along with this program. If not, see .--> VALUES (#{id}, #{name}, #{type}, - #{sql}, - #{condition}, - #{content}, + #{sql, typeHandler=CompressHandler}, + #{condition, typeHandler=CompressHandler}, + #{content, typeHandler=CompressHandler}, #{isActive}, #{fcu}, NOW(3), @@ -292,7 +292,7 @@ along with this program. If not, see .--> #{item.name}, #{item.type}, #{item.label}, - #{item.configStr}, + #{item.configStr, typeHandler=CompressHandler}, #{item.sort}, #{item.width} ) diff --git a/src/main/java/neatlogic/module/report/dao/mapper/ReportSendJobMapper.xml b/src/main/java/neatlogic/module/report/dao/mapper/ReportSendJobMapper.xml index dfeee31..17861bc 100755 --- a/src/main/java/neatlogic/module/report/dao/mapper/ReportSendJobMapper.xml +++ b/src/main/java/neatlogic/module/report/dao/mapper/ReportSendJobMapper.xml @@ -246,7 +246,7 @@ along with this program. If not, see .--> UPDATE `report_send_job` SET `name` = #{name}, `email_title` = #{emailTitle}, - `email_content` = #{emailContent}, + `email_content` = #{emailContent, typeHandler=CompressHandler}, `cron` = #{cron}, `is_active` = #{isActive}, `lcu` = #{lcu}, @@ -277,7 +277,7 @@ along with this program. If not, see .--> VALUES (#{id}, #{name}, #{emailTitle}, - #{emailContent}, + #{emailContent, typeHandler=CompressHandler}, #{cron}, #{isActive}, now(3), @@ -315,8 +315,8 @@ along with this program. If not, see .--> ( #{item.reportSendJobId}, #{item.reportId}, - #{item.condition}, - #{item.config}, + #{item.condition, typeHandler=CompressHandler}, + #{item.config, typeHandler=CompressHandler}, #{item.sort} ) -- Gitee