Sfoglia il codice sorgente

构建实体类及实体类关系

twzydn20000928 2 anni fa
parent
commit
87f6ab7e01
30 ha cambiato i file con 2604 aggiunte e 0 eliminazioni
  1. 114 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/controller/EntityClassController.java
  2. 104 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/controller/EntityClassRelationController.java
  3. 83 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/domain/EntityClass.java
  4. 58 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/domain/EntityClassRelation.java
  5. 66 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/mapper/EntityClassMapper.java
  6. 61 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/mapper/EntityClassRelationMapper.java
  7. 61 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/IEntityClassRelationService.java
  8. 65 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/IEntityClassService.java
  9. 96 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/impl/EntityClassRelationServiceImpl.java
  10. 103 0
      kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/impl/EntityClassServiceImpl.java
  11. 127 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/controller/BuildEntityRelationController.java
  12. 104 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/controller/TBuildFlowController.java
  13. 104 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/controller/TCheckPiontController.java
  14. 125 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/domain/BuildEntityRelation.java
  15. 83 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/domain/TBuildFlow.java
  16. 69 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/domain/TCheckPiont.java
  17. 68 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/mapper/BuildEntityRelationMapper.java
  18. 61 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/mapper/TBuildFlowMapper.java
  19. 61 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/mapper/TCheckPiontMapper.java
  20. 68 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/service/IBuildEntityRelationService.java
  21. 61 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/service/ITBuildFlowService.java
  22. 61 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/service/ITCheckPiontService.java
  23. 137 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/service/impl/BuildEntityRelationServiceImpl.java
  24. 96 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/service/impl/TBuildFlowServiceImpl.java
  25. 96 0
      kgraph-graph/src/main/java/com/kgraph/graph/suport/service/impl/TCheckPiontServiceImpl.java
  26. 86 0
      kgraph-graph/src/main/resources/mapper/neo4j/EntityClassMapper.xml
  27. 110 0
      kgraph-graph/src/main/resources/mapper/neo4j/EntityClassRelationMapper.xml
  28. 117 0
      kgraph-graph/src/main/resources/mapper/suport/BuildEntityRelationMapper.xml
  29. 82 0
      kgraph-graph/src/main/resources/mapper/suport/TBuildFlowMapper.xml
  30. 77 0
      kgraph-graph/src/main/resources/mapper/suport/TCheckPiontMapper.xml

+ 114 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/controller/EntityClassController.java

@@ -0,0 +1,114 @@
+package com.kgraph.graph.neo4j.controller;
+
+import java.util.List;
+import java.util.Map;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+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 com.kgraph.common.annotation.Log;;
+import com.kgraph.common.core.controller.BaseController;;
+import com.kgraph.common.core.domain.AjaxResult;;
+import com.kgraph.common.enums.BusinessType;;
+import com.kgraph.graph.neo4j.domain.EntityClass;
+import com.kgraph.graph.neo4j.service.IEntityClassService;
+import com.kgraph.common.utils.poi.ExcelUtil;;
+import com.kgraph.common.core.page.TableDataInfo;;
+
+/**
+ * 实体类Controller
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+@RestController
+@RequestMapping("/neo4j/class")
+public class EntityClassController extends BaseController
+{
+    @Autowired
+    private IEntityClassService entityClassService;
+
+    /**
+     * 查询实体类列表
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(EntityClass entityClass)
+    {
+        startPage();
+        List<EntityClass> list = entityClassService.selectEntityClassList(entityClass);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出实体类列表
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class:export')")
+    @Log(title = "实体类", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, EntityClass entityClass)
+    {
+        List<EntityClass> list = entityClassService.selectEntityClassList(entityClass);
+        ExcelUtil<EntityClass> util = new ExcelUtil<EntityClass>(EntityClass.class);
+        util.exportExcel(response, list, "实体类数据");
+    }
+
+    /**
+     * 获取实体类详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(entityClassService.selectEntityClassById(id));
+    }
+
+    /**
+     * 新增实体类
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class:add')")
+    @Log(title = "实体类", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody EntityClass entityClass)
+    {
+        return toAjax(entityClassService.insertEntityClass(entityClass));
+    }
+
+    /**
+     * 修改实体类
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class:edit')")
+    @Log(title = "实体类", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody EntityClass entityClass)
+    {
+        return toAjax(entityClassService.updateEntityClass(entityClass));
+    }
+
+    /**
+     * 删除实体类
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class:remove')")
+    @Log(title = "实体类", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(entityClassService.deleteEntityClassByIds(ids));
+    }
+
+    /**
+     * 查询实体类列表
+     */
+    @GetMapping("/getOption")
+    public AjaxResult getOption()
+    {
+        return success(entityClassService.getOption());
+    }
+}

+ 104 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/controller/EntityClassRelationController.java

@@ -0,0 +1,104 @@
+package com.kgraph.graph.neo4j.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+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 com.kgraph.common.annotation.Log;;
+import com.kgraph.common.core.controller.BaseController;;
+import com.kgraph.common.core.domain.AjaxResult;;
+import com.kgraph.common.enums.BusinessType;;
+import com.kgraph.graph.neo4j.domain.EntityClassRelation;
+import com.kgraph.graph.neo4j.service.IEntityClassRelationService;
+import com.kgraph.common.utils.poi.ExcelUtil;;
+import com.kgraph.common.core.page.TableDataInfo;;
+
+/**
+ * 实体类关系Controller
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+@RestController
+@RequestMapping("/neo4j/class_relation")
+public class EntityClassRelationController extends BaseController
+{
+    @Autowired
+    private IEntityClassRelationService entityClassRelationService;
+
+    /**
+     * 查询实体类关系列表
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class_relation:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(EntityClassRelation entityClassRelation)
+    {
+        startPage();
+        List<EntityClassRelation> list = entityClassRelationService.selectEntityClassRelationList(entityClassRelation);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出实体类关系列表
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class_relation:export')")
+    @Log(title = "实体类关系", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, EntityClassRelation entityClassRelation)
+    {
+        List<EntityClassRelation> list = entityClassRelationService.selectEntityClassRelationList(entityClassRelation);
+        ExcelUtil<EntityClassRelation> util = new ExcelUtil<EntityClassRelation>(EntityClassRelation.class);
+        util.exportExcel(response, list, "实体类关系数据");
+    }
+
+    /**
+     * 获取实体类关系详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class_relation:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(entityClassRelationService.selectEntityClassRelationById(id));
+    }
+
+    /**
+     * 新增实体类关系
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class_relation:add')")
+    @Log(title = "实体类关系", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody EntityClassRelation entityClassRelation)
+    {
+        return toAjax(entityClassRelationService.insertEntityClassRelation(entityClassRelation));
+    }
+
+    /**
+     * 修改实体类关系
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class_relation:edit')")
+    @Log(title = "实体类关系", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody EntityClassRelation entityClassRelation)
+    {
+        return toAjax(entityClassRelationService.updateEntityClassRelation(entityClassRelation));
+    }
+
+    /**
+     * 删除实体类关系
+     */
+    @PreAuthorize("@ss.hasPermi('neo4j:class_relation:remove')")
+    @Log(title = "实体类关系", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(entityClassRelationService.deleteEntityClassRelationByIds(ids));
+    }
+}

+ 83 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/domain/EntityClass.java

@@ -0,0 +1,83 @@
+package com.kgraph.graph.neo4j.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.kgraph.common.annotation.Excel;
+import com.kgraph.common.core.domain.BaseEntity;;
+
+/**
+ * 实体类对象 entity_class
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+public class EntityClass extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 实体类ID */
+    private Long id;
+
+    /** 实体类名称 */
+    @Excel(name = "实体类名称")
+    private String name;
+
+    /** 实体类描述 */
+    @Excel(name = "实体类描述")
+    private String desc;
+
+    /** 实体类背景颜色 */
+    @Excel(name = "实体类背景颜色")
+    private String backGroundColor;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setDesc(String desc) 
+    {
+        this.desc = desc;
+    }
+
+    public String getDesc() 
+    {
+        return desc;
+    }
+    public void setBackGroundColor(String backGroundColor) 
+    {
+        this.backGroundColor = backGroundColor;
+    }
+
+    public String getBackGroundColor() 
+    {
+        return backGroundColor;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("name", getName())
+            .append("desc", getDesc())
+            .append("backGroundColor", getBackGroundColor())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 58 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/domain/EntityClassRelation.java

@@ -0,0 +1,58 @@
+package com.kgraph.graph.neo4j.domain;
+
+import lombok.Data;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.kgraph.common.annotation.Excel;
+import com.kgraph.common.core.domain.BaseEntity;;
+
+/**
+ * 实体类关系对象 entity_class_relation
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+@Data
+public class EntityClassRelation extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 实体类ID
+     */
+    private Long id;
+
+    /**
+     * 实体类名称
+     */
+    @Excel(name = "实体类名称")
+    private String name;
+
+    /**
+     * 实体类描述
+     */
+    @Excel(name = "实体类描述")
+    private String desc;
+
+    /**
+     * 实体类背景颜色
+     */
+    @Excel(name = "实体类背景颜色")
+    private String backGroundColor;
+
+    /**
+     * 起点实体类id
+     */
+    @Excel(name = "起点实体类id")
+    private Long startId;
+
+    private String startName;
+
+    /**
+     * 起点实体类id
+     */
+    @Excel(name = "起点实体类id")
+    private Long endId;
+
+    private String endName;
+
+}

