From d3421847f72ce87d3a412b7d9f2b3f69b2dcd9c7 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 20 Oct 2025 09:54:56 +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 --- .../dao/mapper/DeployAppConfigMapper.xml | 28 +++++++++---------- .../module/deploy/dao/mapper/DeployCi.xml | 4 +-- .../dao/mapper/DeployJobWebhookMapper.xml | 6 ++-- .../dao/mapper/DeployScheduleMapper.xml | 6 ++-- .../deploy/dao/mapper/DeployVersionMapper.xml | 22 +++++++-------- 5 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployAppConfigMapper.xml b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployAppConfigMapper.xml index bfd9eeee..a4d6e3ec 100644 --- a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployAppConfigMapper.xml +++ b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployAppConfigMapper.xml @@ -1387,7 +1387,7 @@ along with this program. If not, see .--> - UPDATE `deploy_app_config` SET `config` = #{configStr} WHERE `id` = #{id} + UPDATE `deploy_app_config` SET `config` = #{configStr, typeHandler=CompressHandler} WHERE `id` = #{id} @@ -1432,7 +1432,7 @@ along with this program. If not, see .--> (`app_system_id`,`app_module_id`,`env_id`,`instance_id`,`key`,`type`,`value`,`is_empty`,`lcd`,`lcu`) VALUES - #{appSystemId},#{appModuleId},#{envId},#{instanceId},#{keyValue.key},#{keyValue.type},#{keyValue.value},#{keyValue.isEmpty},#{lcd},#{lcu} + #{appSystemId},#{appModuleId},#{envId},#{instanceId},#{keyValue.key},#{keyValue.type},#{keyValue.value, typeHandler=CompressHandler},#{keyValue.isEmpty},#{lcd},#{lcu} ON DUPLICATE KEY UPDATE `key` = VALUES(`key`),`type` = VALUES(`type`),`value` = VALUES(`value`),`is_empty` = VALUES(`is_empty`),`lcd`= VALUES(`lcd`),`lcu` = VALUES(`lcu`) @@ -1454,7 +1454,7 @@ along with this program. If not, see .--> (`app_system_id`,`app_module_id`,`env_id`,`instance_id`,`key`,`value`,`is_empty`,`lcd`,`lcu`) VALUES - #{appSystemId},#{appModuleId},#{envId},#{instanceId},#{keyValue.key},#{keyValue.value},#{keyValue.isEmpty},now(3),#{lcu} + #{appSystemId},#{appModuleId},#{envId},#{instanceId},#{keyValue.key},#{keyValue.value, typeHandler=CompressHandler},#{keyValue.isEmpty},now(3),#{lcu} ON DUPLICATE KEY UPDATE `key` = VALUES(`key`) @@ -1465,7 +1465,7 @@ along with this program. If not, see .--> VALUES - #{vo.appSystemId},#{vo.appModuleId},#{vo.envId},#{vo.instanceId},#{keyValue.key},#{keyValue.type},#{keyValue.value},#{keyValue.isEmpty},now(3),#{vo.lcu} + #{vo.appSystemId},#{vo.appModuleId},#{vo.envId},#{vo.instanceId},#{keyValue.key},#{keyValue.type},#{keyValue.value, typeHandler=CompressHandler},#{keyValue.isEmpty},now(3),#{vo.lcu} ON DUPLICATE KEY UPDATE `key` = VALUES(`key`) @@ -1492,14 +1492,14 @@ along with this program. If not, see .--> #{instanceId}, #{key}, #{type}, - #{value}, + #{value, typeHandler=CompressHandler}, #{isEmpty}, #{lcu}, NOW(3) ) ON DUPLICATE KEY UPDATE `type` = #{type}, - `value` = #{value}, + `value` = #{value, typeHandler=CompressHandler}, `is_empty` = #{isEmpty}, `lcu` = #{lcu}, `lcd` = NOW(3) @@ -1543,7 +1543,7 @@ along with this program. If not, see .--> #{appSystemId}, #{appModuleId}, #{envId}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, NOW(3), #{fcu}, NOW(3), @@ -1566,7 +1566,7 @@ along with this program. If not, see .--> #{vo.appSystemId}, #{vo.appModuleId}, #{vo.envId}, - #{vo.configStr}, + #{vo.configStr, typeHandler=CompressHandler}, NOW(3), #{vo.fcu}, NOW(3), @@ -1587,7 +1587,7 @@ along with this program. If not, see .--> VALUES (#{appSystemId}, #{appModuleId}, #{envId}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, NOW(3), #{fcu}, NOW(3), @@ -1628,7 +1628,7 @@ along with this program. If not, see .--> #{envId}, #{dbResourceId}, #{accountId}, - #{configStr}) + #{configStr, typeHandler=CompressHandler}) @@ -1643,7 +1643,7 @@ along with this program. If not, see .--> #{dbConfigVo.appSystemId}, #{dbConfigVo.appModuleId}, #{dbConfigVo.envId}, - #{dbConfigVo.configStr} + #{dbConfigVo.configStr, typeHandler=CompressHandler} ) ON DUPLICATE KEY UPDATE `db_schema` = VALUES ( db_schema ), @@ -1672,7 +1672,7 @@ along with this program. If not, see .--> UPDATE `deploy_app_config` - SET `config` = #{configStr}, + SET `config` = #{configStr, typeHandler=CompressHandler}, `lcu` = #{lcu}, `lcd` = NOW(3) WHERE `app_system_id` = #{appSystemId} @@ -1682,7 +1682,7 @@ along with this program. If not, see .--> UPDATE `deploy_app_config_draft` - SET `config` = #{configStr}, + SET `config` = #{configStr, typeHandler=CompressHandler}, `lcu` = #{lcu}, `lcd` = NOW(3) WHERE `app_system_id` = #{appSystemId} @@ -1695,7 +1695,7 @@ along with this program. If not, see .--> set db_schema= #{dbSchema}, db_resource_id = #{dbResourceId}, account_id = #{accountId}, - config = #{configStr} + config = #{configStr, typeHandler=CompressHandler} where id = #{id} diff --git a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployCi.xml b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployCi.xml index 1e5707e7..fff1c8e8 100644 --- a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployCi.xml +++ b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployCi.xml @@ -226,7 +226,7 @@ along with this program. If not, see .--> #{triggerTime}, #{delayTime}, #{versionRuleStr}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, #{hookId}, #{fcu}, now(3), @@ -246,7 +246,7 @@ along with this program. If not, see .--> `trigger_time` = #{triggerTime}, `delay_time` = #{delayTime}, `version_rule` = #{versionRuleStr}, - `config` = #{configStr}, + `config` = #{configStr, typeHandler=CompressHandler}, `hook_id` = #{hookId}, `lcu` = #{lcu}, `lcd` = now(3) diff --git a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployJobWebhookMapper.xml b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployJobWebhookMapper.xml index e8ede83b..330dc0ba 100644 --- a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployJobWebhookMapper.xml +++ b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployJobWebhookMapper.xml @@ -137,7 +137,7 @@ along with this program. If not, see .--> #{type}, #{pipelineType}, #{buildNoPolicy}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, NOW(), #{lcu}) @@ -172,7 +172,7 @@ along with this program. If not, see .--> `type` = #{type}, `pipeline_type` = #{pipelineType}, `build_no_policy` = #{buildNoPolicy}, - `config` = #{configStr}, + `config` = #{configStr, typeHandler=CompressHandler}, `lcd` = NOW(3), `lcu` = #{lcu} where `id` = #{id} @@ -200,4 +200,4 @@ along with this program. If not, see .--> from deploy_job_webhook_app_module where webhook_id = #{value} - \ No newline at end of file + diff --git a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployScheduleMapper.xml b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployScheduleMapper.xml index dac88fd5..0d42e096 100644 --- a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployScheduleMapper.xml +++ b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployScheduleMapper.xml @@ -219,7 +219,7 @@ along with this program. If not, see .--> #{endTime}, #{cron}, #{isActive}, - #{configStr}, + #{configStr, typeHandler=CompressHandler}, NOW(3), #{fcu}, NOW(3), @@ -239,7 +239,7 @@ along with this program. If not, see .--> `end_time` = #{endTime}, `cron` = #{cron}, `is_active` = #{isActive}, - `config` = #{configStr}, + `config` = #{configStr, typeHandler=CompressHandler}, `lcd` = NOW(3), `lcu` = #{lcu} WHERE `id` = #{id} @@ -254,4 +254,4 @@ along with this program. If not, see .--> DELETE FROM `deploy_schedule` WHERE `id` = #{value} - \ No newline at end of file + diff --git a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployVersionMapper.xml b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployVersionMapper.xml index acb8a986..a0b00c84 100644 --- a/src/main/java/neatlogic/module/deploy/dao/mapper/DeployVersionMapper.xml +++ b/src/main/java/neatlogic/module/deploy/dao/mapper/DeployVersionMapper.xml @@ -955,7 +955,7 @@ along with this program. If not, see .--> runner_map_id = #{runnerMapId}, - runner_group = #{runnerGroupStr}, + runner_group = #{runnerGroupStr, typeHandler=CompressHandler}, @@ -979,7 +979,7 @@ along with this program. If not, see .--> runner_map_id = #{runnerMapId}, - runner_group = #{runnerGroupStr}, + runner_group = #{runnerGroupStr, typeHandler=CompressHandler}, end_rev = #{endRev}, @@ -1001,7 +1001,7 @@ along with this program. If not, see .--> runner_map_id = #{runnerMapId}, - runner_group = #{runnerGroupStr}, + runner_group = #{runnerGroupStr, typeHandler=CompressHandler}, build_no = #{buildNo}, @@ -1084,7 +1084,7 @@ along with this program. If not, see .--> #{version}, #{appSystemId}, #{appModuleId}, - #{description}, + #{description, typeHandler=CompressHandler}, #{isFreeze}, #{repoType}, @@ -1114,7 +1114,7 @@ along with this program. If not, see .--> #{runnerMapId}, - #{runnerGroupStr}, + #{runnerGroupStr, typeHandler=CompressHandler}, #{compileSuccessCount}, @@ -1145,7 +1145,7 @@ along with this program. If not, see .--> #{jobId}, #{status}, #{runnerMapId}, - #{runnerGroupStr}, + #{runnerGroupStr, typeHandler=CompressHandler}, #{buildNo}, #{isMirror}, #{lcu}, @@ -1179,7 +1179,7 @@ along with this program. If not, see .--> #{runnerMapId}, - #{runnerGroupStr}, + #{runnerGroupStr, typeHandler=CompressHandler}, #{endRev}, @@ -1194,7 +1194,7 @@ along with this program. If not, see .--> `runner_map_id` = #{runnerMapId}, - `runner_group` = #{runnerGroupStr}, + `runner_group` = #{runnerGroupStr, typeHandler=CompressHandler}, `end_rev` = #{endRev}, @@ -1373,7 +1373,7 @@ along with this program. If not, see .--> #{reopenedIssues}, #{wontFixIssues}, #{alertStatus}, - #{qualityGateDetails}, + #{qualityGateDetails, typeHandler=CompressHandler}, #{newMaintainabilityRating}) @@ -1549,9 +1549,9 @@ along with this program. If not, see .--> insert into deploy_version_thead ( `config`,`user_uuid`) - values (#{configStr}, #{userUuid}) + values (#{configStr, typeHandler=CompressHandler}, #{userUuid}) ON DUPLICATE KEY - UPDATE `config` = #{configStr} + UPDATE `config` = #{configStr, typeHandler=CompressHandler} -- Gitee