Эх сурвалжийг харах

优化数据建模列表、删除接口代码

xuezizhuo 1 жил өмнө
parent
commit
fe9e7713a0

+ 51 - 0
zkqy-admin/src/main/java/com/zkqy/web/controller/CommonTableOperationController.java

@@ -0,0 +1,51 @@
+package com.zkqy.web.controller;
+
+import com.zkqy.common.constant.DataSourceType;
+import com.zkqy.common.core.controller.BaseController;
+import com.zkqy.common.core.domain.AjaxResult;
+import com.zkqy.common.core.page.TableDataInfo;
+import com.zkqy.datamodeling.domain.vo.CommonTableOperationVO;
+import com.zkqy.datamodeling.service.IMysqlTableOperationService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+/**
+ * 表相关操作
+ */
+@RestController
+@RequestMapping("/tableOperation")
+public class CommonTableOperationController extends BaseController {
+
+    @Resource
+    private IMysqlTableOperationService mysqlTableOperationService;
+
+    /**
+     * 查询列表
+     */
+    @GetMapping("/list")
+    public TableDataInfo list(CommonTableOperationVO vo){
+        startPage();
+        if (vo.getDatabaseType().equals(DataSourceType.MYSQL.getDataSourceName())) {
+            return getDataTable(mysqlTableOperationService.selectTableList(vo));
+        }
+        return getDataTable(602,"无法解析数据源信息!");
+    }
+
+    /**
+     * 删除数据表
+     */
+    @PostMapping("/removeTable")
+    public AjaxResult removeTable(@RequestBody CommonTableOperationVO vo) throws Exception {
+        if (vo.getDatabaseType().equals(DataSourceType.MYSQL.getDataSourceName())) {
+            if (mysqlTableOperationService.selectTableDataCount(vo.getTableName()) > 0) {
+                return AjaxResult.warn("表中有数据,不能删除!");
+            }
+            mysqlTableOperationService.dropTable(vo);
+            return AjaxResult.success();
+        }
+        return AjaxResult.error(602, "无法解析数据源信息!");
+    }
+
+
+}

+ 0 - 22
zkqy-admin/src/main/resources/banner.txt

@@ -1,24 +1,2 @@
 Application Version: ${zkqy.version}
 Spring Boot Version: ${spring-boot.version}
-////////////////////////////////////////////////////////////////////
-//                          _ooOoo_                               //
-//                         o8888888o                              //
-//                         88" . "88                              //
-//                         (| ^_^ |)                              //
-//                         O\  =  /O                              //
-//                      ____/`---'\____                           //
-//                    .'  \\|     |//  `.                         //
-//                   /  \\|||  :  |||//  \                        //
-//                  /  _||||| -:- |||||-  \                       //
-//                  |   | \\\  -  /// |   |                       //
-//                  | \_|  ''\---/''  |   |                       //
-//                  \  .-\__  `-`  ___/-. /                       //
-//                ___`. .'  /--.--\  `. . ___                     //
-//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
-//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
-//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
-//      ========`-.____`-.___\_____/___.-`____.-'========         //
-//                           `=---='                              //
-//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
-//             佛祖保佑       永不宕机      永无BUG               //
-////////////////////////////////////////////////////////////////////

+ 3 - 0
zkqy-common/src/main/java/com/zkqy/common/constant/DataSourceType.java

@@ -1,5 +1,8 @@
 package com.zkqy.common.constant;
 
+/**
+ * 数据源类型
+ */
 public enum DataSourceType {
 
     MYSQL("mysql"),

+ 14 - 0
zkqy-common/src/main/java/com/zkqy/common/core/controller/BaseController.java

@@ -1,6 +1,7 @@
 package com.zkqy.common.core.controller;
 
 import java.beans.PropertyEditorSupport;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 import org.slf4j.Logger;
@@ -90,6 +91,19 @@ public class BaseController
         return rspData;
     }
 
