Browse Source

提交后台管理接口、表管理、表字段管理、表图层管理、表和表字段关联

LAPTOP-BJJ3IV5R\SIWEI 8 months ago
parent
commit
f3ae487ded
24 changed files with 2296 additions and 0 deletions
  1. 98 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableController.java
  2. 99 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableFiledController.java
  3. 98 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableFiledRelationController.java
  4. 105 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableLayerController.java
  5. 152 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTable.java
  6. 166 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTableFiled.java
  7. 147 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTableFiledRelation.java
  8. 164 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTableLayer.java
  9. 61 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableFiledMapper.java
  10. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableFiledRelationMapper.java
  11. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableLayerMapper.java
  12. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableMapper.java
  13. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableFiledRelationService.java
  14. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableFiledService.java
  15. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableLayerService.java
  16. 62 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableService.java
  17. 91 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableFiledRelationServiceImpl.java
  18. 98 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableFiledServiceImpl.java
  19. 91 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableLayerServiceImpl.java
  20. 98 0
      onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableServiceImpl.java
  21. 102 0
      onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableFiledMapper.xml
  22. 93 0
      onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableFiledRelationMapper.xml
  23. 102 0
      onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableLayerMapper.xml
  24. 97 0
      onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableMapper.xml

+ 98 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableController.java

