diff --git a/sgzb-modules/sgzb-gen/pom.xml b/sgzb-modules/sgzb-gen/pom.xml index 71676ad6..89ceba04 100644 --- a/sgzb-modules/sgzb-gen/pom.xml +++ b/sgzb-modules/sgzb-gen/pom.xml @@ -59,6 +59,18 @@ com.mysql mysql-connector-j + + + + com.bonus.sgzb + sgzb-common-datasource + + + + + com.bonus.sgzb + sgzb-common-datascope + @@ -72,6 +84,13 @@ sgzb-common-swagger + + cn.hutool + hutool-all + 5.8.16 + compile + + diff --git a/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableColumnMapper.xml b/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableColumnMapper.xml index 8e84851e..3c206025 100644 --- a/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableColumnMapper.xml +++ b/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableColumnMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column - where table_id = #{tableId} order by sort @@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by ordinal_position - + insert into gen_table_column ( table_id, column_name, @@ -89,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - + update gen_table_column column_comment = #{columnComment}, diff --git a/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableMapper.xml b/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableMapper.xml index 26bccf92..e26097e3 100644 --- a/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableMapper.xml +++ b/sgzb-modules/sgzb-gen/src/main/resources/mapper/generator/GenTableMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + @@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table - @@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select table_name, table_comment, create_time, update_time from information_schema.tables where table_schema = (select database()) AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%' @@ -134,7 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by c.sort - + insert into gen_table ( table_name, table_comment, @@ -168,7 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - + update gen_table table_name = #{tableName},