diff --git a/mes/hd/nladmin-system/pom.xml b/mes/hd/nladmin-system/pom.xml
index 793e6bc3..99d69a25 100644
--- a/mes/hd/nladmin-system/pom.xml
+++ b/mes/hd/nladmin-system/pom.xml
@@ -253,6 +253,17 @@
mybatis-plus-generator
3.4.0
+
+
+ commons-configuration
+ commons-configuration
+ 1.9
+
+
+
+ org.springframework.boot
+ spring-boot-starter-freemarker
+
diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/ColumnInfo.java b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/ColumnInfo.java
new file mode 100644
index 00000000..cc23dd56
--- /dev/null
+++ b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/ColumnInfo.java
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.generator.domain;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+import org.nl.modules.generator.utils.GenUtil;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+/**
+ * 列的数据信息
+ * @author Zheng Jie
+ * @date 2019-01-02
+ */
+@Getter
+@Setter
+@Entity
+@NoArgsConstructor
+@Table(name = "code_column_config")
+public class ColumnInfo implements Serializable {
+
+ @Id
+ @Column(name = "column_id")
+ @ApiModelProperty(value = "ID", hidden = true)
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private Long id;
+
+ @ApiModelProperty(value = "表名")
+ private String tableName;
+
+ @ApiModelProperty(value = "数据库字段名称")
+ private String columnName;
+
+ @ApiModelProperty(value = "数据库字段类型")
+ private String columnType;
+
+ @ApiModelProperty(value = "数据库字段键类型")
+ private String keyType;
+
+ @ApiModelProperty(value = "字段额外的参数")
+ private String extra;
+
+ @ApiModelProperty(value = "数据库字段描述")
+ private String remark;
+
+ @ApiModelProperty(value = "是否必填")
+ private Boolean notNull;
+
+ @ApiModelProperty(value = "是否在列表显示")
+ private Boolean listShow;
+
+ @ApiModelProperty(value = "是否表单显示")
+ private Boolean formShow;
+
+ @ApiModelProperty(value = "表单类型")
+ private String formType;
+
+ @ApiModelProperty(value = "查询 1:模糊 2:精确")
+ private String queryType;
+
+ @ApiModelProperty(value = "字典名称")
+ private String dictName;
+
+ @ApiModelProperty(value = "日期注解")
+ private String dateAnnotation;
+
+ public ColumnInfo(String tableName, String columnName, Boolean notNull, String columnType, String remark, String keyType, String extra) {
+ this.tableName = tableName;
+ this.columnName = columnName;
+ this.columnType = columnType;
+ this.keyType = keyType;
+ this.extra = extra;
+ this.notNull = notNull;
+ if(GenUtil.PK.equalsIgnoreCase(keyType) && GenUtil.EXTRA.equalsIgnoreCase(extra)){
+ this.notNull = false;
+ }
+ this.remark = remark;
+ this.listShow = true;
+ this.formShow = true;
+ }
+}
diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/GenConfig.java b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/GenConfig.java
new file mode 100644
index 00000000..454b1e93
--- /dev/null
+++ b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/GenConfig.java
@@ -0,0 +1,79 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.generator.domain;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
+import javax.persistence.*;
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+
+/**
+ * 代码生成配置
+ * @author Zheng Jie
+ * @date 2019-01-03
+ */
+@Getter
+@Setter
+@Entity
+@NoArgsConstructor
+@Table(name = "code_gen_config")
+public class GenConfig implements Serializable {
+
+ public GenConfig(String tableName) {
+ this.tableName = tableName;
+ }
+
+ @Id
+ @Column(name = "config_id")
+ @ApiModelProperty(value = "ID", hidden = true)
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private Long id;
+
+ @NotBlank
+ @ApiModelProperty(value = "表名")
+ private String tableName;
+
+ @ApiModelProperty(value = "接口名称")
+ private String apiAlias;
+
+ @NotBlank
+ @ApiModelProperty(value = "包路径")
+ private String pack;
+
+ @NotBlank
+ @ApiModelProperty(value = "模块名")
+ private String moduleName;
+
+ @NotBlank
+ @ApiModelProperty(value = "前端文件路径")
+ private String path;
+
+ @ApiModelProperty(value = "前端文件路径")
+ private String apiPath;
+
+ @ApiModelProperty(value = "作者")
+ private String author;
+
+ @ApiModelProperty(value = "表前缀")
+ private String prefix;
+
+ @ApiModelProperty(value = "是否覆盖")
+ private Boolean cover = false;
+}
diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/vo/TableInfo.java b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/vo/TableInfo.java
new file mode 100644
index 00000000..ddf3388c
--- /dev/null
+++ b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/domain/vo/TableInfo.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.generator.domain.vo;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * 表的数据信息
+ * @author Zheng Jie
+ * @date 2019-01-02
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TableInfo {
+
+ /** 表名称 */
+ private Object tableName;
+
+ /** 创建日期 */
+ private Object createTime;
+
+ /** 数据库引擎 */
+ private Object engine;
+
+ /** 编码集 */
+ private Object coding;
+
+ /** 备注 */
+ private Object remark;
+
+
+}
diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/repository/ColumnInfoRepository.java b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/repository/ColumnInfoRepository.java
new file mode 100644
index 00000000..8af5fbb0
--- /dev/null
+++ b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/repository/ColumnInfoRepository.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.generator.repository;
+
+import org.nl.modules.generator.domain.ColumnInfo;
+import org.springframework.data.jpa.repository.JpaRepository;
+
+import java.util.List;
+
+/**
+ * @author Zheng Jie
+ * @date 2019-01-14
+ */
+public interface ColumnInfoRepository extends JpaRepository {
+
+ /**
+ * 查询表信息
+ * @param tableName 表格名
+ * @return 表信息
+ */
+ List findByTableNameOrderByIdAsc(String tableName);
+}
diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/repository/GenConfigRepository.java b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/repository/GenConfigRepository.java
new file mode 100644
index 00000000..c6afcef2
--- /dev/null
+++ b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/repository/GenConfigRepository.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.generator.repository;
+
+import org.nl.modules.generator.domain.GenConfig;
+import org.springframework.data.jpa.repository.JpaRepository;
+
+/**
+ * @author Zheng Jie
+ * @date 2019-01-14
+ */
+public interface GenConfigRepository extends JpaRepository {
+
+ /**
+ * 查询表配置
+ * @param tableName 表名
+ * @return /
+ */
+ GenConfig findByTableName(String tableName);
+}
diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/rest/GenConfigController.java b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/rest/GenConfigController.java
new file mode 100644
index 00000000..75ee5b51
--- /dev/null
+++ b/mes/hd/nladmin-system/src/main/java/org/nl/modules/generator/rest/GenConfigController.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.generator.rest;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.RequiredArgsConstructor;
+import org.nl.modules.generator.domain.GenConfig;
+import org.nl.modules.generator.service.GenConfigService;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @author Zheng Jie
+ * @date 2019-01-14
+ */
+@RestController
+@RequiredArgsConstructor
+@RequestMapping("/api/genConfig")
+@Api(tags = "系统:代码生成器配置管理")
+public class GenConfigController {
+
+ private final GenConfigService genConfigService;
+
+ @ApiOperation("查询")
+ @GetMapping(value = "/{tableName}")
+ public ResponseEntity