@@ -0,0 +1,98 @@
+package com.onemap.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.onemap.common.core.utils.poi.ExcelUtil;
+import com.onemap.common.core.web.controller.BaseController;
+import com.onemap.common.core.web.domain.AjaxResult;
+import com.onemap.common.core.web.page.TableDataInfo;
+import com.onemap.common.log.annotation.Log;
+import com.onemap.common.log.enums.BusinessType;
+import com.onemap.common.security.annotation.RequiresPermissions;
+import com.onemap.system.domain.TTable;
+import com.onemap.system.service.ITTableService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@RestController
+@RequestMapping("/table")
+public class TTableController extends BaseController {
+    @Autowired
+    private ITTableService tTableService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:table:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TTable tTable) {
+        startPage();
+        List<TTable> list = tTableService.selectTTableList(tTable);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:table:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TTable tTable) {
+        List<TTable> list = tTableService.selectTTableList(tTable);
+        ExcelUtil<TTable> util = new ExcelUtil<TTable>(TTable.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @RequiresPermissions("@ss.hasPermi('system:table:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id) {
+        return success(tTableService.selectTTableById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:table:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TTable tTable) {
+        return toAjax(tTableService.insertTTable(tTable));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:table:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TTable tTable) {
+        return toAjax(tTableService.updateTTable(tTable));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:table:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids) {
+        return toAjax(tTableService.deleteTTableByIds(ids));
+    }
+}

+ 99 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableFiledController.java

@@ -0,0 +1,99 @@
+package com.onemap.system.controller;
+
+import javax.servlet.http.HttpServletResponse;
+
+import com.onemap.common.core.utils.poi.ExcelUtil;
+import com.onemap.common.core.web.controller.BaseController;
+import com.onemap.common.core.web.domain.AjaxResult;
+import com.onemap.common.core.web.page.TableDataInfo;
+import com.onemap.common.log.annotation.Log;
+import com.onemap.common.log.enums.BusinessType;
+import com.onemap.common.security.annotation.RequiresPermissions;
+import com.onemap.system.domain.TTableFiled;
+import com.onemap.system.service.ITTableFiledService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@RestController
+@RequestMapping("/filed")
+public class TTableFiledController extends BaseController {
+    @Autowired
+    private ITTableFiledService tTableFiledService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:filed:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TTableFiled tTableFiled) {
+        startPage();
+        List<TTableFiled> list = tTableFiledService.selectTTableFiledList(tTableFiled);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:filed:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TTableFiled tTableFiled) {
+        List<TTableFiled> list = tTableFiledService.selectTTableFiledList(tTableFiled);
+        ExcelUtil<TTableFiled> util = new ExcelUtil<TTableFiled>(TTableFiled.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @RequiresPermissions("@ss.hasPermi('system:filed:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id) {
+        return success(tTableFiledService.selectTTableFiledById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:filed:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TTableFiled tTableFiled) {
+        return toAjax(tTableFiledService.insertTTableFiled(tTableFiled));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:filed:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TTableFiled tTableFiled) {
+        return toAjax(tTableFiledService.updateTTableFiled(tTableFiled));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:filed:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids) {
+        return toAjax(tTableFiledService.deleteTTableFiledByIds(ids));
+    }
+}

+ 98 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableFiledRelationController.java

@@ -0,0 +1,98 @@
+package com.onemap.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.onemap.common.core.utils.poi.ExcelUtil;
+import com.onemap.common.core.web.controller.BaseController;
+import com.onemap.common.core.web.domain.AjaxResult;
+import com.onemap.common.core.web.page.TableDataInfo;
+import com.onemap.common.log.annotation.Log;
+import com.onemap.common.log.enums.BusinessType;
+import com.onemap.common.security.annotation.RequiresPermissions;
+import com.onemap.system.domain.TTableFiledRelation;
+import com.onemap.system.service.ITTableFiledRelationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@RestController
+@RequestMapping("/relation")
+public class TTableFiledRelationController extends BaseController {
+    @Autowired
+    private ITTableFiledRelationService tTableFiledRelationService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:relation:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TTableFiledRelation tTableFiledRelation) {
+        startPage();
+        List<TTableFiledRelation> list = tTableFiledRelationService.selectTTableFiledRelationList(tTableFiledRelation);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:relation:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TTableFiledRelation tTableFiledRelation) {
+        List<TTableFiledRelation> list = tTableFiledRelationService.selectTTableFiledRelationList(tTableFiledRelation);
+        ExcelUtil<TTableFiledRelation> util = new ExcelUtil<TTableFiledRelation>(TTableFiledRelation.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @RequiresPermissions("@ss.hasPermi('system:relation:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id) {
+        return success(tTableFiledRelationService.selectTTableFiledRelationById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:relation:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TTableFiledRelation tTableFiledRelation) {
+        return toAjax(tTableFiledRelationService.insertTTableFiledRelation(tTableFiledRelation));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:relation:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TTableFiledRelation tTableFiledRelation) {
+        return toAjax(tTableFiledRelationService.updateTTableFiledRelation(tTableFiledRelation));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:relation:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids) {
+        return toAjax(tTableFiledRelationService.deleteTTableFiledRelationByIds(ids));
+    }
+}

+ 105 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TTableLayerController.java

@@ -0,0 +1,105 @@
+package com.onemap.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.onemap.common.core.utils.poi.ExcelUtil;
+import com.onemap.common.core.web.controller.BaseController;
+import com.onemap.common.core.web.domain.AjaxResult;
+import com.onemap.common.core.web.page.TableDataInfo;
+import com.onemap.common.log.annotation.Log;
+import com.onemap.common.log.enums.BusinessType;
+import com.onemap.common.security.annotation.RequiresPermissions;
+import com.onemap.system.domain.TTableLayer;
+import com.onemap.system.service.ITTableLayerService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 【请填写功能名称】Controller
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@RestController
+@RequestMapping("/layer")
+public class TTableLayerController extends BaseController
+{
+    @Autowired
+    private ITTableLayerService tTableLayerService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:layer:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TTableLayer tTableLayer)
+    {
+        startPage();
+        List<TTableLayer> list = tTableLayerService.selectTTableLayerList(tTableLayer);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @RequiresPermissions("@ss.hasPermi('system:layer:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TTableLayer tTableLayer)
+    {
+        List<TTableLayer> list = tTableLayerService.selectTTableLayerList(tTableLayer);
+        ExcelUtil<TTableLayer> util = new ExcelUtil<TTableLayer>(TTableLayer.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @RequiresPermissions("@ss.hasPermi('system:layer:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(tTableLayerService.selectTTableLayerById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:layer:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TTableLayer tTableLayer)
+    {
+        return toAjax(tTableLayerService.insertTTableLayer(tTableLayer));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:layer:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TTableLayer tTableLayer)
+    {
+        return toAjax(tTableLayerService.updateTTableLayer(tTableLayer));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @RequiresPermissions("@ss.hasPermi('system:layer:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(tTableLayerService.deleteTTableLayerByIds(ids));
+    }
+}

+ 152 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTable.java

@@ -0,0 +1,152 @@
+package com.onemap.system.domain;
+
+import java.util.Date;
+
+import com.onemap.common.core.annotation.Excel;
+import com.onemap.common.core.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 【请填写功能名称】对象 t_table
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public class TTable extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private String id;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String tableName;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String tableDescribe;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Integer tableType;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Integer isExist;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Date deleteTime;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String createUserId;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String deleteUserId;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String version;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setTableName(String tableName) 
+    {
+        this.tableName = tableName;
+    }
+
+    public String getTableName() 
+    {
+        return tableName;
+    }
+    public void setTableDescribe(String tableDescribe) 
+    {
+        this.tableDescribe = tableDescribe;
+    }
+
+    public String getTableDescribe() 
+    {
+        return tableDescribe;
+    }
+    public void setTableType(Integer tableType) 
+    {
+        this.tableType = tableType;
+    }
+
+    public Integer getTableType() 
+    {
+        return tableType;
+    }
+    public void setIsExist(Integer isExist) 
+    {
+        this.isExist = isExist;
+    }
+
+    public Integer getIsExist() 
+    {
+        return isExist;
+    }
+    public void setDeleteTime(Date deleteTime) 
+    {
+        this.deleteTime = deleteTime;
+    }
+
+    public Date getDeleteTime() 
+    {
+        return deleteTime;
+    }
+    public void setCreateUserId(String createUserId) 
+    {
+        this.createUserId = createUserId;
+    }
+
+    public String getCreateUserId() 
+    {
+        return createUserId;
+    }
+    public void setDeleteUserId(String deleteUserId) 
+    {
+        this.deleteUserId = deleteUserId;
+    }
+
+    public String getDeleteUserId() 
+    {
+        return deleteUserId;
+    }
+    public void setVersion(String version) 
+    {
+        this.version = version;
+    }
+
+    public String getVersion() 
+    {
+        return version;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("tableName", getTableName())
+            .append("tableDescribe", getTableDescribe())
+            .append("tableType", getTableType())
+            .append("isExist", getIsExist())
+            .append("createTime", getCreateTime())
+            .append("deleteTime", getDeleteTime())
+            .append("createUserId", getCreateUserId())
+            .append("deleteUserId", getDeleteUserId())
+            .append("version", getVersion())
+            .toString();
+    }
+}

+ 166 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTableFiled.java

@@ -0,0 +1,166 @@
+package com.onemap.system.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.onemap.common.core.annotation.Excel;
+import com.onemap.common.core.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 【请填写功能名称】对象 t_table_filed
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public class TTableFiled extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private String id;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedName;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedZh;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedDescribe;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedType;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedTypeLen;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedDict;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Date deleteTime;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String createUserId;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String deleteUserId;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setFiledName(String filedName) 
+    {
+        this.filedName = filedName;
+    }
+
+    public String getFiledName() 
+    {
+        return filedName;
+    }
+    public void setFiledZh(String filedZh) 
+    {
+        this.filedZh = filedZh;
+    }
+
+    public String getFiledZh() 
+    {
+        return filedZh;
+    }
+    public void setFiledDescribe(String filedDescribe) 
+    {
+        this.filedDescribe = filedDescribe;
+    }
+
+    public String getFiledDescribe() 
+    {
+        return filedDescribe;
+    }
+    public void setFiledType(String filedType) 
+    {
+        this.filedType = filedType;
+    }
+
+    public String getFiledType() 
+    {
+        return filedType;
+    }
+    public void setFiledTypeLen(String filedTypeLen) 
+    {
+        this.filedTypeLen = filedTypeLen;
+    }
+
+    public String getFiledTypeLen() 
+    {
+        return filedTypeLen;
+    }
+    public void setFiledDict(String filedDict) 
+    {
+        this.filedDict = filedDict;
+    }
+
+    public String getFiledDict() 
+    {
+        return filedDict;
+    }
+    public void setDeleteTime(Date deleteTime) 
+    {
+        this.deleteTime = deleteTime;
+    }
+
+    public Date getDeleteTime() 
+    {
+        return deleteTime;
+    }
+    public void setCreateUserId(String createUserId) 
+    {
+        this.createUserId = createUserId;
+    }
+
+    public String getCreateUserId() 
+    {
+        return createUserId;
+    }
+    public void setDeleteUserId(String deleteUserId) 
+    {
+        this.deleteUserId = deleteUserId;
+    }
+
+    public String getDeleteUserId() 
+    {
+        return deleteUserId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("filedName", getFiledName())
+            .append("filedZh", getFiledZh())
+            .append("filedDescribe", getFiledDescribe())
+            .append("filedType", getFiledType())
+            .append("filedTypeLen", getFiledTypeLen())
+            .append("filedDict", getFiledDict())
+            .append("createTime", getCreateTime())
+            .append("deleteTime", getDeleteTime())
+            .append("createUserId", getCreateUserId())
+            .append("deleteUserId", getDeleteUserId())
+            .toString();
+    }
+}

+ 147 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTableFiledRelation.java

@@ -0,0 +1,147 @@
+package com.onemap.system.domain;
+
+import com.onemap.common.core.annotation.Excel;
+import com.onemap.common.core.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 【请填写功能名称】对象 t_table_filed_relation
+ *
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public class TTableFiledRelation extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * $column.columnComment
+     */
+    private String id;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String tableId;
+    private String tableName;
+
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String filedId;
+    private String filedName;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Integer isRequited;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Integer isDisplay;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long sort;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String createUserId;
+
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setTableId(String tableId) {
+        this.tableId = tableId;
+    }
+
+    public String getTableId() {
+        return tableId;
+    }
+
+    public void setFiledId(String filedId) {
+        this.filedId = filedId;
+    }
+
+    public String getFiledId() {
+        return filedId;
+    }
+
+    public void setIsRequited(Integer isRequited) {
+        this.isRequited = isRequited;
+    }
+
+    public Integer getIsRequited() {
+        return isRequited;
+    }
+
+    public void setIsDisplay(Integer isDisplay) {
+        this.isDisplay = isDisplay;
+    }
+
+    public Integer getIsDisplay() {
+        return isDisplay;
+    }
+
+    public void setSort(Long sort) {
+        this.sort = sort;
+    }
+
+    public Long getSort() {
+        return sort;
+    }
+
+    public void setCreateUserId(String createUserId) {
+        this.createUserId = createUserId;
+    }
+
+    public String getCreateUserId() {
+        return createUserId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("tableId", getTableId())
+                .append("filedId", getFiledId())
+                .append("isRequited", getIsRequited())
+                .append("isDisplay", getIsDisplay())
+                .append("sort", getSort())
+                .append("createTime", getCreateTime())
+                .append("createUserId", getCreateUserId())
+                .toString();
+    }
+
+    public String getTableName() {
+        return tableName;
+    }
+
+    public void setTableName(String tableName) {
+        this.tableName = tableName;
+    }
+
+    public String getFiledName() {
+        return filedName;
+    }
+
+    public void setFiledName(String filedName) {
+        this.filedName = filedName;
+    }
+}

+ 164 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TTableLayer.java

@@ -0,0 +1,164 @@
+package com.onemap.system.domain;
+
+import com.onemap.common.core.annotation.Excel;
+import com.onemap.common.core.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 【请填写功能名称】对象 t_table_layer
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public class TTableLayer extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private String id;
+
+    /** 父级ID */
+    @Excel(name = "父级ID")
+    private String pid;
+
+    /** 名称 */
+    @Excel(name = "名称")
+    private String name;
+
+    /** 图层ID */
+    @Excel(name = "图层ID")
+    private String layerId;
+
+    /** 数据库表id */
+    @Excel(name = "数据库表id")
+    private String tableId;
+
+    /** 默认显示选中 0默认 */
+    @Excel(name = "默认显示选中 0默认")
+    private String defaultType;
+
+    /** 创建人 */
+    @Excel(name = "创建人")
+    private String createUserId;
+
+    /** 排序 */
+    @Excel(name = "排序")
+    private Long sort;
+
+    /** 分组字段,参数为3个用逗号分隔例如【a,b,c】。a用于分组,b用于汇总,c是空间数据 */
+    @Excel(name = "分组字段,参数为3个用逗号分隔例如【a,b,c】。a用于分组,b用于汇总,c是空间数据")
+    private String groupcolumn;
+
+    /** 0 前端显示 1可选择但前端不显示 */
+    @Excel(name = "0 前端显示 1可选择但前端不显示")
+    private String stateType;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setPid(String pid) 
+    {
+        this.pid = pid;
+    }
+
+    public String getPid() 
+    {
+        return pid;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setLayerId(String layerId) 
+    {
+        this.layerId = layerId;
+    }
+
+    public String getLayerId() 
+    {
+        return layerId;
+    }
+    public void setTableId(String tableId) 
+    {
+        this.tableId = tableId;
+    }
+
+    public String getTableId() 
+    {
+        return tableId;
+    }
+    public void setDefaultType(String defaultType) 
+    {
+        this.defaultType = defaultType;
+    }
+
+    public String getDefaultType() 
+    {
+        return defaultType;
+    }
+    public void setCreateUserId(String createUserId) 
+    {
+        this.createUserId = createUserId;
+    }
+
+    public String getCreateUserId() 
+    {
+        return createUserId;
+    }
+    public void setSort(Long sort) 
+    {
+        this.sort = sort;
+    }
+
+    public Long getSort() 
+    {
+        return sort;
+    }
+    public void setGroupcolumn(String groupcolumn) 
+    {
+        this.groupcolumn = groupcolumn;
+    }
+
+    public String getGroupcolumn() 
+    {
+        return groupcolumn;
+    }
+    public void setStateType(String stateType) 
+    {
+        this.stateType = stateType;
+    }
+
+    public String getStateType() 
+    {
+        return stateType;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("pid", getPid())
+            .append("name", getName())
+            .append("layerId", getLayerId())
+            .append("tableId", getTableId())
+            .append("defaultType", getDefaultType())
+            .append("createTime", getCreateTime())
+            .append("createUserId", getCreateUserId())
+            .append("sort", getSort())
+            .append("groupcolumn", getGroupcolumn())
+            .append("stateType", getStateType())
+            .toString();
+    }
+}

+ 61 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableFiledMapper.java

@@ -0,0 +1,61 @@
+package com.onemap.system.mapper;
+
+import com.onemap.system.domain.TTableFiled;
+
+import java.util.List;
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface TTableFiledMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTableFiled selectTTableFiledById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTableFiled> selectTTableFiledList(TTableFiled tTableFiled);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTableFiled(TTableFiled tTableFiled);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTableFiled(TTableFiled tTableFiled);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableFiledById(String id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTTableFiledByIds(String[] ids);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableFiledRelationMapper.java

@@ -0,0 +1,62 @@
+package com.onemap.system.mapper;
+
+import com.onemap.system.domain.TTableFiledRelation;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface TTableFiledRelationMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTableFiledRelation selectTTableFiledRelationById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTableFiledRelation> selectTTableFiledRelationList(TTableFiledRelation tTableFiledRelation);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTableFiledRelation(TTableFiledRelation tTableFiledRelation);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTableFiledRelation(TTableFiledRelation tTableFiledRelation);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableFiledRelationById(String id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTTableFiledRelationByIds(String[] ids);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableLayerMapper.java

@@ -0,0 +1,62 @@
+package com.onemap.system.mapper;
+
+import com.onemap.system.domain.TTableLayer;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface TTableLayerMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTableLayer selectTTableLayerById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableLayer 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTableLayer> selectTTableLayerList(TTableLayer tTableLayer);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableLayer 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTableLayer(TTableLayer tTableLayer);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableLayer 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTableLayer(TTableLayer tTableLayer);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableLayerById(String id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTTableLayerByIds(String[] ids);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TTableMapper.java

@@ -0,0 +1,62 @@
+package com.onemap.system.mapper;
+
+import com.onemap.system.domain.TTable;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface TTableMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTable selectTTableById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTable> selectTTableList(TTable tTable);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTable(TTable tTable);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTable(TTable tTable);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableById(String id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTTableByIds(String[] ids);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableFiledRelationService.java

@@ -0,0 +1,62 @@
+package com.onemap.system.service;
+
+import com.onemap.system.domain.TTableFiledRelation;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface ITTableFiledRelationService 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTableFiledRelation selectTTableFiledRelationById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTableFiledRelation> selectTTableFiledRelationList(TTableFiledRelation tTableFiledRelation);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTableFiledRelation(TTableFiledRelation tTableFiledRelation);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTableFiledRelation(TTableFiledRelation tTableFiledRelation);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteTTableFiledRelationByIds(String[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableFiledRelationById(String id);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableFiledService.java

@@ -0,0 +1,62 @@
+package com.onemap.system.service;
+
+import com.onemap.system.domain.TTableFiled;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface ITTableFiledService 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTableFiled selectTTableFiledById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTableFiled> selectTTableFiledList(TTableFiled tTableFiled);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTableFiled(TTableFiled tTableFiled);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTableFiled(TTableFiled tTableFiled);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteTTableFiledByIds(String[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableFiledById(String id);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableLayerService.java

@@ -0,0 +1,62 @@
+package com.onemap.system.service;
+
+import com.onemap.system.domain.TTableLayer;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface ITTableLayerService 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTableLayer selectTTableLayerById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableLayer 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTableLayer> selectTTableLayerList(TTableLayer tTableLayer);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableLayer 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTableLayer(TTableLayer tTableLayer);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableLayer 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTableLayer(TTableLayer tTableLayer);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteTTableLayerByIds(String[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableLayerById(String id);
+}

+ 62 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITTableService.java

@@ -0,0 +1,62 @@
+package com.onemap.system.service;
+
+import com.onemap.system.domain.TTable;
+
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+public interface ITTableService 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public TTable selectTTableById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<TTable> selectTTableList(TTable tTable);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertTTable(TTable tTable);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateTTable(TTable tTable);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteTTableByIds(String[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteTTableById(String id);
+}

+ 91 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableFiledRelationServiceImpl.java

@@ -0,0 +1,91 @@
+package com.onemap.system.service.impl;
+
+import java.util.List;
+
+import com.onemap.common.core.utils.DateUtils;
+import com.onemap.common.core.utils.StringUtils;
+import com.onemap.system.domain.TTableFiledRelation;
+import com.onemap.system.mapper.TTableFiledRelationMapper;
+import com.onemap.system.service.ITTableFiledRelationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@Service
+public class TTableFiledRelationServiceImpl implements ITTableFiledRelationService {
+    @Autowired
+    private TTableFiledRelationMapper tTableFiledRelationMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public TTableFiledRelation selectTTableFiledRelationById(String id) {
+        return tTableFiledRelationMapper.selectTTableFiledRelationById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<TTableFiledRelation> selectTTableFiledRelationList(TTableFiledRelation tTableFiledRelation) {
+        return tTableFiledRelationMapper.selectTTableFiledRelationList(tTableFiledRelation);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertTTableFiledRelation(TTableFiledRelation tTableFiledRelation) {
+        tTableFiledRelation.setId(StringUtils.getUUID());
+        tTableFiledRelation.setCreateTime(DateUtils.getNowDate());
+        return tTableFiledRelationMapper.insertTTableFiledRelation(tTableFiledRelation);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param tTableFiledRelation 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateTTableFiledRelation(TTableFiledRelation tTableFiledRelation) {
+        return tTableFiledRelationMapper.updateTTableFiledRelation(tTableFiledRelation);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableFiledRelationByIds(String[] ids) {
+        return tTableFiledRelationMapper.deleteTTableFiledRelationByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableFiledRelationById(String id) {
+        return tTableFiledRelationMapper.deleteTTableFiledRelationById(id);
+    }
+}

+ 98 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableFiledServiceImpl.java

@@ -0,0 +1,98 @@
+package com.onemap.system.service.impl;
+
+import java.util.List;
+
+import com.onemap.common.core.utils.DateUtils;
+import com.onemap.common.core.utils.StringUtils;
+import com.onemap.system.domain.TTableFiled;
+import com.onemap.system.mapper.TTableFiledMapper;
+import com.onemap.system.service.ITTableFiledService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@Service
+public class TTableFiledServiceImpl implements ITTableFiledService
+{
+    @Autowired
+    private TTableFiledMapper tTableFiledMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public TTableFiled selectTTableFiledById(String id)
+    {
+        return tTableFiledMapper.selectTTableFiledById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<TTableFiled> selectTTableFiledList(TTableFiled tTableFiled)
+    {
+        return tTableFiledMapper.selectTTableFiledList(tTableFiled);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertTTableFiled(TTableFiled tTableFiled)
+    {
+        tTableFiled.setId(StringUtils.getUUID());
+        tTableFiled.setCreateTime(DateUtils.getNowDate());
+        return tTableFiledMapper.insertTTableFiled(tTableFiled);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTableFiled 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateTTableFiled(TTableFiled tTableFiled)
+    {
+        return tTableFiledMapper.updateTTableFiled(tTableFiled);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableFiledByIds(String[] ids)
+    {
+        return tTableFiledMapper.deleteTTableFiledByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableFiledById(String id)
+    {
+        return tTableFiledMapper.deleteTTableFiledById(id);
+    }
+}

+ 91 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableLayerServiceImpl.java

@@ -0,0 +1,91 @@
+package com.onemap.system.service.impl;
+
+import java.util.List;
+
+import com.onemap.common.core.utils.DateUtils;
+import com.onemap.common.core.utils.StringUtils;
+import com.onemap.system.domain.TTableLayer;
+import com.onemap.system.mapper.TTableLayerMapper;
+import com.onemap.system.service.ITTableLayerService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@Service
+public class TTableLayerServiceImpl implements ITTableLayerService {
+    @Autowired
+    private TTableLayerMapper tTableLayerMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public TTableLayer selectTTableLayerById(String id) {
+        return tTableLayerMapper.selectTTableLayerById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param tTableLayer 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<TTableLayer> selectTTableLayerList(TTableLayer tTableLayer) {
+        return tTableLayerMapper.selectTTableLayerList(tTableLayer);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param tTableLayer 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertTTableLayer(TTableLayer tTableLayer) {
+        tTableLayer.setId(StringUtils.getUUID());
+        tTableLayer.setCreateTime(DateUtils.getNowDate());
+        return tTableLayerMapper.insertTTableLayer(tTableLayer);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param tTableLayer 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateTTableLayer(TTableLayer tTableLayer) {
+        return tTableLayerMapper.updateTTableLayer(tTableLayer);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableLayerByIds(String[] ids) {
+        return tTableLayerMapper.deleteTTableLayerByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableLayerById(String id) {
+        return tTableLayerMapper.deleteTTableLayerById(id);
+    }
+}

+ 98 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TTableServiceImpl.java

@@ -0,0 +1,98 @@
+package com.onemap.system.service.impl;
+
+import java.util.List;
+
+import com.onemap.common.core.utils.DateUtils;
+import com.onemap.common.core.utils.StringUtils;
+import com.onemap.system.domain.TTable;
+import com.onemap.system.mapper.TTableMapper;
+import com.onemap.system.service.ITTableService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-08-06
+ */
+@Service
+public class TTableServiceImpl implements ITTableService
+{
+    @Autowired
+    private TTableMapper tTableMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public TTable selectTTableById(String id)
+    {
+        return tTableMapper.selectTTableById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<TTable> selectTTableList(TTable tTable)
+    {
+        return tTableMapper.selectTTableList(tTable);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertTTable(TTable tTable)
+    {
+        tTable.setId(StringUtils.getUUID());
+        tTable.setCreateTime(DateUtils.getNowDate());
+        return tTableMapper.insertTTable(tTable);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param tTable 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateTTable(TTable tTable)
+    {
+        return tTableMapper.updateTTable(tTable);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableByIds(String[] ids)
+    {
+        return tTableMapper.deleteTTableByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTTableById(String id)
+    {
+        return tTableMapper.deleteTTableById(id);
+    }
+}

+ 102 - 0
onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableFiledMapper.xml

@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.onemap.system.mapper.TTableFiledMapper">
+    
+    <resultMap type="TTableFiled" id="TTableFiledResult">
+        <result property="id"    column="id"    />
+        <result property="filedName"    column="filed_name"    />
+        <result property="filedZh"    column="filed_zh"    />
+        <result property="filedDescribe"    column="filed_describe"    />
+        <result property="filedType"    column="filed_type"    />
+        <result property="filedTypeLen"    column="filed_type_len"    />
+        <result property="filedDict"    column="filed_dict"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="deleteTime"    column="delete_time"    />
+        <result property="createUserId"    column="create_user_id"    />
+        <result property="deleteUserId"    column="delete_user_id"    />
+    </resultMap>
+
+    <sql id="selectTTableFiledVo">
+        select id, filed_name, filed_zh, filed_describe, filed_type, filed_type_len, filed_dict, create_time, delete_time, create_user_id, delete_user_id from t_table_filed
+    </sql>
+
+    <select id="selectTTableFiledList" parameterType="TTableFiled" resultMap="TTableFiledResult">
+        <include refid="selectTTableFiledVo"/>
+        <where>  
+            <if test="filedName != null  and filedName != ''"> and filed_name like concat('%', #{filedName}, '%')</if>
+            <if test="filedZh != null  and filedZh != ''"> and filed_zh = #{filedZh}</if>
+            <if test="filedDescribe != null  and filedDescribe != ''"> and filed_describe = #{filedDescribe}</if>
+            <if test="filedType != null  and filedType != ''"> and filed_type = #{filedType}</if>
+            <if test="filedTypeLen != null  and filedTypeLen != ''"> and filed_type_len = #{filedTypeLen}</if>
+            <if test="filedDict != null  and filedDict != ''"> and filed_dict = #{filedDict}</if>
+            <if test="deleteTime != null "> and delete_time = #{deleteTime}</if>
+            <if test="createUserId != null  and createUserId != ''"> and create_user_id = #{createUserId}</if>
+            <if test="deleteUserId != null  and deleteUserId != ''"> and delete_user_id = #{deleteUserId}</if>
+        </where>
+    </select>
+    
+    <select id="selectTTableFiledById" parameterType="String" resultMap="TTableFiledResult">
+        <include refid="selectTTableFiledVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTTableFiled" parameterType="TTableFiled">
+        insert into t_table_filed
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="filedName != null and filedName != ''">filed_name,</if>
+            <if test="filedZh != null and filedZh != ''">filed_zh,</if>
+            <if test="filedDescribe != null">filed_describe,</if>
+            <if test="filedType != null and filedType != ''">filed_type,</if>
+            <if test="filedTypeLen != null">filed_type_len,</if>
+            <if test="filedDict != null">filed_dict,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="deleteTime != null">delete_time,</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id,</if>
+            <if test="deleteUserId != null">delete_user_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="filedName != null and filedName != ''">#{filedName},</if>
+            <if test="filedZh != null and filedZh != ''">#{filedZh},</if>
+            <if test="filedDescribe != null">#{filedDescribe},</if>
+            <if test="filedType != null and filedType != ''">#{filedType},</if>
+            <if test="filedTypeLen != null">#{filedTypeLen},</if>
+            <if test="filedDict != null">#{filedDict},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="deleteTime != null">#{deleteTime},</if>
+            <if test="createUserId != null and createUserId != ''">#{createUserId},</if>
+            <if test="deleteUserId != null">#{deleteUserId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTTableFiled" parameterType="TTableFiled">
+        update t_table_filed
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="filedName != null and filedName != ''">filed_name = #{filedName},</if>
+            <if test="filedZh != null and filedZh != ''">filed_zh = #{filedZh},</if>
+            <if test="filedDescribe != null">filed_describe = #{filedDescribe},</if>
+            <if test="filedType != null and filedType != ''">filed_type = #{filedType},</if>
+            <if test="filedTypeLen != null">filed_type_len = #{filedTypeLen},</if>
+            <if test="filedDict != null">filed_dict = #{filedDict},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="deleteTime != null">delete_time = #{deleteTime},</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id = #{createUserId},</if>
+            <if test="deleteUserId != null">delete_user_id = #{deleteUserId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTTableFiledById" parameterType="String">
+        delete from t_table_filed where id = #{id}
+    </delete>
+
+    <delete id="deleteTTableFiledByIds" parameterType="String">
+        delete from t_table_filed where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 93 - 0
onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableFiledRelationMapper.xml

@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.onemap.system.mapper.TTableFiledRelationMapper">
+    
+    <resultMap type="TTableFiledRelation" id="TTableFiledRelationResult">
+        <result property="id"    column="id"    />
+        <result property="tableId"    column="table_id"    />
+        <result property="filedId"    column="filed_id"    />
+        <result property="tableName"    column="table_name"    />
+        <result property="filedName"    column="filed_name"    />
+        <result property="isRequited"    column="is_requited"    />
+        <result property="isDisplay"    column="is_display"    />
+        <result property="sort"    column="sort"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createUserId"    column="create_user_id"    />
+    </resultMap>
+
+    <sql id="selectTTableFiledRelationVo">
+        select d1.id, d1.table_id, d1.filed_id, d1.is_requited, d1.is_display, d1.sort,
+               d1.create_time, d1.create_user_id,d2.table_name,d3.filed_name
+        from t_table_filed_relation d1
+        left join t_table d2 on d1.table_id = d2.id
+        left join t_table_filed d3 on d1.filed_id = d3.id
+    </sql>
+
+    <select id="selectTTableFiledRelationList" parameterType="TTableFiledRelation" resultMap="TTableFiledRelationResult">
+        <include refid="selectTTableFiledRelationVo"/>
+        <where>  
+            <if test="tableId != null  and tableId != ''"> and table_id = #{tableId}</if>
+            <if test="filedId != null  and filedId != ''"> and filed_id = #{filedId}</if>
+            <if test="isRequited != null "> and is_requited = #{isRequited}</if>
+            <if test="isDisplay != null "> and is_display = #{isDisplay}</if>
+            <if test="sort != null "> and sort = #{sort}</if>
+            <if test="createUserId != null  and createUserId != ''"> and create_user_id = #{createUserId}</if>
+        </where>
+    </select>
+    
+    <select id="selectTTableFiledRelationById" parameterType="String" resultMap="TTableFiledRelationResult">
+        <include refid="selectTTableFiledRelationVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTTableFiledRelation" parameterType="TTableFiledRelation">
+        insert into t_table_filed_relation
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="tableId != null and tableId != ''">table_id,</if>
+            <if test="filedId != null and filedId != ''">filed_id,</if>
+            <if test="isRequited != null">is_requited,</if>
+            <if test="isDisplay != null">is_display,</if>
+            <if test="sort != null">sort,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="tableId != null and tableId != ''">#{tableId},</if>
+            <if test="filedId != null and filedId != ''">#{filedId},</if>
+            <if test="isRequited != null">#{isRequited},</if>
+            <if test="isDisplay != null">#{isDisplay},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="createUserId != null and createUserId != ''">#{createUserId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTTableFiledRelation" parameterType="TTableFiledRelation">
+        update t_table_filed_relation
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="tableId != null and tableId != ''">table_id = #{tableId},</if>
+            <if test="filedId != null and filedId != ''">filed_id = #{filedId},</if>
+            <if test="isRequited != null">is_requited = #{isRequited},</if>
+            <if test="isDisplay != null">is_display = #{isDisplay},</if>
+            <if test="sort != null">sort = #{sort},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id = #{createUserId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTTableFiledRelationById" parameterType="String">
+        delete from t_table_filed_relation where id = #{id}
+    </delete>
+
+    <delete id="deleteTTableFiledRelationByIds" parameterType="String">
+        delete from t_table_filed_relation where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 102 - 0
onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableLayerMapper.xml

@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.onemap.system.mapper.TTableLayerMapper">
+    
+    <resultMap type="TTableLayer" id="TTableLayerResult">
+        <result property="id"    column="id"    />
+        <result property="pid"    column="pid"    />
+        <result property="name"    column="name"    />
+        <result property="layerId"    column="layer_id"    />
+        <result property="tableId"    column="table_id"    />
+        <result property="defaultType"    column="default_type"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createUserId"    column="create_user_id"    />
+        <result property="sort"    column="sort"    />
+        <result property="groupcolumn"    column="groupcolumn"    />
+        <result property="stateType"    column="state_type"    />
+    </resultMap>
+
+    <sql id="selectTTableLayerVo">
+        select id, pid, name, layer_id, table_id, default_type, create_time, create_user_id, sort, groupcolumn, state_type from t_table_layer
+    </sql>
+
+    <select id="selectTTableLayerList" parameterType="TTableLayer" resultMap="TTableLayerResult">
+        <include refid="selectTTableLayerVo"/>
+        <where>  
+            <if test="pid != null  and pid != ''"> and pid = #{pid}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="layerId != null  and layerId != ''"> and layer_id = #{layerId}</if>
+            <if test="tableId != null  and tableId != ''"> and table_id = #{tableId}</if>
+            <if test="defaultType != null  and defaultType != ''"> and default_type = #{defaultType}</if>
+            <if test="createUserId != null  and createUserId != ''"> and create_user_id = #{createUserId}</if>
+            <if test="sort != null "> and sort = #{sort}</if>
+            <if test="groupcolumn != null  and groupcolumn != ''"> and groupcolumn = #{groupcolumn}</if>
+            <if test="stateType != null  and stateType != ''"> and state_type = #{stateType}</if>
+        </where>
+    </select>
+    
+    <select id="selectTTableLayerById" parameterType="String" resultMap="TTableLayerResult">
+        <include refid="selectTTableLayerVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTTableLayer" parameterType="TTableLayer">
+        insert into t_table_layer
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="pid != null">pid,</if>
+            <if test="name != null and name != ''">name,</if>
+            <if test="layerId != null">layer_id,</if>
+            <if test="tableId != null and tableId != ''">table_id,</if>
+            <if test="defaultType != null">default_type,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id,</if>
+            <if test="sort != null">sort,</if>
+            <if test="groupcolumn != null">groupcolumn,</if>
+            <if test="stateType != null">state_type,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="pid != null">#{pid},</if>
+            <if test="name != null and name != ''">#{name},</if>
+            <if test="layerId != null">#{layerId},</if>
+            <if test="tableId != null and tableId != ''">#{tableId},</if>
+            <if test="defaultType != null">#{defaultType},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="createUserId != null and createUserId != ''">#{createUserId},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="groupcolumn != null">#{groupcolumn},</if>
+            <if test="stateType != null">#{stateType},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTTableLayer" parameterType="TTableLayer">
+        update t_table_layer
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="pid != null">pid = #{pid},</if>
+            <if test="name != null and name != ''">name = #{name},</if>
+            <if test="layerId != null">layer_id = #{layerId},</if>
+            <if test="tableId != null and tableId != ''">table_id = #{tableId},</if>
+            <if test="defaultType != null">default_type = #{defaultType},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id = #{createUserId},</if>
+            <if test="sort != null">sort = #{sort},</if>
+            <if test="groupcolumn != null">groupcolumn = #{groupcolumn},</if>
+            <if test="stateType != null">state_type = #{stateType},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTTableLayerById" parameterType="String">
+        delete from t_table_layer where id = #{id}
+    </delete>
+
+    <delete id="deleteTTableLayerByIds" parameterType="String">
+        delete from t_table_layer where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 97 - 0
onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableMapper.xml

@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.onemap.system.mapper.TTableMapper">
+    
+    <resultMap type="TTable" id="TTableResult">
+        <result property="id"    column="id"    />
+        <result property="tableName"    column="table_name"    />
+        <result property="tableDescribe"    column="table_describe"    />
+        <result property="tableType"    column="table_type"    />
+        <result property="isExist"    column="is_exist"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="deleteTime"    column="delete_time"    />
+        <result property="createUserId"    column="create_user_id"    />
+        <result property="deleteUserId"    column="delete_user_id"    />
+        <result property="version"    column="version"    />
+    </resultMap>
+
+    <sql id="selectTTableVo">
+        select id, table_name, table_describe, table_type, is_exist, create_time, delete_time, create_user_id, delete_user_id, version from t_table
+    </sql>
+
+    <select id="selectTTableList" parameterType="TTable" resultMap="TTableResult">
+        <include refid="selectTTableVo"/>
+        <where>  
+            <if test="tableName != null  and tableName != ''"> and table_name like concat('%', #{tableName}, '%')</if>
+            <if test="tableDescribe != null  and tableDescribe != ''"> and table_describe = #{tableDescribe}</if>
+            <if test="tableType != null "> and table_type = #{tableType}</if>
+            <if test="isExist != null "> and is_exist = #{isExist}</if>
+            <if test="deleteTime != null "> and delete_time = #{deleteTime}</if>
+            <if test="createUserId != null  and createUserId != ''"> and create_user_id = #{createUserId}</if>
+            <if test="deleteUserId != null  and deleteUserId != ''"> and delete_user_id = #{deleteUserId}</if>
+            <if test="version != null  and version != ''"> and version = #{version}</if>
+        </where>
+    </select>
+    
+    <select id="selectTTableById" parameterType="String" resultMap="TTableResult">
+        <include refid="selectTTableVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTTable" parameterType="TTable">
+        insert into t_table
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="tableName != null and tableName != ''">table_name,</if>
+            <if test="tableDescribe != null">table_describe,</if>
+            <if test="tableType != null">table_type,</if>
+            <if test="isExist != null">is_exist,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="deleteTime != null">delete_time,</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id,</if>
+            <if test="deleteUserId != null">delete_user_id,</if>
+            <if test="version != null and version != ''">version,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="tableName != null and tableName != ''">#{tableName},</if>
+            <if test="tableDescribe != null">#{tableDescribe},</if>
+            <if test="tableType != null">#{tableType},</if>
+            <if test="isExist != null">#{isExist},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="deleteTime != null">#{deleteTime},</if>
+            <if test="createUserId != null and createUserId != ''">#{createUserId},</if>
+            <if test="deleteUserId != null">#{deleteUserId},</if>
+            <if test="version != null and version != ''">#{version},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTTable" parameterType="TTable">
+        update t_table
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="tableName != null and tableName != ''">table_name = #{tableName},</if>
+            <if test="tableDescribe != null">table_describe = #{tableDescribe},</if>
+            <if test="tableType != null">table_type = #{tableType},</if>
+            <if test="isExist != null">is_exist = #{isExist},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="deleteTime != null">delete_time = #{deleteTime},</if>
+            <if test="createUserId != null and createUserId != ''">create_user_id = #{createUserId},</if>
+            <if test="deleteUserId != null">delete_user_id = #{deleteUserId},</if>
+            <if test="version != null and version != ''">version = #{version},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTTableById" parameterType="String">
+        delete from t_table where id = #{id}
+    </delete>
+
+    <delete id="deleteTTableByIds" parameterType="String">
+        delete from t_table where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>