+ 66 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/mapper/EntityClassMapper.java

@@ -0,0 +1,66 @@
+package com.kgraph.graph.neo4j.mapper;
+
+import java.util.List;
+import java.util.Map;
+
+import com.kgraph.graph.neo4j.domain.EntityClass;
+
+/**
+ * 实体类Mapper接口
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+public interface EntityClassMapper 
+{
+    /**
+     * 查询实体类
+     * 
+     * @param id 实体类主键
+     * @return 实体类
+     */
+    public EntityClass selectEntityClassById(Long id);
+
+    /**
+     * 查询实体类列表
+     * 
+     * @param entityClass 实体类
+     * @return 实体类集合
+     */
+    public List<EntityClass> selectEntityClassList(EntityClass entityClass);
+
+    /**
+     * 新增实体类
+     * 
+     * @param entityClass 实体类
+     * @return 结果
+     */
+    public int insertEntityClass(EntityClass entityClass);
+
+    /**
+     * 修改实体类
+     * 
+     * @param entityClass 实体类
+     * @return 结果
+     */
+    public int updateEntityClass(EntityClass entityClass);
+
+    /**
+     * 删除实体类
+     * 
+     * @param id 实体类主键
+     * @return 结果
+     */
+    public int deleteEntityClassById(Long id);
+
+    /**
+     * 批量删除实体类
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteEntityClassByIds(Long[] ids);
+
+    List<Map> getOption();
+
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/mapper/EntityClassRelationMapper.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.neo4j.mapper;
+
+import java.util.List;
+import com.kgraph.graph.neo4j.domain.EntityClassRelation;
+
+/**
+ * 实体类关系Mapper接口
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+public interface EntityClassRelationMapper 
+{
+    /**
+     * 查询实体类关系
+     * 
+     * @param id 实体类关系主键
+     * @return 实体类关系
+     */
+    public EntityClassRelation selectEntityClassRelationById(Long id);
+
+    /**
+     * 查询实体类关系列表
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 实体类关系集合
+     */
+    public List<EntityClassRelation> selectEntityClassRelationList(EntityClassRelation entityClassRelation);
+
+    /**
+     * 新增实体类关系
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 结果
+     */
+    public int insertEntityClassRelation(EntityClassRelation entityClassRelation);
+
+    /**
+     * 修改实体类关系
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 结果
+     */
+    public int updateEntityClassRelation(EntityClassRelation entityClassRelation);
+
+    /**
+     * 删除实体类关系
+     * 
+     * @param id 实体类关系主键
+     * @return 结果
+     */
+    public int deleteEntityClassRelationById(Long id);
+
+    /**
+     * 批量删除实体类关系
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteEntityClassRelationByIds(Long[] ids);
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/IEntityClassRelationService.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.neo4j.service;
+
+import java.util.List;
+import com.kgraph.graph.neo4j.domain.EntityClassRelation;
+
+/**
+ * 实体类关系Service接口
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+public interface IEntityClassRelationService 
+{
+    /**
+     * 查询实体类关系
+     * 
+     * @param id 实体类关系主键
+     * @return 实体类关系
+     */
+    public EntityClassRelation selectEntityClassRelationById(Long id);
+
+    /**
+     * 查询实体类关系列表
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 实体类关系集合
+     */
+    public List<EntityClassRelation> selectEntityClassRelationList(EntityClassRelation entityClassRelation);
+
+    /**
+     * 新增实体类关系
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 结果
+     */
+    public int insertEntityClassRelation(EntityClassRelation entityClassRelation);
+
+    /**
+     * 修改实体类关系
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 结果
+     */
+    public int updateEntityClassRelation(EntityClassRelation entityClassRelation);
+
+    /**
+     * 批量删除实体类关系
+     * 
+     * @param ids 需要删除的实体类关系主键集合
+     * @return 结果
+     */
+    public int deleteEntityClassRelationByIds(Long[] ids);
+
+    /**
+     * 删除实体类关系信息
+     * 
+     * @param id 实体类关系主键
+     * @return 结果
+     */
+    public int deleteEntityClassRelationById(Long id);
+}

+ 65 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/IEntityClassService.java

@@ -0,0 +1,65 @@
+package com.kgraph.graph.neo4j.service;
+
+import java.util.List;
+import java.util.Map;
+
+import com.kgraph.graph.neo4j.domain.EntityClass;
+
+/**
+ * 实体类Service接口
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+public interface IEntityClassService 
+{
+    /**
+     * 查询实体类
+     * 
+     * @param id 实体类主键
+     * @return 实体类
+     */
+    public EntityClass selectEntityClassById(Long id);
+
+    /**
+     * 查询实体类列表
+     * 
+     * @param entityClass 实体类
+     * @return 实体类集合
+     */
+    public List<EntityClass> selectEntityClassList(EntityClass entityClass);
+
+    /**
+     * 新增实体类
+     * 
+     * @param entityClass 实体类
+     * @return 结果
+     */
+    public int insertEntityClass(EntityClass entityClass);
+
+    /**
+     * 修改实体类
+     * 
+     * @param entityClass 实体类
+     * @return 结果
+     */
+    public int updateEntityClass(EntityClass entityClass);
+
+    /**
+     * 批量删除实体类
+     * 
+     * @param ids 需要删除的实体类主键集合
+     * @return 结果
+     */
+    public int deleteEntityClassByIds(Long[] ids);
+
+    /**
+     * 删除实体类信息
+     * 
+     * @param id 实体类主键
+     * @return 结果
+     */
+    public int deleteEntityClassById(Long id);
+
+    List<Map> getOption();
+}

+ 96 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/impl/EntityClassRelationServiceImpl.java

