diff --git a/muyu-modules/muyu-etl/muyu-etl-service/src/main/java/com/muyu/etl/mapper/StructureMapper.java b/muyu-modules/muyu-etl/muyu-etl-service/src/main/java/com/muyu/etl/mapper/StructureMapper.java index aa257e2..749da03 100644 --- a/muyu-modules/muyu-etl/muyu-etl-service/src/main/java/com/muyu/etl/mapper/StructureMapper.java +++ b/muyu-modules/muyu-etl/muyu-etl-service/src/main/java/com/muyu/etl/mapper/StructureMapper.java @@ -3,6 +3,8 @@ package com.muyu.etl.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.muyu.etl.domain.Structure; +import java.util.List; + /** * 结构 StructureMapper * @@ -17,6 +19,12 @@ public interface StructureMapper extends BaseMapper { public Structure selectStructureById(Long id); + /** + * 查询结构列表 + */ + public List selectStructureList(Structure structure); + + /** * 新增结构 */ diff --git a/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/BasicConfigInfoMapper.xml b/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/BasicConfigInfoMapper.xml index fa272dd..a0b5235 100644 --- a/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/BasicConfigInfoMapper.xml +++ b/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/BasicConfigInfoMapper.xml @@ -4,8 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -22,19 +21,10 @@ - select id, data_resource_name,username,password, - data_sources_system_name, - host, port, database_type, - database_name, - init_link_num, - max_link_num, max_wait_time, - max_wait_times,connection_params, - remark from basic_config_info + select id, data_resource_name,username,password, data_sources_system_name, host, port, database_type, database_name, init_link_num, max_link_num, max_wait_time, max_wait_times,connection_params, remark from basic_config_info - and data_resource_name like concat('%', #{dataResourceName}, '%') diff --git a/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/StructureMapper.xml b/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/StructureMapper.xml index 87bf194..60cdc3f 100644 --- a/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/StructureMapper.xml +++ b/muyu-modules/muyu-etl/muyu-etl-service/src/main/resources/mapper/StructureMapper.xml @@ -2,5 +2,130 @@ + + + + + + + + + + + + + + + + + + + + + + select id, table_id, column_name, column_remark, is_primary, column_type, java_type, column_length, column_decimals, is_null, default_value, is_dictionary, dictionary_table, remark, create_by, create_time, update_by, update_time from structure + + + + + + + + + insert into structure + + table_id, + column_name, + column_remark, + is_primary, + column_type, + java_type, + column_length, + column_decimals, + is_null, + default_value, + is_dictionary, + dictionary_table, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{tableId}, + #{columnName}, + #{columnRemark}, + #{isPrimary}, + #{columnType}, + #{javaType}, + #{columnLength}, + #{columnDecimals}, + #{isNull}, + #{defaultValue}, + #{isDictionary}, + #{dictionaryTable}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update structure + + table_id = #{tableId}, + column_name = #{columnName}, + column_remark = #{columnRemark}, + is_primary = #{isPrimary}, + column_type = #{columnType}, + java_type = #{javaType}, + column_length = #{columnLength}, + column_decimals = #{columnDecimals}, + is_null = #{isNull}, + default_value = #{defaultValue}, + is_dictionary = #{isDictionary}, + dictionary_table = #{dictionaryTable}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from structure where id = #{id} + + + + delete from structure where id in + + #{id} + +