diff --git a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/common/EngineConnBmlResourceMapper.xml b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/mysql/EngineConnBmlResourceMapper.xml
similarity index 100%
rename from linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/common/EngineConnBmlResourceMapper.xml
rename to linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/mysql/EngineConnBmlResourceMapper.xml
diff --git a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/postgresql/EngineConnBmlResourceMapper.xml b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/postgresql/EngineConnBmlResourceMapper.xml
new file mode 100644
index 0000000000..acea50c6fa
--- /dev/null
+++ b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/resources/mapper/postgresql/EngineConnBmlResourceMapper.xml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+ engine_conn_type,version,file_name,file_size,last_modified,bml_resource_id,bml_resource_version,create_time,last_update_time
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM linkis_cg_engine_conn_plugin_bml_resources
+ WHERE engine_conn_type = #{engineConnBmlResource.engineConnType}
+ AND version = #{engineConnBmlResource.version}
+ AND file_name = #{engineConnBmlResource.fileName}
+
+
+
+ UPDATE linkis_cg_engine_conn_plugin_bml_resources
+
+ last_modified =
+ #{engineConnBmlResource.lastModified},
+
+ file_size = #{engineConnBmlResource.fileSize},
+ bml_resource_version =
+ #{engineConnBmlResource.bmlResourceVersion},
+
+ last_update_time =
+ #{engineConnBmlResource.lastUpdateTime},
+
+
+ WHERE engine_conn_type=#{engineConnBmlResource.engineConnType} and version=#{engineConnBmlResource.version}
+ AND file_name=#{engineConnBmlResource.fileName}
+
+
+
+ INSERT INTO linkis_cg_engine_conn_plugin_bml_resources()
+ VALUES (#{engineConnBmlResource.engineConnType}, #{engineConnBmlResource.version},
+ #{engineConnBmlResource.fileName},#{engineConnBmlResource.fileSize},
+ #{engineConnBmlResource.lastModified},#{engineConnBmlResource.bmlResourceId},
+ #{engineConnBmlResource.bmlResourceVersion},
+ #{engineConnBmlResource.createTime}, #{engineConnBmlResource.lastUpdateTime})
+
+
+
+
diff --git a/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/resources/mapper/postgresql/ECResourceRecordMapper.xml b/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/resources/mapper/postgresql/ECResourceRecordMapper.xml
index 8bc13d23f0..fdac449757 100644
--- a/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/resources/mapper/postgresql/ECResourceRecordMapper.xml
+++ b/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/resources/mapper/postgresql/ECResourceRecordMapper.xml
@@ -87,7 +87,7 @@
service_instance = #{instance}
and create_user = #{username}
- and label_value like concat('%,',#{engineType},'%')
+ and label_value like concat('%,',#{engineType}::text,'%')
and create_time BETWEEN #{startDate} AND #{endDate}
ORDER BY linkis_cg_ec_resource_info_record.create_time DESC
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/DatasourceAccessMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/DatasourceAccessMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/DatasourceAccessMapper.xml
rename to linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/DatasourceAccessMapper.xml
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/DatasourceEnvMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/DatasourceEnvMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/DatasourceEnvMapper.xml
rename to linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/DatasourceEnvMapper.xml
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/GatewayAuthTokenMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/GatewayAuthTokenMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/GatewayAuthTokenMapper.xml
rename to linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/GatewayAuthTokenMapper.xml
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/RmExternalResourceProviderMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/RmExternalResourceProviderMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/RmExternalResourceProviderMapper.xml
rename to linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/RmExternalResourceProviderMapper.xml
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/UdfManagerMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/UdfManagerMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/UdfManagerMapper.xml
rename to linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/UdfManagerMapper.xml
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/UdfTreeMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/UdfTreeMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/common/UdfTreeMapper.xml
rename to linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/mysql/UdfTreeMapper.xml
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceAccessMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceAccessMapper.xml
new file mode 100644
index 0000000000..14a96f82b7
--- /dev/null
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceAccessMapper.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,table_id,visitor,
+ fields,application_id,access_time
+
+
+
+
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceEnvMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceEnvMapper.xml
new file mode 100644
index 0000000000..ecff962236
--- /dev/null
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceEnvMapper.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,env_name,env_desc,
+ datasource_type_id,parameter,create_time,
+ create_user,modify_time,modify_user
+
+
+
+
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeKeyMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeKeyMapper.xml
index 0ee9730c65..4793556646 100644
--- a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeKeyMapper.xml
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeKeyMapper.xml
@@ -55,7 +55,7 @@
from linkis_ps_dm_datasource_type_key
where 1 = 1
- and "name" like concat('%',#{searchName},'%')
+ and "name" like concat('%',#{searchName}::text,'%')
and "data_source_type_id" = #{dataSourceTypeId}
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeMapper.xml
index 01f38cc543..3aa09d5e68 100644
--- a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeMapper.xml
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/DatasourceTypeMapper.xml
@@ -41,10 +41,10 @@
from linkis_ps_dm_datasource_type
- WHERE "name" LIKE concat('%',#{searchName},'%')
- OR "description" LIKE concat('%',#{searchName},'%')
- OR "option" LIKE concat('%',#{searchName},'%')
- OR "classifier" LIKE concat('%',#{searchName},'%')
+ WHERE "name" LIKE concat('%',#{searchName}::text,'%')
+ OR "description" LIKE concat('%',#{searchName}::text,'%')
+ OR "option" LIKE concat('%',#{searchName}::text,'%')
+ OR "classifier" LIKE concat('%',#{searchName}::text,'%')
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/GatewayAuthTokenMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/GatewayAuthTokenMapper.xml
new file mode 100644
index 0000000000..80051880b4
--- /dev/null
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/GatewayAuthTokenMapper.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,token_name,legal_users,
+ legal_hosts,business_owner,create_time,
+ update_time,elapse_day,update_by
+
+
+
+
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/PsErrorCodeMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/PsErrorCodeMapper.xml
index cec7c7e9ff..a0088e7d0e 100644
--- a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/PsErrorCodeMapper.xml
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/PsErrorCodeMapper.xml
@@ -38,10 +38,10 @@
from linkis_ps_error_code
- where error_code like concat('%',#{searchName},'%')
- or error_desc like concat('%',#{searchName},'%')
- or error_regex like concat('%',#{searchName},'%')
- or error_type::text like concat('%',#{searchName},'%')
+ where error_code like concat('%',#{searchName}::text,'%')
+ or error_desc like concat('%',#{searchName}::text,'%')
+ or error_regex like concat('%',#{searchName}::text,'%')
+ or error_type::text like concat('%',#{searchName}::text,'%')
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/RmExternalResourceProviderMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/RmExternalResourceProviderMapper.xml
new file mode 100644
index 0000000000..b27c8dcd9f
--- /dev/null
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/RmExternalResourceProviderMapper.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,resource_type,name,
+ labels,config
+
+
+
+
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/UdfManagerMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/UdfManagerMapper.xml
new file mode 100644
index 0000000000..799243f9fb
--- /dev/null
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/UdfManagerMapper.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+ id,user_name
+
+
+
+
diff --git a/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/UdfTreeMapper.xml b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/UdfTreeMapper.xml
new file mode 100644
index 0000000000..0a8422afe1
--- /dev/null
+++ b/linkis-public-enhancements/linkis-basedata-manager/src/main/resources/mapper/postgresql/UdfTreeMapper.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,parent,name,
+ user_name,description,create_time,
+ update_time,category
+
+
+
+
diff --git a/linkis-public-enhancements/linkis-context-service/linkis-cs-server/src/main/resources/mapper/postgresql/contextMapMapper.xml b/linkis-public-enhancements/linkis-context-service/linkis-cs-server/src/main/resources/mapper/postgresql/contextMapMapper.xml
index f1c9794f60..d59e858250 100644
--- a/linkis-public-enhancements/linkis-context-service/linkis-cs-server/src/main/resources/mapper/postgresql/contextMapMapper.xml
+++ b/linkis-public-enhancements/linkis-context-service/linkis-cs-server/src/main/resources/mapper/postgresql/contextMapMapper.xml
@@ -64,7 +64,7 @@
@@ -120,7 +120,7 @@
context_id = cast(#{contextID.contextId} as int) and
- "key" like concat(#{keyPrefix},'%')
+ "key" like concat(#{keyPrefix}::text,'%')
@@ -129,7 +129,7 @@
context_id = cast(#{contextID.contextId} as int) and
context_type = #{contextType} and
- "key" like concat(#{keyPrefix},'%')
+ "key" like concat(#{keyPrefix}::text,'%')
diff --git a/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/common/DataSouceMapper.xml b/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/mysql/DataSouceMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/common/DataSouceMapper.xml
rename to linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/mysql/DataSouceMapper.xml
diff --git a/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/common/DataSourceEnvMapper.xml b/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/mysql/DataSourceEnvMapper.xml
similarity index 100%
rename from linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/common/DataSourceEnvMapper.xml
rename to linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/mysql/DataSourceEnvMapper.xml
diff --git a/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/postgresql/DataSouceMapper.xml b/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/postgresql/DataSouceMapper.xml
new file mode 100644
index 0000000000..88bd3c51bf
--- /dev/null
+++ b/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/postgresql/DataSouceMapper.xml
@@ -0,0 +1,270 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ datasource_name
+ , datasource_type_id, datasource_desc,
+ create_identify, create_system, create_user, parameter, create_time,
+ modify_user, modify_time, labels
+
+
+
+ id
+ , datasource_name, datasource_type_id, datasource_desc,
+ create_identify, create_system, create_user, parameter, expire, create_time,
+ modify_user, modify_time
+
+
+
+ d.id
+ , d.datasource_name, d.datasource_type_id, t.name, d.datasource_desc,
+ d.create_identify, d.create_system, d.create_user, d.create_time,
+ d.modify_user, d.modify_time, d.labels, d.version_id,d.published_version_id, d.expire
+
+
+ t.name, t.icon,
+ d.id, d.datasource_name, d.datasource_type_id, d.datasource_desc,
+ d.create_identify, d.create_system, d.create_user, d.parameter, d.create_time,
+ d.modify_user, d.modify_time, d.version_id,d.published_version_id, d.labels, d.expire
+
+
+
+ INSERT INTO linkis_ps_dm_datasource(
+
+ ) VALUES(#{dataSourceName}, #{dataSourceTypeId},
+ #{dataSourceDesc,jdbcType=VARCHAR}, #{createIdentify}, #{createSystem}, #{createUser},
+ #{parameter},
+
+
+ now(),
+
+
+ #{createTime,jdbcType=TIMESTAMP},
+
+
+
+ #{modifyUser,jdbcType=VARCHAR},
+
+
+
+ now(),
+
+
+ #{modifyTime,jdbcType=TIMESTAMP},
+
+
+
+ #{labels})
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM linkis_ps_dm_datasource
+
+ id = #{dataSourceId}
+
+
+
+
+ UPDATE linkis_ps_dm_datasource
+
+ datasource_name = #{dataSourceName},
+ datasource_desc = #{dataSourceDesc,jdbcType=VARCHAR},
+
+ datasource_type_id = #{dataSourceTypeId},
+
+ parameter = #{parameter},
+ create_identify = #{createIdentify,jdbcType=VARCHAR},
+ create_system = #{createSystem,jdbcType=VARCHAR},
+
+
+ modify_time = now(),
+
+
+ modify_time = #{modifyTime,jdbcType=TIMESTAMP},
+
+
+ modify_user = #{modifyUser,jdbcType=VARCHAR},
+ labels = #{labels,jdbcType=VARCHAR}
+
+
+ id = #{id}
+
+
+
+
+ UPDATE linkis_ps_dm_datasource
+
+ expire = true
+
+
+ id = #{dataSourceId}
+
+
+
+
+
+
+
+
+ UPDATE linkis_ps_dm_datasource
+
+ published_version_id = #{versionId}
+
+
+ id = #{dataSourceId}
+
+
+
+
+ UPDATE linkis_ps_dm_datasource
+
+ version_id = #{versionId}
+
+
+ id = #{dataSourceId}
+
+
+
\ No newline at end of file
diff --git a/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/postgresql/DataSourceEnvMapper.xml b/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/postgresql/DataSourceEnvMapper.xml
new file mode 100644
index 0000000000..3c02c7dfed
--- /dev/null
+++ b/linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/main/resources/mapper/postgresql/DataSourceEnvMapper.xml
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ env_name, env_desc, datasource_type_id ,parameter, create_time,
+ create_user, modify_time, modify_user
+
+
+
+ id, env_name, env_desc, parameter, create_time,
+ create_user, modify_time, modify_user
+
+
+
+
+
+ INSERT INTO linkis_ps_dm_datasource_env(
+
+ ) VALUES(#{envName}, #{envDesc},#{dataSourceTypeId},
+ #{parameter},
+
+
+
+ now(),
+
+
+ #{createTime,jdbcType=TIMESTAMP},
+
+
+
+ #{createUser},
+
+
+
+ now(),
+
+
+ #{modifyTime,jdbcType=TIMESTAMP},
+
+
+ #{modifyUser})
+
+
+
+
+
+
+
+ DELETE FROM linkis_ps_dm_datasource_env WHERE id = #{id};
+
+
+
+ UPDATE linkis_ps_dm_datasource_env
+
+ env_name = #{envName},
+ env_desc = #{envDesc,jdbcType=VARCHAR},
+ parameter = #{parameter},
+
+
+
+ modify_time = now(),
+
+
+ modify_time = #{modifyTime,jdbcType=TIMESTAMP},
+
+
+ modify_user = #{modifyUser,jdbcType=VARCHAR}
+
+
+ id = #{id}
+
+
+
+
+
\ No newline at end of file
diff --git a/linkis-public-enhancements/linkis-jobhistory/src/main/resources/mapper/postgresql/JobHistoryMapper.xml b/linkis-public-enhancements/linkis-jobhistory/src/main/resources/mapper/postgresql/JobHistoryMapper.xml
index cd4c3e056c..30e4e85b34 100644
--- a/linkis-public-enhancements/linkis-jobhistory/src/main/resources/mapper/postgresql/JobHistoryMapper.xml
+++ b/linkis-public-enhancements/linkis-jobhistory/src/main/resources/mapper/postgresql/JobHistoryMapper.xml
@@ -133,7 +133,7 @@
and created_time >= #{startDate} AND created_time #{endDate}
and #{element}
- and labels like CONCAT('%"', #{userCreatorKey}, '":"%-', #{creator}, '%')
+ and labels like CONCAT('%"', #{userCreatorKey}::text, '":"%-', #{creator}::text, '%')
and id >= #{startId}
and instances = #{instances}
@@ -213,7 +213,7 @@
and created_time >= #{startDate} AND created_time #{endDate}
and #{element}
- and labels like CONCAT('%"', #{userCreatorKey}, '":"%-', #{creator}, '%')
+ and labels like CONCAT('%"', #{userCreatorKey}::text, '":"%-', #{creator}::text, '%')
diff --git a/linkis-public-enhancements/linkis-udf/linkis-udf-service/src/main/resources/mapper/postgresql/UDFDao.xml b/linkis-public-enhancements/linkis-udf/linkis-udf-service/src/main/resources/mapper/postgresql/UDFDao.xml
index f4e6eca73c..b32b421850 100644
--- a/linkis-public-enhancements/linkis-udf/linkis-udf-service/src/main/resources/mapper/postgresql/UDFDao.xml
+++ b/linkis-public-enhancements/linkis-udf/linkis-udf-service/src/main/resources/mapper/postgresql/UDFDao.xml
@@ -227,7 +227,7 @@
linkis_ps_udf_baseinfo b
on a.udf_id=b.id
where udf_type=0
- and b.path like CONCAT('%',#{arg1})
+ and b.path like CONCAT('%',#{arg1}::text)