+    /**
+     * 失败响应请求分页数据
+     */
+    protected TableDataInfo getDataTable(int code, String msg)
+    {
+        TableDataInfo rspData = new TableDataInfo();
+        rspData.setCode(code);
+        rspData.setMsg(msg);
+        rspData.setRows(new ArrayList<>());
+        rspData.setTotal(new PageInfo(new ArrayList()).getTotal());
+        return rspData;
+    }
+
     /**
      * 返回成功
      */

+ 73 - 0
zkqy-datamodeling/src/main/java/com/zkqy/datamodeling/domain/vo/CommonTableOperationVO.java

@@ -0,0 +1,73 @@
+package com.zkqy.datamodeling.domain.vo;
+
+/**
+ * 表操作VO
+ */
+public class CommonTableOperationVO {
+
+    /** 数据库名称 */
+    private String databaseName;
+
+    /** 数据表名称 */
+    private String tableName;
+
+    /** 数据源类型 */
+    private String databaseType;
+
+    /** 用户名称 */
+    private String username;
+
+    /** 表描述 */
+    private String tableComment;
+
+    public String getDatabaseName() {
+        return databaseName;
+    }
+
+    public void setDatabaseName(String databaseName) {
+        this.databaseName = databaseName;
+    }
+
+    public String getTableName() {
+        return tableName;
+    }
+
+    public void setTableName(String tableName) {
+        this.tableName = tableName;
+    }
+
+    public String getDatabaseType() {
+        return databaseType;
+    }
+
+    public void setDatabaseType(String databaseType) {
+        this.databaseType = databaseType;
+    }
+
+    public String getUsername() {
+        return username;
+    }
+
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    public String getTableComment() {
+        return tableComment;
+    }
+
+    public void setTableComment(String tableComment) {
+        this.tableComment = tableComment;
+    }
+
+    @Override
+    public String toString() {
+        return "CommonTableOperationVO{" +
+                "databaseName='" + databaseName + '\'' +
+                ", tableName='" + tableName + '\'' +
+                ", databaseType='" + databaseType + '\'' +
+                ", username='" + username + '\'' +
+                ", tableComment='" + tableComment + '\'' +
+                '}';
+    }
+}

+ 8 - 11
zkqy-datamodeling/src/main/java/com/zkqy/datamodeling/mapper/MysqlTableOperationMapper.java

@@ -1,8 +1,8 @@
 package com.zkqy.datamodeling.mapper;
 
 import com.zkqy.datamodeling.domain.TableInfo;
+import com.zkqy.datamodeling.domain.vo.CommonTableOperationVO;
 import com.zkqy.datamodeling.domain.vo.TableInfoVO;