@@ -0,0 +1,96 @@
+package com.kgraph.graph.neo4j.service.impl;
+
+import java.util.List;
+import com.kgraph.common.utils.DateUtils;;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.kgraph.graph.neo4j.mapper.EntityClassRelationMapper;
+import com.kgraph.graph.neo4j.domain.EntityClassRelation;
+import com.kgraph.graph.neo4j.service.IEntityClassRelationService;
+
+/**
+ * 实体类关系Service业务层处理
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+@Service
+public class EntityClassRelationServiceImpl implements IEntityClassRelationService 
+{
+    @Autowired
+    private EntityClassRelationMapper entityClassRelationMapper;
+
+    /**
+     * 查询实体类关系
+     * 
+     * @param id 实体类关系主键
+     * @return 实体类关系
+     */
+    @Override
+    public EntityClassRelation selectEntityClassRelationById(Long id)
+    {
+        return entityClassRelationMapper.selectEntityClassRelationById(id);
+    }
+
+    /**
+     * 查询实体类关系列表
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 实体类关系
+     */
+    @Override
+    public List<EntityClassRelation> selectEntityClassRelationList(EntityClassRelation entityClassRelation)
+    {
+        return entityClassRelationMapper.selectEntityClassRelationList(entityClassRelation);
+    }
+
+    /**
+     * 新增实体类关系
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 结果
+     */
+    @Override
+    public int insertEntityClassRelation(EntityClassRelation entityClassRelation)
+    {
+        entityClassRelation.setCreateTime(DateUtils.getNowDate());
+        return entityClassRelationMapper.insertEntityClassRelation(entityClassRelation);
+    }
+
+    /**
+     * 修改实体类关系
+     * 
+     * @param entityClassRelation 实体类关系
+     * @return 结果
+     */
+    @Override
+    public int updateEntityClassRelation(EntityClassRelation entityClassRelation)
+    {
+        entityClassRelation.setUpdateTime(DateUtils.getNowDate());
+        return entityClassRelationMapper.updateEntityClassRelation(entityClassRelation);
+    }
+
+    /**
+     * 批量删除实体类关系
+     * 
+     * @param ids 需要删除的实体类关系主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEntityClassRelationByIds(Long[] ids)
+    {
+        return entityClassRelationMapper.deleteEntityClassRelationByIds(ids);
+    }
+
+    /**
+     * 删除实体类关系信息
+     * 
+     * @param id 实体类关系主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEntityClassRelationById(Long id)
+    {
+        return entityClassRelationMapper.deleteEntityClassRelationById(id);
+    }
+}

+ 103 - 0
kgraph-graph/src/main/java/com/kgraph/graph/neo4j/service/impl/EntityClassServiceImpl.java

@@ -0,0 +1,103 @@
+package com.kgraph.graph.neo4j.service.impl;
+
+import java.util.List;
+import java.util.Map;
+
+import com.kgraph.common.utils.DateUtils;;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.kgraph.graph.neo4j.mapper.EntityClassMapper;
+import com.kgraph.graph.neo4j.domain.EntityClass;
+import com.kgraph.graph.neo4j.service.IEntityClassService;
+
+/**
+ * 实体类Service业务层处理
+ * 
+ * @author kgraph
+ * @date 2023-05-23
+ */
+@Service
+public class EntityClassServiceImpl implements IEntityClassService 
+{
+    @Autowired
+    private EntityClassMapper entityClassMapper;
+
+    /**
+     * 查询实体类
+     * 
+     * @param id 实体类主键
+     * @return 实体类
+     */
+    @Override
+    public EntityClass selectEntityClassById(Long id)
+    {
+        return entityClassMapper.selectEntityClassById(id);
+    }
+
+    /**
+     * 查询实体类列表
+     * 
+     * @param entityClass 实体类
+     * @return 实体类
+     */
+    @Override
+    public List<EntityClass> selectEntityClassList(EntityClass entityClass)
+    {
+        return entityClassMapper.selectEntityClassList(entityClass);
+    }
+
+    /**
+     * 新增实体类
+     * 
+     * @param entityClass 实体类
+     * @return 结果
+     */
+    @Override
+    public int insertEntityClass(EntityClass entityClass)
+    {
+        entityClass.setCreateTime(DateUtils.getNowDate());
+        return entityClassMapper.insertEntityClass(entityClass);
+    }
+
+    /**
+     * 修改实体类
+     * 
+     * @param entityClass 实体类
+     * @return 结果
+     */
+    @Override
+    public int updateEntityClass(EntityClass entityClass)
+    {
+        entityClass.setUpdateTime(DateUtils.getNowDate());
+        return entityClassMapper.updateEntityClass(entityClass);
+    }
+
+    /**
+     * 批量删除实体类
+     * 
+     * @param ids 需要删除的实体类主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEntityClassByIds(Long[] ids)
+    {
+        return entityClassMapper.deleteEntityClassByIds(ids);
+    }
+
+    /**
+     * 删除实体类信息
+     * 
+     * @param id 实体类主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEntityClassById(Long id)
+    {
+        return entityClassMapper.deleteEntityClassById(id);
+    }
+
+    @Override
+    public List<Map> getOption() {
+        return entityClassMapper.getOption();
+    }
+}

+ 127 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/controller/BuildEntityRelationController.java

@@ -0,0 +1,127 @@
+package com.kgraph.graph.suport.controller;
+
+import java.io.IOException;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.kgraph.common.utils.StringUtils;
+import com.kgraph.common.utils.file.FileUtils;
+import com.kgraph.graph.suport.dto.BuildEntityRelationDTO;
+import org.springframework.security.access.prepost.PreAuthorize;
+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 com.kgraph.common.annotation.Log;;
+import com.kgraph.common.core.controller.BaseController;;
+import com.kgraph.common.core.domain.AjaxResult;;
+import com.kgraph.common.enums.BusinessType;;
+import com.kgraph.graph.suport.domain.BuildEntityRelation;
+import com.kgraph.graph.suport.service.IBuildEntityRelationService;
+import com.kgraph.common.utils.poi.ExcelUtil;;
+import com.kgraph.common.core.page.TableDataInfo;;
+
+/**
+ * 实体构建Controller
+ * 
+ * @author kgraph
+ * @date 2023-05-24
+ */
+@RestController
+@RequestMapping("/suport/relation")
+public class BuildEntityRelationController extends BaseController
+{
+    @Autowired
+    private IBuildEntityRelationService buildEntityRelationService;
+
+    /**
+     * 查询实体构建列表
+     */
+    @PreAuthorize("@ss.hasPermi('suport:relation:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(BuildEntityRelation buildEntityRelation)
+    {
+        startPage();
+        List<BuildEntityRelation> list = buildEntityRelationService.selectBuildEntityRelationList(buildEntityRelation);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出实体构建列表
+     */
+    @PreAuthorize("@ss.hasPermi('suport:relation:export')")
+    @Log(title = "实体构建", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, BuildEntityRelation buildEntityRelation)
+    {
+        List<BuildEntityRelation> list = buildEntityRelationService.selectBuildEntityRelationList(buildEntityRelation);
+        ExcelUtil<BuildEntityRelation> util = new ExcelUtil<BuildEntityRelation>(BuildEntityRelation.class);
+        util.exportExcel(response, list, "实体构建数据");
+    }
+
+    /**
+     * 获取实体构建详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('suport:relation:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(buildEntityRelationService.selectBuildEntityRelationById(id));
+    }
+
+    /**
+     * 新增实体构建
+     */
+    @PreAuthorize("@ss.hasPermi('suport:relation:add')")
+    @Log(title = "实体构建", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody BuildEntityRelation buildEntityRelation)
+    {
+        return toAjax(buildEntityRelationService.insertBuildEntityRelation(buildEntityRelation));
+    }
+
+    /**
+     * 修改实体构建
+     */
+    @PreAuthorize("@ss.hasPermi('suport:relation:edit')")
+    @Log(title = "实体构建", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody BuildEntityRelation buildEntityRelation)
+    {
+        return toAjax(buildEntityRelationService.updateBuildEntityRelation(buildEntityRelation));
+    }
+
+    /**
+     * 删除实体构建
+     */
+    @PreAuthorize("@ss.hasPermi('suport:relation:remove')")
+    @Log(title = "实体构建", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(buildEntityRelationService.deleteBuildEntityRelationByIds(ids));
+    }
+
+    @GetMapping("/getClassRelationList/{id}")
+    public AjaxResult getClassRelationList(@PathVariable("id") Long subtaskId)
+    {
+        return success(buildEntityRelationService.getClassRelationList(subtaskId));
+    }
+
+    @PreAuthorize("@ss.hasPermi('suport:relation:add')")
+    @Log(title = "实体关系构建", businessType = BusinessType.INSERT)
+    @PostMapping("/bu1ildEntityRelation")
+    public AjaxResult bu1ildEntityRelation(@RequestBody List<BuildEntityRelationDTO> bu1ildEntityRelationDTOList)
+    {
+        return success(buildEntityRelationService.bu1ildEntityRelation(bu1ildEntityRelationDTOList));
+    }
+}

+ 104 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/controller/TBuildFlowController.java

@@ -0,0 +1,104 @@
+package com.kgraph.graph.suport.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+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 com.kgraph.common.annotation.Log;;
+import com.kgraph.common.core.controller.BaseController;;
+import com.kgraph.common.core.domain.AjaxResult;;
+import com.kgraph.common.enums.BusinessType;;
+import com.kgraph.graph.suport.domain.TBuildFlow;
+import com.kgraph.graph.suport.service.ITBuildFlowService;
+import com.kgraph.common.utils.poi.ExcelUtil;;
+import com.kgraph.common.core.page.TableDataInfo;;
+
+/**
+ * 构建流程Controller
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+@RestController
+@RequestMapping("/suport/flow")
+public class TBuildFlowController extends BaseController
+{
+    @Autowired
+    private ITBuildFlowService tBuildFlowService;
+
+    /**
+     * 查询构建流程列表
+     */
+    @PreAuthorize("@ss.hasPermi('suport:flow:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TBuildFlow tBuildFlow)
+    {
+        startPage();
+        List<TBuildFlow> list = tBuildFlowService.selectTBuildFlowList(tBuildFlow);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出构建流程列表
+     */
+    @PreAuthorize("@ss.hasPermi('suport:flow:export')")
+    @Log(title = "构建流程", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TBuildFlow tBuildFlow)
+    {
+        List<TBuildFlow> list = tBuildFlowService.selectTBuildFlowList(tBuildFlow);
+        ExcelUtil<TBuildFlow> util = new ExcelUtil<TBuildFlow>(TBuildFlow.class);
+        util.exportExcel(response, list, "构建流程数据");
+    }
+
+    /**
+     * 获取构建流程详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('suport:flow:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tBuildFlowService.selectTBuildFlowById(id));
+    }
+
+    /**
+     * 新增构建流程
+     */
+    @PreAuthorize("@ss.hasPermi('suport:flow:add')")
+    @Log(title = "构建流程", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TBuildFlow tBuildFlow)
+    {
+        return toAjax(tBuildFlowService.insertTBuildFlow(tBuildFlow));
+    }
+
+    /**
+     * 修改构建流程
+     */
+    @PreAuthorize("@ss.hasPermi('suport:flow:edit')")
+    @Log(title = "构建流程", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TBuildFlow tBuildFlow)
+    {
+        return toAjax(tBuildFlowService.updateTBuildFlow(tBuildFlow));
+    }
+
+    /**
+     * 删除构建流程
+     */
+    @PreAuthorize("@ss.hasPermi('suport:flow:remove')")
+    @Log(title = "构建流程", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tBuildFlowService.deleteTBuildFlowByIds(ids));
+    }
+}

+ 104 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/controller/TCheckPiontController.java

@@ -0,0 +1,104 @@
+package com.kgraph.graph.suport.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+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 com.kgraph.common.annotation.Log;;
+import com.kgraph.common.core.controller.BaseController;;
+import com.kgraph.common.core.domain.AjaxResult;;
+import com.kgraph.common.enums.BusinessType;;
+import com.kgraph.graph.suport.domain.TCheckPiont;
+import com.kgraph.graph.suport.service.ITCheckPiontService;
+import com.kgraph.common.utils.poi.ExcelUtil;;
+import com.kgraph.common.core.page.TableDataInfo;;
+
+/**
+ * 检查点管理Controller
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+@RestController
+@RequestMapping("/suport/piont")
+public class TCheckPiontController extends BaseController
+{
+    @Autowired
+    private ITCheckPiontService tCheckPiontService;
+
+    /**
+     * 查询检查点管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('suport:piont:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TCheckPiont tCheckPiont)
+    {
+        startPage();
+        List<TCheckPiont> list = tCheckPiontService.selectTCheckPiontList(tCheckPiont);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出检查点管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('suport:piont:export')")
+    @Log(title = "检查点管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TCheckPiont tCheckPiont)
+    {
+        List<TCheckPiont> list = tCheckPiontService.selectTCheckPiontList(tCheckPiont);
+        ExcelUtil<TCheckPiont> util = new ExcelUtil<TCheckPiont>(TCheckPiont.class);
+        util.exportExcel(response, list, "检查点管理数据");
+    }
+
+    /**
+     * 获取检查点管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('suport:piont:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tCheckPiontService.selectTCheckPiontById(id));
+    }
+
+    /**
+     * 新增检查点管理
+     */
+    @PreAuthorize("@ss.hasPermi('suport:piont:add')")
+    @Log(title = "检查点管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TCheckPiont tCheckPiont)
+    {
+        return toAjax(tCheckPiontService.insertTCheckPiont(tCheckPiont));
+    }
+
+    /**
+     * 修改检查点管理
+     */
+    @PreAuthorize("@ss.hasPermi('suport:piont:edit')")
+    @Log(title = "检查点管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TCheckPiont tCheckPiont)
+    {
+        return toAjax(tCheckPiontService.updateTCheckPiont(tCheckPiont));
+    }
+
+    /**
+     * 删除检查点管理
+     */
+    @PreAuthorize("@ss.hasPermi('suport:piont:remove')")
+    @Log(title = "检查点管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tCheckPiontService.deleteTCheckPiontByIds(ids));
+    }
+}

+ 125 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/domain/BuildEntityRelation.java

@@ -0,0 +1,125 @@
+package com.kgraph.graph.suport.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.kgraph.common.annotation.Excel;
+import com.kgraph.common.core.domain.BaseEntity;;
+
+/**
+ * 实体构建对象 t_build_entity_relation
+ * 
+ * @author kgraph
+ * @date 2023-05-24
+ */
+public class BuildEntityRelation extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 序号 */
+    private Long id;
+
+    /** 子任务id */
+    @Excel(name = "子任务id")
+    private Long subTaskId;
+
+    /** 主体实体类id */
+    @Excel(name = "主体实体类id")
+    private Long subEntityClassId;
+
+    /** 客体实体类id */
+    @Excel(name = "客体实体类id")
+    private Long objEntityClassId;
+
+    /** 实体类关系id */
+    @Excel(name = "实体类关系id")
+    private Long entityClassRelId;
+
+    /** 主体 */
+    @Excel(name = "主体")
+    private String subEntity;
+
+    /** 客体 */
+    @Excel(name = "客体")
+    private String objEntity;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setSubTaskId(Long subTaskId) 
+    {
+        this.subTaskId = subTaskId;
+    }
+
+    public Long getSubTaskId() 
+    {
+        return subTaskId;
+    }
+    public void setSubEntityClassId(Long subEntityClassId) 
+    {
+        this.subEntityClassId = subEntityClassId;
+    }
+
+    public Long getSubEntityClassId() 
+    {
+        return subEntityClassId;
+    }
+    public void setObjEntityClassId(Long objEntityClassId) 
+    {
+        this.objEntityClassId = objEntityClassId;
+    }
+
+    public Long getObjEntityClassId() 
+    {
+        return objEntityClassId;
+    }
+    public void setEntityClassRelId(Long entityClassRelId) 
+    {
+        this.entityClassRelId = entityClassRelId;
+    }
+
+    public Long getEntityClassRelId() 
+    {
+        return entityClassRelId;
+    }
+    public void setSubEntity(String subEntity) 
+    {
+        this.subEntity = subEntity;
+    }
+
+    public String getSubEntity() 
+    {
+        return subEntity;
+    }
+    public void setObjEntity(String objEntity) 
+    {
+        this.objEntity = objEntity;
+    }
+
+    public String getObjEntity() 
+    {
+        return objEntity;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("subTaskId", getSubTaskId())
+            .append("subEntityClassId", getSubEntityClassId())
+            .append("objEntityClassId", getObjEntityClassId())
+            .append("entityClassRelId", getEntityClassRelId())
+            .append("subEntity", getSubEntity())
+            .append("objEntity", getObjEntity())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 83 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/domain/TBuildFlow.java

@@ -0,0 +1,83 @@
+package com.kgraph.graph.suport.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.kgraph.common.annotation.Excel;
+import com.kgraph.common.core.domain.BaseEntity;;
+
+/**
+ * 构建流程对象 t_build_flow
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+public class TBuildFlow extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 序号 */
+    private Long id;
+
+    /** 故障编码 */
+    @Excel(name = "故障编码")
+    private String errorCode;
+
+    /** 流程数据 */
+    @Excel(name = "流程数据")
+    private String flowEncode;
+
+    /** 流程树json */
+    @Excel(name = "流程树json")
+    private String flowTreeJson;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setErrorCode(String errorCode) 
+    {
+        this.errorCode = errorCode;
+    }
+
+    public String getErrorCode() 
+    {
+        return errorCode;
+    }
+    public void setFlowEncode(String flowEncode) 
+    {
+        this.flowEncode = flowEncode;
+    }
+
+    public String getFlowEncode() 
+    {
+        return flowEncode;
+    }
+    public void setFlowTreeJson(String flowTreeJson) 
+    {
+        this.flowTreeJson = flowTreeJson;
+    }
+
+    public String getFlowTreeJson() 
+    {
+        return flowTreeJson;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("errorCode", getErrorCode())
+            .append("flowEncode", getFlowEncode())
+            .append("flowTreeJson", getFlowTreeJson())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 69 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/domain/TCheckPiont.java

@@ -0,0 +1,69 @@
+package com.kgraph.graph.suport.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.kgraph.common.annotation.Excel;
+import com.kgraph.common.core.domain.BaseEntity;;
+
+/**
+ * 检查点管理对象 t_check_piont
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+public class TCheckPiont extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 序号 */
+    private Long id;
+
+    /** 编码 */
+    @Excel(name = "编码")
+    private String code;
+
+    /** 检查点 */
+    @Excel(name = "检查点")
+    private String checkPiont;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setCode(String code) 
+    {
+        this.code = code;
+    }
+
+    public String getCode() 
+    {
+        return code;
+    }
+    public void setCheckPiont(String checkPiont) 
+    {
+        this.checkPiont = checkPiont;
+    }
+
+    public String getCheckPiont() 
+    {
+        return checkPiont;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("code", getCode())
+            .append("checkPiont", getCheckPiont())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 68 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/mapper/BuildEntityRelationMapper.java

@@ -0,0 +1,68 @@
+package com.kgraph.graph.suport.mapper;
+
+import java.util.List;
+import java.util.Map;
+
+import com.kgraph.graph.suport.domain.BuildEntityRelation;
+import com.kgraph.graph.suport.dto.BuildEntityRelationDTO;
+
+/**
+ * 实体构建Mapper接口
+ * 
+ * @author kgraph
+ * @date 2023-05-24
+ */
+public interface BuildEntityRelationMapper 
+{
+    /**
+     * 查询实体构建
+     * 
+     * @param id 实体构建主键
+     * @return 实体构建
+     */
+    public BuildEntityRelation selectBuildEntityRelationById(Long id);
+
+    /**
+     * 查询实体构建列表
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 实体构建集合
+     */
+    public List<BuildEntityRelation> selectBuildEntityRelationList(BuildEntityRelation buildEntityRelation);
+
+    /**
+     * 新增实体构建
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 结果
+     */
+    public int insertBuildEntityRelation(BuildEntityRelation buildEntityRelation);
+
+    /**
+     * 修改实体构建
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 结果
+     */
+    public int updateBuildEntityRelation(BuildEntityRelation buildEntityRelation);
+
+    /**
+     * 删除实体构建
+     * 
+     * @param id 实体构建主键
+     * @return 结果
+     */
+    public int deleteBuildEntityRelationById(Long id);
+
+    /**
+     * 批量删除实体构建
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteBuildEntityRelationByIds(Long[] ids);
+
+    public List<Map> getClassRelationList(Long subtaskId);
+
+    public int bu1ildEntityRelation(List<BuildEntityRelationDTO> bu1ildEntityRelationDTOList);
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/mapper/TBuildFlowMapper.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.suport.mapper;
+
+import java.util.List;
+import com.kgraph.graph.suport.domain.TBuildFlow;
+
+/**
+ * 构建流程Mapper接口
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+public interface TBuildFlowMapper 
+{
+    /**
+     * 查询构建流程
+     * 
+     * @param id 构建流程主键
+     * @return 构建流程
+     */
+    public TBuildFlow selectTBuildFlowById(Long id);
+
+    /**
+     * 查询构建流程列表
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 构建流程集合
+     */
+    public List<TBuildFlow> selectTBuildFlowList(TBuildFlow tBuildFlow);
+
+    /**
+     * 新增构建流程
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 结果
+     */
+    public int insertTBuildFlow(TBuildFlow tBuildFlow);
+
+    /**
+     * 修改构建流程
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 结果
+     */
+    public int updateTBuildFlow(TBuildFlow tBuildFlow);
+
+    /**
+     * 删除构建流程
+     * 
+     * @param id 构建流程主键
+     * @return 结果
+     */
+    public int deleteTBuildFlowById(Long id);
+
+    /**
+     * 批量删除构建流程
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTBuildFlowByIds(Long[] ids);
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/mapper/TCheckPiontMapper.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.suport.mapper;
+
+import java.util.List;
+import com.kgraph.graph.suport.domain.TCheckPiont;
+
+/**
+ * 检查点管理Mapper接口
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+public interface TCheckPiontMapper 
+{
+    /**
+     * 查询检查点管理
+     * 
+     * @param id 检查点管理主键
+     * @return 检查点管理
+     */
+    public TCheckPiont selectTCheckPiontById(Long id);
+
+    /**
+     * 查询检查点管理列表
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 检查点管理集合
+     */
+    public List<TCheckPiont> selectTCheckPiontList(TCheckPiont tCheckPiont);
+
+    /**
+     * 新增检查点管理
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 结果
+     */
+    public int insertTCheckPiont(TCheckPiont tCheckPiont);
+
+    /**
+     * 修改检查点管理
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 结果
+     */
+    public int updateTCheckPiont(TCheckPiont tCheckPiont);
+
+    /**
+     * 删除检查点管理
+     * 
+     * @param id 检查点管理主键
+     * @return 结果
+     */
+    public int deleteTCheckPiontById(Long id);
+
+    /**
+     * 批量删除检查点管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTCheckPiontByIds(Long[] ids);
+}

+ 68 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/service/IBuildEntityRelationService.java

@@ -0,0 +1,68 @@
+package com.kgraph.graph.suport.service;
+
+import java.util.List;
+import java.util.Map;
+
+import com.kgraph.graph.suport.domain.BuildEntityRelation;
+import com.kgraph.graph.suport.dto.BuildEntityRelationDTO;
+
+/**
+ * 实体构建Service接口
+ * 
+ * @author kgraph
+ * @date 2023-05-24
+ */
+public interface IBuildEntityRelationService 
+{
+    /**
+     * 查询实体构建
+     * 
+     * @param id 实体构建主键
+     * @return 实体构建
+     */
+    public BuildEntityRelation selectBuildEntityRelationById(Long id);
+
+    /**
+     * 查询实体构建列表
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 实体构建集合
+     */
+    public List<BuildEntityRelation> selectBuildEntityRelationList(BuildEntityRelation buildEntityRelation);
+
+    /**
+     * 新增实体构建
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 结果
+     */
+    public int insertBuildEntityRelation(BuildEntityRelation buildEntityRelation);
+
+    /**
+     * 修改实体构建
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 结果
+     */
+    public int updateBuildEntityRelation(BuildEntityRelation buildEntityRelation);
+
+    /**
+     * 批量删除实体构建
+     * 
+     * @param ids 需要删除的实体构建主键集合
+     * @return 结果
+     */
+    public int deleteBuildEntityRelationByIds(Long[] ids);
+
+    /**
+     * 删除实体构建信息
+     * 
+     * @param id 实体构建主键
+     * @return 结果
+     */
+    public int deleteBuildEntityRelationById(Long id);
+
+    List<Map> getClassRelationList(Long subtaskId);
+
+    int bu1ildEntityRelation(List<BuildEntityRelationDTO> bu1ildEntityRelationDTOList);
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/service/ITBuildFlowService.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.suport.service;
+
+import java.util.List;
+import com.kgraph.graph.suport.domain.TBuildFlow;
+
+/**
+ * 构建流程Service接口
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+public interface ITBuildFlowService 
+{
+    /**
+     * 查询构建流程
+     * 
+     * @param id 构建流程主键
+     * @return 构建流程
+     */
+    public TBuildFlow selectTBuildFlowById(Long id);
+
+    /**
+     * 查询构建流程列表
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 构建流程集合
+     */
+    public List<TBuildFlow> selectTBuildFlowList(TBuildFlow tBuildFlow);
+
+    /**
+     * 新增构建流程
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 结果
+     */
+    public int insertTBuildFlow(TBuildFlow tBuildFlow);
+
+    /**
+     * 修改构建流程
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 结果
+     */
+    public int updateTBuildFlow(TBuildFlow tBuildFlow);
+
+    /**
+     * 批量删除构建流程
+     * 
+     * @param ids 需要删除的构建流程主键集合
+     * @return 结果
+     */
+    public int deleteTBuildFlowByIds(Long[] ids);
+
+    /**
+     * 删除构建流程信息
+     * 
+     * @param id 构建流程主键
+     * @return 结果
+     */
+    public int deleteTBuildFlowById(Long id);
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/service/ITCheckPiontService.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.suport.service;
+
+import java.util.List;
+import com.kgraph.graph.suport.domain.TCheckPiont;
+
+/**
+ * 检查点管理Service接口
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+public interface ITCheckPiontService 
+{
+    /**
+     * 查询检查点管理
+     * 
+     * @param id 检查点管理主键
+     * @return 检查点管理
+     */
+    public TCheckPiont selectTCheckPiontById(Long id);
+
+    /**
+     * 查询检查点管理列表
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 检查点管理集合
+     */
+    public List<TCheckPiont> selectTCheckPiontList(TCheckPiont tCheckPiont);
+
+    /**
+     * 新增检查点管理
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 结果
+     */
+    public int insertTCheckPiont(TCheckPiont tCheckPiont);
+
+    /**
+     * 修改检查点管理
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 结果
+     */
+    public int updateTCheckPiont(TCheckPiont tCheckPiont);
+
+    /**
+     * 批量删除检查点管理
+     * 
+     * @param ids 需要删除的检查点管理主键集合
+     * @return 结果
+     */
+    public int deleteTCheckPiontByIds(Long[] ids);
+
+    /**
+     * 删除检查点管理信息
+     * 
+     * @param id 检查点管理主键
+     * @return 结果
+     */
+    public int deleteTCheckPiontById(Long id);
+}

+ 137 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/service/impl/BuildEntityRelationServiceImpl.java

@@ -0,0 +1,137 @@
+package com.kgraph.graph.suport.service.impl;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import com.kgraph.common.utils.DateUtils;;
+import com.kgraph.graph.suport.dto.BuildEntityRelationDTO;
+import com.kgraph.graph.suport.mapper.ExtractKnowledgeSubTaskMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.kgraph.graph.suport.mapper.BuildEntityRelationMapper;
+import com.kgraph.graph.suport.domain.BuildEntityRelation;
+import com.kgraph.graph.suport.service.IBuildEntityRelationService;
+
+/**
+ * 实体构建Service业务层处理
+ * 
+ * @author kgraph
+ * @date 2023-05-24
+ */
+@Service
+public class BuildEntityRelationServiceImpl implements IBuildEntityRelationService 
+{
+    @Autowired
+    private BuildEntityRelationMapper buildEntityRelationMapper;
+
+    @Autowired
+    private ExtractKnowledgeSubTaskMapper extractKnowledgeSubTaskMapper;
+
+    /**
+     * 查询实体构建
+     * 
+     * @param id 实体构建主键
+     * @return 实体构建
+     */
+    @Override
+    public BuildEntityRelation selectBuildEntityRelationById(Long id)
+    {
+        return buildEntityRelationMapper.selectBuildEntityRelationById(id);
+    }
+
+    /**
+     * 查询实体构建列表
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 实体构建
+     */
+    @Override
+    public List<BuildEntityRelation> selectBuildEntityRelationList(BuildEntityRelation buildEntityRelation)
+    {
+        return buildEntityRelationMapper.selectBuildEntityRelationList(buildEntityRelation);
+    }
+
+    /**
+     * 新增实体构建
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 结果
+     */
+    @Override
+    public int insertBuildEntityRelation(BuildEntityRelation buildEntityRelation)
+    {
+        buildEntityRelation.setCreateTime(DateUtils.getNowDate());
+        return buildEntityRelationMapper.insertBuildEntityRelation(buildEntityRelation);
+    }
+
+    /**
+     * 修改实体构建
+     * 
+     * @param buildEntityRelation 实体构建
+     * @return 结果
+     */
+    @Override
+    public int updateBuildEntityRelation(BuildEntityRelation buildEntityRelation)
+    {
+        buildEntityRelation.setUpdateTime(DateUtils.getNowDate());
+        return buildEntityRelationMapper.updateBuildEntityRelation(buildEntityRelation);
+    }
+
+    /**
+     * 批量删除实体构建
+     * 
+     * @param ids 需要删除的实体构建主键
+     * @return 结果
+     */
+    @Override
+    public int deleteBuildEntityRelationByIds(Long[] ids)
+    {
+        return buildEntityRelationMapper.deleteBuildEntityRelationByIds(ids);
+    }
+
+    /**
+     * 删除实体构建信息
+     * 
+     * @param id 实体构建主键
+     * @return 结果
+     */
+    @Override
+    public int deleteBuildEntityRelationById(Long id)
+    {
+        return buildEntityRelationMapper.deleteBuildEntityRelationById(id);
+    }
+
+    @Override
+    public List<Map> getClassRelationList(Long subtaskId) {
+        return buildEntityRelationMapper.getClassRelationList(subtaskId);
+    }
+
+    @Override
+    public int bu1ildEntityRelation(List<BuildEntityRelationDTO> bu1ildEntityRelationDTOList) {
+        // 构建实体关系表
+        int res = 0;
+        Long id = 0L;
+        for (BuildEntityRelationDTO entityRelationDTO : bu1ildEntityRelationDTOList) {
+            BuildEntityRelation buildEntityRelation = new BuildEntityRelation();
+            buildEntityRelation.setId(entityRelationDTO.getId());
+            buildEntityRelation.setEntityClassRelId(entityRelationDTO.getRelationId());
+            buildEntityRelation.setSubTaskId(entityRelationDTO.getSubTaskId());
+            buildEntityRelation.setSubEntityClassId(entityRelationDTO.getStartId());
+            buildEntityRelation.setObjEntityClassId(entityRelationDTO.getEndId());
+            buildEntityRelation.setSubEntity(entityRelationDTO.getSubEntity());
+            buildEntityRelation.setObjEntity(entityRelationDTO.getObjEntity());
+            if (entityRelationDTO.getId() != null) {
+                res += updateBuildEntityRelation(buildEntityRelation);
+            } else {
+                res += insertBuildEntityRelation(buildEntityRelation);
+            }
+            if(entityRelationDTO.getSubTaskId() != null) {
+                id = entityRelationDTO.getSubTaskId();
+            }
+        }
+        // 更新子任务状态
+        extractKnowledgeSubTaskMapper.updateSubTaskStatusById(id, "3", null, new Date());
+        return res;
+    }
+}

+ 96 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/service/impl/TBuildFlowServiceImpl.java

@@ -0,0 +1,96 @@
+package com.kgraph.graph.suport.service.impl;
+
+import java.util.List;
+import com.kgraph.common.utils.DateUtils;;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.kgraph.graph.suport.mapper.TBuildFlowMapper;
+import com.kgraph.graph.suport.domain.TBuildFlow;
+import com.kgraph.graph.suport.service.ITBuildFlowService;
+
+/**
+ * 构建流程Service业务层处理
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+@Service
+public class TBuildFlowServiceImpl implements ITBuildFlowService 
+{
+    @Autowired
+    private TBuildFlowMapper tBuildFlowMapper;
+
+    /**
+     * 查询构建流程
+     * 
+     * @param id 构建流程主键
+     * @return 构建流程
+     */
+    @Override
+    public TBuildFlow selectTBuildFlowById(Long id)
+    {
+        return tBuildFlowMapper.selectTBuildFlowById(id);
+    }
+
+    /**
+     * 查询构建流程列表
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 构建流程
+     */
+    @Override
+    public List<TBuildFlow> selectTBuildFlowList(TBuildFlow tBuildFlow)
+    {
+        return tBuildFlowMapper.selectTBuildFlowList(tBuildFlow);
+    }
+
+    /**
+     * 新增构建流程
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 结果
+     */
+    @Override
+    public int insertTBuildFlow(TBuildFlow tBuildFlow)
+    {
+        tBuildFlow.setCreateTime(DateUtils.getNowDate());
+        return tBuildFlowMapper.insertTBuildFlow(tBuildFlow);
+    }
+
+    /**
+     * 修改构建流程
+     * 
+     * @param tBuildFlow 构建流程
+     * @return 结果
+     */
+    @Override
+    public int updateTBuildFlow(TBuildFlow tBuildFlow)
+    {
+        tBuildFlow.setUpdateTime(DateUtils.getNowDate());
+        return tBuildFlowMapper.updateTBuildFlow(tBuildFlow);
+    }
+
+    /**
+     * 批量删除构建流程
+     * 
+     * @param ids 需要删除的构建流程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTBuildFlowByIds(Long[] ids)
+    {
+        return tBuildFlowMapper.deleteTBuildFlowByIds(ids);
+    }
+
+    /**
+     * 删除构建流程信息
+     * 
+     * @param id 构建流程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTBuildFlowById(Long id)
+    {
+        return tBuildFlowMapper.deleteTBuildFlowById(id);
+    }
+}

+ 96 - 0
kgraph-graph/src/main/java/com/kgraph/graph/suport/service/impl/TCheckPiontServiceImpl.java

@@ -0,0 +1,96 @@
+package com.kgraph.graph.suport.service.impl;
+
+import java.util.List;
+import com.kgraph.common.utils.DateUtils;;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.kgraph.graph.suport.mapper.TCheckPiontMapper;
+import com.kgraph.graph.suport.domain.TCheckPiont;
+import com.kgraph.graph.suport.service.ITCheckPiontService;
+
+/**
+ * 检查点管理Service业务层处理
+ * 
+ * @author kgraph
+ * @date 2023-05-28
+ */
+@Service
+public class TCheckPiontServiceImpl implements ITCheckPiontService 
+{
+    @Autowired
+    private TCheckPiontMapper tCheckPiontMapper;
+
+    /**
+     * 查询检查点管理
+     * 
+     * @param id 检查点管理主键
+     * @return 检查点管理
+     */
+    @Override
+    public TCheckPiont selectTCheckPiontById(Long id)
+    {
+        return tCheckPiontMapper.selectTCheckPiontById(id);
+    }
+
+    /**
+     * 查询检查点管理列表
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 检查点管理
+     */
+    @Override
+    public List<TCheckPiont> selectTCheckPiontList(TCheckPiont tCheckPiont)
+    {
+        return tCheckPiontMapper.selectTCheckPiontList(tCheckPiont);
+    }
+
+    /**
+     * 新增检查点管理
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 结果
+     */
+    @Override
+    public int insertTCheckPiont(TCheckPiont tCheckPiont)
+    {
+        tCheckPiont.setCreateTime(DateUtils.getNowDate());
+        return tCheckPiontMapper.insertTCheckPiont(tCheckPiont);
+    }
+
+    /**
+     * 修改检查点管理
+     * 
+     * @param tCheckPiont 检查点管理
+     * @return 结果
+     */
+    @Override
+    public int updateTCheckPiont(TCheckPiont tCheckPiont)
+    {
+        tCheckPiont.setUpdateTime(DateUtils.getNowDate());
+        return tCheckPiontMapper.updateTCheckPiont(tCheckPiont);
+    }
+
+    /**
+     * 批量删除检查点管理
+     * 
+     * @param ids 需要删除的检查点管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTCheckPiontByIds(Long[] ids)
+    {
+        return tCheckPiontMapper.deleteTCheckPiontByIds(ids);
+    }
+
+    /**
+     * 删除检查点管理信息
+     * 
+     * @param id 检查点管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTCheckPiontById(Long id)
+    {
+        return tCheckPiontMapper.deleteTCheckPiontById(id);
+    }
+}

+ 86 - 0
kgraph-graph/src/main/resources/mapper/neo4j/EntityClassMapper.xml

@@ -0,0 +1,86 @@
+<?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.kgraph.graph.neo4j.mapper.EntityClassMapper">
+    
+    <resultMap type="EntityClass" id="EntityClassResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="desc"    column="desc"    />
+        <result property="backGroundColor"    column="back_ground_color"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectEntityClassVo">
+        select id, `name`, `desc`, back_ground_color, create_by, create_time, update_by, update_time from entity_class
+    </sql>
+
+    <select id="selectEntityClassList" parameterType="EntityClass" resultMap="EntityClassResult">
+        <include refid="selectEntityClassVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
+            <if test="desc != null  and desc != ''"> and `desc` = #{desc}</if>
+            <if test="backGroundColor != null  and backGroundColor != ''"> and back_ground_color = #{backGroundColor}</if>
+        </where>
+    </select>
+    
+    <select id="selectEntityClassById" parameterType="Long" resultMap="EntityClassResult">
+        <include refid="selectEntityClassVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertEntityClass" parameterType="EntityClass" useGeneratedKeys="true" keyProperty="id">
+        insert into entity_class
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">`name`,</if>
+            <if test="desc != null">`desc`,</if>
+            <if test="backGroundColor != null">back_ground_color,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="desc != null">#{desc},</if>
+            <if test="backGroundColor != null">#{backGroundColor},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateEntityClass" parameterType="EntityClass">
+        update entity_class
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">`name` = #{name},</if>
+            <if test="desc != null">`desc` = #{desc},</if>
+            <if test="backGroundColor != null">back_ground_color = #{backGroundColor},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteEntityClassById" parameterType="Long">
+        delete from entity_class where id = #{id}
+    </delete>
+
+    <delete id="deleteEntityClassByIds" parameterType="String">
+        delete from entity_class where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <select id="getOption" resultType="Map">
+        select id, name from entity_class
+    </select>
+</mapper>

+ 110 - 0
kgraph-graph/src/main/resources/mapper/neo4j/EntityClassRelationMapper.xml

@@ -0,0 +1,110 @@
+<?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.kgraph.graph.neo4j.mapper.EntityClassRelationMapper">
+    
+    <resultMap type="EntityClassRelation" id="EntityClassRelationResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="desc"    column="desc"    />
+        <result property="backGroundColor"    column="back_ground_color"    />
+        <result property="startId"    column="start_id"    />
+        <result property="startName"    column="startName"    />
+        <result property="endId"    column="end_id"    />
+        <result property="endName"    column="endName"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectEntityClassRelationVo">
+        SELECT
+            ecr.id,
+            ecr.`name`,
+            ecr.`desc`,
+            ecr.back_ground_color,
+            ecr.start_id,
+            ecs.`name` as startName,
+            ecr.end_id,
+            ece.`name` as endName,
+            ecr.create_by,
+            ecr.create_time,
+            ecr.update_by,
+            ecr.update_time
+        FROM
+            entity_class_relation ecr
+                LEFT JOIN entity_class ecs ON ecr.start_id = ecs.id
+                LEFT JOIN entity_class ece ON ecr.end_id = ece.id
+    </sql>
+
+    <select id="selectEntityClassRelationList" parameterType="EntityClassRelation" resultMap="EntityClassRelationResult">
+        <include refid="selectEntityClassRelationVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
+            <if test="desc != null  and desc != ''"> and `desc` = #{desc}</if>
+            <if test="backGroundColor != null  and backGroundColor != ''"> and back_ground_color = #{backGroundColor}</if>
+            <if test="startId != null "> and start_id = #{startId}</if>
+            <if test="endId != null "> and end_id = #{endId}</if>
+        </where>
+    </select>
+    
+    <select id="selectEntityClassRelationById" parameterType="Long" resultMap="EntityClassRelationResult">
+        <include refid="selectEntityClassRelationVo"/>
+        where ecr.id = #{id}
+    </select>
+        
+    <insert id="insertEntityClassRelation" parameterType="EntityClassRelation" useGeneratedKeys="true" keyProperty="id">
+        insert into entity_class_relation
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">`name`,</if>
+            <if test="desc != null">`desc`,</if>
+            <if test="backGroundColor != null">back_ground_color,</if>
+            <if test="startId != null">start_id,</if>
+            <if test="endId != null">end_id,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="desc != null">#{desc},</if>
+            <if test="backGroundColor != null">#{backGroundColor},</if>
+            <if test="startId != null">#{startId},</if>
+            <if test="endId != null">#{endId},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateEntityClassRelation" parameterType="EntityClassRelation">
+        update entity_class_relation
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">`name` = #{name},</if>
+            <if test="desc != null">`desc` = #{desc},</if>
+            <if test="backGroundColor != null">back_ground_color = #{backGroundColor},</if>
+            <if test="startId != null">start_id = #{startId},</if>
+            <if test="endId != null">end_id = #{endId},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteEntityClassRelationById" parameterType="Long">
+        delete from entity_class_relation where id = #{id}
+    </delete>
+
+    <delete id="deleteEntityClassRelationByIds" parameterType="String">
+        delete from entity_class_relation where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 117 - 0
kgraph-graph/src/main/resources/mapper/suport/BuildEntityRelationMapper.xml

@@ -0,0 +1,117 @@
+<?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.kgraph.graph.suport.mapper.BuildEntityRelationMapper">
+    
+    <resultMap type="BuildEntityRelation" id="BuildEntityRelationResult">
+        <result property="id"    column="id"    />
+        <result property="subTaskId"    column="sub_task_id"    />
+        <result property="subEntityClassId"    column="sub_entity_class_id"    />
+        <result property="objEntityClassId"    column="obj_entity_class_id"    />
+        <result property="entityClassRelId"    column="entity_class_rel_id"    />
+        <result property="subEntity"    column="sub_entity"    />
+        <result property="objEntity"    column="obj_entity"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectBuildEntityRelationVo">
+        select id, sub_task_id, sub_entity_class_id, obj_entity_class_id, entity_class_rel_id, sub_entity, obj_entity, create_by, create_time, update_by, update_time from t_build_entity_relation
+    </sql>
+
+    <select id="selectBuildEntityRelationList" parameterType="BuildEntityRelation" resultMap="BuildEntityRelationResult">
+        <include refid="selectBuildEntityRelationVo"/>
+        <where>  
+            <if test="subTaskId != null "> and sub_task_id = #{subTaskId}</if>
+            <if test="subEntityClassId != null "> and sub_entity_class_id = #{subEntityClassId}</if>
+            <if test="objEntityClassId != null "> and obj_entity_class_id = #{objEntityClassId}</if>
+            <if test="entityClassRelId != null "> and entity_class_rel_id = #{entityClassRelId}</if>
+            <if test="subEntity != null  and subEntity != ''"> and sub_entity = #{subEntity}</if>
+            <if test="objEntity != null  and objEntity != ''"> and obj_entity = #{objEntity}</if>
+        </where>
+    </select>
+    
+    <select id="selectBuildEntityRelationById" parameterType="Long" resultMap="BuildEntityRelationResult">
+        <include refid="selectBuildEntityRelationVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertBuildEntityRelation" parameterType="BuildEntityRelation" useGeneratedKeys="true" keyProperty="id">
+        insert into t_build_entity_relation
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="subTaskId != null">sub_task_id,</if>
+            <if test="subEntityClassId != null">sub_entity_class_id,</if>
+            <if test="objEntityClassId != null">obj_entity_class_id,</if>
+            <if test="entityClassRelId != null">entity_class_rel_id,</if>
+            <if test="subEntity != null">sub_entity,</if>
+            <if test="objEntity != null">obj_entity,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="subTaskId != null">#{subTaskId},</if>
+            <if test="subEntityClassId != null">#{subEntityClassId},</if>
+            <if test="objEntityClassId != null">#{objEntityClassId},</if>
+            <if test="entityClassRelId != null">#{entityClassRelId},</if>
+            <if test="subEntity != null">#{subEntity},</if>
+            <if test="objEntity != null">#{objEntity},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateBuildEntityRelation" parameterType="BuildEntityRelation">
+        update t_build_entity_relation
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="subTaskId != null">sub_task_id = #{subTaskId},</if>
+            <if test="subEntityClassId != null">sub_entity_class_id = #{subEntityClassId},</if>
+            <if test="objEntityClassId != null">obj_entity_class_id = #{objEntityClassId},</if>
+            <if test="entityClassRelId != null">entity_class_rel_id = #{entityClassRelId},</if>
+            <if test="subEntity != null">sub_entity = #{subEntity},</if>
+            <if test="objEntity != null">obj_entity = #{objEntity},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteBuildEntityRelationById" parameterType="Long">
+        delete from t_build_entity_relation where id = #{id}
+    </delete>
+
+    <delete id="deleteBuildEntityRelationByIds" parameterType="String">
+        delete from t_build_entity_relation where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <select id="getClassRelationList" resultType="Map">
+        SELECT
+            tbr.id,
+            ecr.id relationId,
+            ecr.start_id startId,
+            ecr.end_id endId,
+            tbr.sub_task_id subTaskId,
+            ( SELECT ec.`name` FROM entity_class ec WHERE ec.id = ecr.start_id ) AS subName,
+            ( SELECT `name` FROM entity_class ec WHERE ec.id = ecr.end_id ) AS objName,
+            ecr.`name`,
+            tbr.sub_entity subEntity,
+            tbr.obj_entity objEntity
+        FROM
+            entity_class_relation ecr
+                LEFT JOIN t_build_entity_relation tbr ON ecr.id = tbr.entity_class_rel_id
+                AND ecr.start_id = tbr.sub_entity_class_id
+                AND ecr.end_id = tbr.obj_entity_class_id
+                AND tbr.sub_task_id = #{subTaskId}
+    </select>
+</mapper>

+ 82 - 0
kgraph-graph/src/main/resources/mapper/suport/TBuildFlowMapper.xml

@@ -0,0 +1,82 @@
+<?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.kgraph.graph.suport.mapper.TBuildFlowMapper">
+    
+    <resultMap type="TBuildFlow" id="TBuildFlowResult">
+        <result property="id"    column="id"    />
+        <result property="errorCode"    column="error_code"    />
+        <result property="flowEncode"    column="flow_encode"    />
+        <result property="flowTreeJson"    column="flow_tree_json"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectTBuildFlowVo">
+        select id, error_code, flow_encode, flow_tree_json, create_by, create_time, update_by, update_time from t_build_flow
+    </sql>
+
+    <select id="selectTBuildFlowList" parameterType="TBuildFlow" resultMap="TBuildFlowResult">
+        <include refid="selectTBuildFlowVo"/>
+        <where>  
+            <if test="errorCode != null  and errorCode != ''"> and error_code = #{errorCode}</if>
+            <if test="flowEncode != null  and flowEncode != ''"> and flow_encode = #{flowEncode}</if>
+            <if test="flowTreeJson != null  and flowTreeJson != ''"> and flow_tree_json = #{flowTreeJson}</if>
+        </where>
+    </select>
+    
+    <select id="selectTBuildFlowById" parameterType="Long" resultMap="TBuildFlowResult">
+        <include refid="selectTBuildFlowVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTBuildFlow" parameterType="TBuildFlow" useGeneratedKeys="true" keyProperty="id">
+        insert into t_build_flow
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="errorCode != null">error_code,</if>
+            <if test="flowEncode != null">flow_encode,</if>
+            <if test="flowTreeJson != null">flow_tree_json,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="errorCode != null">#{errorCode},</if>
+            <if test="flowEncode != null">#{flowEncode},</if>
+            <if test="flowTreeJson != null">#{flowTreeJson},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTBuildFlow" parameterType="TBuildFlow">
+        update t_build_flow
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="errorCode != null">error_code = #{errorCode},</if>
+            <if test="flowEncode != null">flow_encode = #{flowEncode},</if>
+            <if test="flowTreeJson != null">flow_tree_json = #{flowTreeJson},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTBuildFlowById" parameterType="Long">
+        delete from t_build_flow where id = #{id}
+    </delete>
+
+    <delete id="deleteTBuildFlowByIds" parameterType="String">
+        delete from t_build_flow where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 77 - 0
kgraph-graph/src/main/resources/mapper/suport/TCheckPiontMapper.xml

@@ -0,0 +1,77 @@
+<?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.kgraph.graph.suport.mapper.TCheckPiontMapper">
+    
+    <resultMap type="TCheckPiont" id="TCheckPiontResult">
+        <result property="id"    column="id"    />
+        <result property="code"    column="code"    />
+        <result property="checkPiont"    column="check_piont"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectTCheckPiontVo">
+        select id, code, check_piont, create_by, create_time, update_by, update_time from t_check_piont
+    </sql>
+
+    <select id="selectTCheckPiontList" parameterType="TCheckPiont" resultMap="TCheckPiontResult">
+        <include refid="selectTCheckPiontVo"/>
+        <where>  
+            <if test="code != null  and code != ''"> and code = #{code}</if>
+            <if test="checkPiont != null  and checkPiont != ''"> and check_piont = #{checkPiont}</if>
+        </where>
+    </select>
+    
+    <select id="selectTCheckPiontById" parameterType="Long" resultMap="TCheckPiontResult">
+        <include refid="selectTCheckPiontVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTCheckPiont" parameterType="TCheckPiont" useGeneratedKeys="true" keyProperty="id">
+        insert into t_check_piont
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="code != null">code,</if>
+            <if test="checkPiont != null">check_piont,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="code != null">#{code},</if>
+            <if test="checkPiont != null">#{checkPiont},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTCheckPiont" parameterType="TCheckPiont">
+        update t_check_piont
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="code != null">code = #{code},</if>
+            <if test="checkPiont != null">check_piont = #{checkPiont},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTCheckPiontById" parameterType="Long">
+        delete from t_check_piont where id = #{id}
+    </delete>
+
+    <delete id="deleteTCheckPiontByIds" parameterType="String">
+        delete from t_check_piont where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>