-import org.apache.ibatis.annotations.MapKey;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
@@ -15,19 +15,17 @@ public interface MysqlTableOperationMapper {
 
     /**
      * 查询当前库下所有表
-     * @param databaseName 数据库
-     * @param map 条件
+     * @param vo
      * @return
      */
-    List<TableInfoVO> selectTableList(@Param("databaseName") String databaseName, @Param("map") Map<String, Object> map);
+    List<TableInfoVO> selectTableList(CommonTableOperationVO vo);
 
     /**
      * 查询数据库表是否存在
-     * @param dataBaseName 数据库
-     * @param tableName 表名
+     * @param vo
      * @return
      */
-    int TableExistenceOrNot(@Param("dataBaseName") String dataBaseName, @Param("tableName") String tableName);
+    int selectTableExistenceOrNot(CommonTableOperationVO vo);
 
     /**
      * 新建表
@@ -39,7 +37,7 @@ public interface MysqlTableOperationMapper {
     void createTable(@Param("tableName") String tableName, @Param("tableComment") String tableComment, @Param("filedList") List<String> filedList, @Param("databases") String databases);
 
     /**
-     * 查询表数据条数
+     * 查询表数据条数
      * @param tableName 表名
      * @return
      */
@@ -47,10 +45,9 @@ public interface MysqlTableOperationMapper {
 
     /**
      * 删除表
-     * @param dataBaseName 数据库
-     * @param tableName 表名
+     * @param vo
      */
-    void dropTable(@Param("dataBaseName") String dataBaseName,@Param("tableName") String tableName);
+    void dropTable(CommonTableOperationVO vo);
 
     /**
      * 查询表结构

+ 34 - 0
zkqy-datamodeling/src/main/java/com/zkqy/datamodeling/service/IMysqlTableOperationService.java

@@ -0,0 +1,34 @@
+package com.zkqy.datamodeling.service;
+
+import com.zkqy.datamodeling.domain.vo.CommonTableOperationVO;
+import com.zkqy.datamodeling.domain.vo.TableInfoVO;
+
+import java.util.List;
+
+/**
+ * mysql
+ */
+public interface IMysqlTableOperationService {
+
+    /**
+     * 查询当前库下所有表
+     * @param vo
+     * @return
+     */
+    List<TableInfoVO> selectTableList(CommonTableOperationVO vo);
+
+    /**
+     * 查询表数据总条数
+     * @param tableName 表名
+     * @return
+     */
+    int selectTableDataCount(String tableName);
+
+    /**
+     * 删除表
+     * @param vo
+     */
+    void dropTable(CommonTableOperationVO vo) throws Exception;
+
+
+}

+ 37 - 0
zkqy-datamodeling/src/main/java/com/zkqy/datamodeling/service/impl/MysqlTableOperationServiceImpl.java

@@ -0,0 +1,37 @@
+package com.zkqy.datamodeling.service.impl;
+
+import com.zkqy.datamodeling.domain.vo.CommonTableOperationVO;
+import com.zkqy.datamodeling.domain.vo.TableInfoVO;
+import com.zkqy.datamodeling.mapper.MysqlTableOperationMapper;
+import com.zkqy.datamodeling.service.IMysqlTableOperationService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Service
+public class MysqlTableOperationServiceImpl implements IMysqlTableOperationService {
+
+    @Resource
+    private MysqlTableOperationMapper mysqlTableOperationMapper;
+
+    @Override
+    public List<TableInfoVO> selectTableList(CommonTableOperationVO vo) {
+        return mysqlTableOperationMapper.selectTableList(vo);
+    }
+
+    @Override
+    public int selectTableDataCount(String tableName) {
+        return mysqlTableOperationMapper.selectTableDataCount(tableName);
+    }
+
+    @Override
+    public void dropTable(CommonTableOperationVO vo) throws Exception {
+        try {
+            mysqlTableOperationMapper.dropTable(vo);
+        }catch (Exception e){
+            throw new Exception("删除数据表失败");
+        }
+
+    }
+}

+ 4 - 4
zkqy-datamodeling/src/main/resources/mapper/datamodeling/MysqlTableOperationMapper.xml

@@ -23,12 +23,12 @@
             information_schema.TABLES
         WHERE
             table_schema = #{databaseName}
-        <if test="map.tableName != null and map.tableName != ''">and table_name like concat('%', #{map.tableName}, '%')</if>
-        <if test="map.tableComment != null and map.tableComment !=''">and table_comment like concat('%', #{map.tableComment}, '%')</if>
+        <if test="tableName != null and tableName != ''">and table_name like concat('%', #{tableName}, '%')</if>
+        <if test="tableComment != null and tableComment !=''">and table_comment like concat('%', #{tableComment}, '%')</if>
         order by createTime DESC
     </select>
 
-    <select id="TableExistenceOrNot" resultType="int">
+    <select id="selectTableExistenceOrNot" resultType="int">
         SELECT count(1) FROM information_schema.TABLES t, information_schema.SCHEMATA n WHERE t.table_name = #{tableName} AND n.SCHEMA_NAME = #{dataBaseName};
     </select>
 
@@ -46,7 +46,7 @@
     </select>
 
     <delete id="dropTable">
-        DROP TABLE IF EXISTS `${dataBaseName}`.`${tableName}`;
+        DROP TABLE IF EXISTS `${databaseName}`.`${tableName}`;
     </delete>
 
     <select id="tableInfo" resultMap="mysqlTableInfoResult">

+ 0 - 25
zkqy-datamodeling/src/main/resources/mapper/datamodeling/TableInfoMapper.xml

@@ -58,12 +58,6 @@
         order by createTime DESC
     </select>
 
-<!--    <select id="selectDataCount" resultType="int">-->
-<!--        SELECT table_rows FROM information_schema.tables-->
-<!--        WHERE TABLE_SCHEMA = #{dataBaseName}-->
-<!--          and table_name = #{tableName}-->
-<!--    </select>-->
-
     <select id="selectDataCount" resultType="int">
         select count(1) from ${tableName}
     </select>
@@ -72,21 +66,6 @@
         DROP TABLE IF EXISTS `${dataBaseName}`.`${tableName}`;
     </delete>
 
-<!--    <update id="updateMysqlTable">-->
-<!--        START TRANSACTION;-->
-<!--        DROP TABLE `${dataBaseName}`.`${tableName}`;-->
-<!--        IF NOT EXISTS (  CREATE TABLE `${dataBaseName}`.`${tableName}`-->
-<!--        (-->
-<!--        <foreach collection="filedList" item="filed" separator=",">-->
-<!--            ${filed}-->
-<!--        </foreach>-->
-<!--        )COMMENT #{tableComment};-->
-<!--         ) THEN ROLLBACK;-->
-<!--        END IF;-->
-
-<!--        COMMIT;-->
-<!--    </update>-->
-
     <update id="updateMysqlTable">
         DROP TABLE `${dataBaseName}`.`${tableName}`;
         CREATE TABLE `${dataBaseName}`.`${tableName}`
@@ -232,10 +211,6 @@
         CREATE SCHEMA ${databaseName}
     </update>
 
-<!--    <update id="useDmDataBase">-->
-<!--        set schema ${dataBaseName};-->
-<!--    </update>-->
-
     <update id="createDmTable">
 
         create table ${databaseName}.${tableName}

+ 0 - 1006
zkqy-datamodeling/src/main/resources/sql/sql.json

@@ -1,1006 +0,0 @@
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "m_f",
-  "tableComment": "动态表单以及流程 关系表",
-  "field": [
-    {
-      "fieldName": "m_f_id",
-      "fieldType": "int",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "主键",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "f_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "动态表单主键",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "m_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "流程节点id",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "del_flag",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "逻辑删除\n",
-      "fieldLength": 1
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "drag_form",
-  "tableComment": "动态表单",
-  "field": [
-    {
-      "fieldName": "f_id",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "表单主键",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "sql_key",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "sql编号",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "df_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表单名称\n",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "df_nickname",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表单别名\n",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "df_vue_template",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表单vue模版",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "df_html_template",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表单html模版",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "df_form_sql",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表单sql",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "df_node_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "节点ID",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "df_database",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "数据源名称\n",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "df_table_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "绑定表名称",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "df_flie_path",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "源文件存放地址",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "df_notes",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表单描述",
-      "fieldLength": 200
-    },
-    {
-      "fieldName": "del_flag",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "逻辑删除",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "create_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "create_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建人ID",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "update_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新者ID",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "update_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "spare",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "备用列",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "spare1",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "备用列",
-      "fieldLength": 255
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "drag_table_condition",
-  "tableComment": "动态表格条件",
-  "field": [
-    {
-      "fieldName": "tc_id",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "编号",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "t_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "动态表格编号",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "condition_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "条件名称",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_field",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "条件字段",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_notes",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "条件描述",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_type",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "条件类型",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_default_value",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "默认值",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "sort",
-      "fieldType": "int",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "排序",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "condition_table_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表名称(下拉框关联)/ 字典类型",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_table_field_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表字段名称(下拉框关联)",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_table_field_key",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表字段key(下拉框关联)唯一标识",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "condition_datasource",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "数据来源(0:字典;1:表字段)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "component_type",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "组件类型(时间组件、btn等type类型参照element官方api中的类型 )\n ",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "component_size",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "组件大小",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "component_icon",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "组件图标",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "is_hidden",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "是否隐藏(0 显示; 1 隐藏)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "del_flag",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "逻辑删除(0 否; 1 是)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "create_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建人",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "create_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "update_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "修改人",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "update_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "修改时间",
-      "fieldLength": null
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "drag_table_form",
-  "tableComment": "动态表格表单关联表",
-  "field": [
-    {
-      "fieldName": "id",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "编号",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "dt_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "动态表格id",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "df_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "动态表单id",
-      "fieldLength": null
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "drag_table",
-  "tableComment": "动态表格",
-  "field": [
-    {
-      "fieldName": "t_id",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "表格主键",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "dt_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表格名称(中文)",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "dt_nickname",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表格别名",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "table_key",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "table编号(路由)",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "sql_key",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "sql编号",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "dt_table_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "绑定表名称",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "dt_notes",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表格描述",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "dt_column_name",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "列字段以及标题名称",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "time_format",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "时间格式",
-      "fieldLength": 500
-    },
-    {
-      "fieldName": "spare",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "备用列",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "spare1",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "备用列",
-      "fieldLength": 255
-    },
-    {
-      "fieldName": "del_flag",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "逻辑删除",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "create_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建人",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "create_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "update_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "修改人",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "update_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "修改时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "is_selection",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "是否显示列表复选框(0:显示;1;不显示)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "echo_data",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "回显数据(前端回显数据使用)",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "menu_id",
-      "fieldType": "number",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "菜单编号",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "primary_key",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "当前表单的唯一标识,用来修改删除使用",
-      "fieldLength": 50
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "table_sql",
-  "tableComment": "table 联合查询sql储存表",
-  "field": [
-    {
-      "fieldName": "t_id",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "table_sql",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表查询语句\n",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "table_condition",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表查询字段",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "table_alias",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表别名",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "sql_key",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "sql编号,绑定tableList",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "table_export_field",
-      "fieldType": "clob",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "导出字段名称以及列名",
-      "fieldLength": 65535
-    },
-    {
-      "fieldName": "create_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建人",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "create_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "update_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新人",
-      "fieldLength": 50
-    },
-    {
-      "fieldName": "update_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "del_flag",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "逻辑删除",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "is_asc",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "排序规则(0:true 1:false)",
-      "fieldLength": 10
-    },
-    {
-      "fieldName": "order_by_column",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "排序字段",
-      "fieldLength": 255
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "sys_dict_data",
-  "tableComment": "字典数据表",
-  "field": [
-    {
-      "fieldName": "dict_code",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "字典编码",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "dict_sort",
-      "fieldType": "int",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "字典排序",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "dict_label",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "字典标签",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "dict_value",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "字典键值",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "dict_type",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "字典类型",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "css_class",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "样式属性(其他样式扩展)",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "list_class",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "表格回显样式",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "is_default",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "是否默认(Y是 N否)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "status",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "状态(0正常 1停用)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "create_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建者",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "create_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "update_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新者",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "update_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "remark",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "备注",
-      "fieldLength": 500
-    }
-  ]
-}
----------
-{
-  "databaseType": "oracle",
-  "databaseName": "orcl",
-  "username":"OTEST",
-  "tableName": "sys_dict_type",
-  "tableComment": "字典类型表",
-  "field": [
-    {
-      "fieldName": "dict_id",
-      "fieldType": "number",
-      "isNull": true,
-      "isPrimary": true,
-      "isAuto": true,
-      "fieldDescription": "字典主键",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "dict_name",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "字典名称",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "dict_type",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "字典类型",
-      "fieldLength": 100
-    },
-    {
-      "fieldName": "status",
-      "fieldType": "char(10)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "状态(0正常 1停用)",
-      "fieldLength": 1
-    },
-    {
-      "fieldName": "create_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建者",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "create_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "创建时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "update_by",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新者",
-      "fieldLength": 64
-    },
-    {
-      "fieldName": "update_time",
-      "fieldType": "date",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "更新时间",
-      "fieldLength": null
-    },
-    {
-      "fieldName": "remark",
-      "fieldType": "varchar(255)",
-      "isNull": false,
-      "isPrimary": false,
-      "isAuto": false,
-      "fieldDescription": "备注",
-      "fieldLength": 500
-    }
-  ]
-}