twzydn20000928 vor 1 Jahr
Ursprung
Commit
59426daf5b
38 geänderte Dateien mit 4059 neuen und 0 gelöschten Zeilen
  1. 107 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/AlgorithmController.java
  2. 107 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/AlgorithmIoFieldController.java
  3. 104 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/AlgorithmSubTypeController.java
  4. 104 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/FileController.java
  5. 104 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/SubAlgorithmController.java
  6. 130 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/Algorithm.java
  7. 43 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/AlgorithmIoField.java
  8. 84 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/AlgorithmSubType.java
  9. 84 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/File.java
  10. 84 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/SubAlgorithm.java
  11. 66 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/AlgorithmIoFieldMapper.java
  12. 65 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/AlgorithmMapper.java
  13. 61 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/AlgorithmSubTypeMapper.java
  14. 61 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/FileMapper.java
  15. 61 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/SubAlgorithmMapper.java
  16. 65 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IAlgorithmIoFieldService.java
  17. 65 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IAlgorithmService.java
  18. 61 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IAlgorithmSubTypeService.java
  19. 61 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IFileService.java
  20. 61 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/ISubAlgorithmService.java
  21. 101 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/AlgorithmIoFieldServiceImpl.java
  22. 101 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/AlgorithmServiceImpl.java
  23. 96 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/AlgorithmSubTypeServiceImpl.java
  24. 96 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/FileServiceImpl.java
  25. 96 0
      pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/SubAlgorithmServiceImpl.java
  26. 105 0
      pdaaphm-admin/src/main/resources/mapper/algoManager/AlgorithmMapper.xml
  27. 86 0
      pdaaphm-admin/src/main/resources/mapper/algoManager/FileMapper.xml
  28. 86 0
      pdaaphm-admin/src/main/resources/mapper/algoManager/SubAlgorithmMapper.xml
  29. 96 0
      pdaaphm-admin/src/main/resources/mapper/conf/AlgorithmIoFieldMapper.xml
  30. 86 0
      pdaaphm-admin/src/main/resources/mapper/conf/AlgorithmSubTypeMapper.xml
  31. 52 0
      pdaaphm-ui/src/api/algoManager/algorithm.js
  32. 44 0
      pdaaphm-ui/src/api/algoManager/file.js
  33. 52 0
      pdaaphm-ui/src/api/conf/field.js
  34. 44 0
      pdaaphm-ui/src/api/conf/subType.js
  35. 418 0
      pdaaphm-ui/src/views/algoManager/algorithm/index.vue
  36. 282 0
      pdaaphm-ui/src/views/algoManager/file/index.vue
  37. 344 0
      pdaaphm-ui/src/views/conf/field/index.vue
  38. 296 0
      pdaaphm-ui/src/views/conf/subType/index.vue

+ 107 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/AlgorithmController.java

@@ -0,0 +1,107 @@
+package com.pdaaphm.biz.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.pdaaphm.common.annotation.Log;
+import com.pdaaphm.common.core.controller.BaseController;
+import com.pdaaphm.common.core.domain.AjaxResult;
+import com.pdaaphm.common.enums.BusinessType;
+import com.pdaaphm.biz.domain.Algorithm;
+import com.pdaaphm.biz.service.IAlgorithmService;
+import com.pdaaphm.common.utils.poi.ExcelUtil;
+import com.pdaaphm.common.core.page.TableDataInfo;
+
+/**
+ * 算法Controller
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+@RestController
+@RequestMapping("/algoManager/algorithm")
+public class AlgorithmController extends BaseController
+{
+    @Autowired
+    private IAlgorithmService algorithmService;
+
+    /**
+     * 查询算法列表
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:algorithm:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(Algorithm algorithm)
+    {
+        startPage();
+        List<Algorithm> list = algorithmService.selectAlgorithmList(algorithm);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出算法列表
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:algorithm:export')")
+    @Log(title = "算法", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, Algorithm algorithm)
+    {
+        List<Algorithm> list = algorithmService.selectAlgorithmList(algorithm);
+        ExcelUtil<Algorithm> util = new ExcelUtil<Algorithm>(Algorithm.class);
+        util.exportExcel(response, list, "算法数据");
+    }
+
+    /**
+     * 获取算法详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:algorithm:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(algorithmService.selectAlgorithmById(id));
+    }
+
+    /**
+     * 新增算法
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:algorithm:add')")
+    @Log(title = "算法", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody Algorithm algorithm)
+    {
+        return toAjax(algorithmService.insertAlgorithm(algorithm));
+    }
+
+    /**
+     * 修改算法
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:algorithm:edit')")
+    @Log(title = "算法", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody Algorithm algorithm)
+    {
+        return toAjax(algorithmService.updateAlgorithm(algorithm));
+    }
+
+    /**
+     * 删除算法
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:algorithm:remove')")
+    @Log(title = "算法", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(algorithmService.deleteAlgorithmByIds(ids));
+    }
+
+    @GetMapping("/getOption")
+    public AjaxResult getOption() { return success(algorithmService.getOption()); }
+}

+ 107 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/AlgorithmIoFieldController.java

@@ -0,0 +1,107 @@
+package com.pdaaphm.biz.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.pdaaphm.common.annotation.Log;
+import com.pdaaphm.common.core.controller.BaseController;
+import com.pdaaphm.common.core.domain.AjaxResult;
+import com.pdaaphm.common.enums.BusinessType;
+import com.pdaaphm.biz.domain.AlgorithmIoField;
+import com.pdaaphm.biz.service.IAlgorithmIoFieldService;
+import com.pdaaphm.common.utils.poi.ExcelUtil;
+import com.pdaaphm.common.core.page.TableDataInfo;
+
+/**
+ * 算法输入输出字段Controller
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+@RestController
+@RequestMapping("/conf/field")
+public class AlgorithmIoFieldController extends BaseController
+{
+    @Autowired
+    private IAlgorithmIoFieldService algorithmIoFieldService;
+
+    /**
+     * 查询算法输入输出字段列表
+     */
+    @PreAuthorize("@ss.hasPermi('conf:field:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(AlgorithmIoField algorithmIoField)
+    {
+        startPage();
+        List<AlgorithmIoField> list = algorithmIoFieldService.selectAlgorithmIoFieldList(algorithmIoField);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出算法输入输出字段列表
+     */
+    @PreAuthorize("@ss.hasPermi('conf:field:export')")
+    @Log(title = "算法输入输出字段", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, AlgorithmIoField algorithmIoField)
+    {
+        List<AlgorithmIoField> list = algorithmIoFieldService.selectAlgorithmIoFieldList(algorithmIoField);
+        ExcelUtil<AlgorithmIoField> util = new ExcelUtil<AlgorithmIoField>(AlgorithmIoField.class);
+        util.exportExcel(response, list, "算法输入输出字段数据");
+    }
+
+    /**
+     * 获取算法输入输出字段详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('conf:field:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(algorithmIoFieldService.selectAlgorithmIoFieldById(id));
+    }
+
+    /**
+     * 新增算法输入输出字段
+     */
+    @PreAuthorize("@ss.hasPermi('conf:field:add')")
+    @Log(title = "算法输入输出字段", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody AlgorithmIoField algorithmIoField)
+    {
+        return toAjax(algorithmIoFieldService.insertAlgorithmIoField(algorithmIoField));
+    }
+
+    /**
+     * 修改算法输入输出字段
+     */
+    @PreAuthorize("@ss.hasPermi('conf:field:edit')")
+    @Log(title = "算法输入输出字段", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody AlgorithmIoField algorithmIoField)
+    {
+        return toAjax(algorithmIoFieldService.updateAlgorithmIoField(algorithmIoField));
+    }
+
+    /**
+     * 删除算法输入输出字段
+     */
+    @PreAuthorize("@ss.hasPermi('conf:field:remove')")
+    @Log(title = "算法输入输出字段", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(algorithmIoFieldService.deleteAlgorithmIoFieldByIds(ids));
+    }
+
+    @GetMapping(value = "/getIoSubList/{subTypeId}")
+    public AjaxResult getIoSubList(@PathVariable("subTypeId") Long id) { return success(algorithmIoFieldService.getIoSubList(id)); }
+}

+ 104 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/AlgorithmSubTypeController.java

@@ -0,0 +1,104 @@
+package com.pdaaphm.biz.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.pdaaphm.common.annotation.Log;
+import com.pdaaphm.common.core.controller.BaseController;
+import com.pdaaphm.common.core.domain.AjaxResult;
+import com.pdaaphm.common.enums.BusinessType;
+import com.pdaaphm.biz.domain.AlgorithmSubType;
+import com.pdaaphm.biz.service.IAlgorithmSubTypeService;
+import com.pdaaphm.common.utils.poi.ExcelUtil;
+import com.pdaaphm.common.core.page.TableDataInfo;
+
+/**
+ * 算法子类型Controller
+ * 
+ * @author allen
+ * @date 2023-07-26
+ */
+@RestController
+@RequestMapping("/conf/subType")
+public class AlgorithmSubTypeController extends BaseController
+{
+    @Autowired
+    private IAlgorithmSubTypeService algorithmSubTypeService;
+
+    /**
+     * 查询算法子类型列表
+     */
+    @PreAuthorize("@ss.hasPermi('conf:subType:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(AlgorithmSubType algorithmSubType)
+    {
+        startPage();
+        List<AlgorithmSubType> list = algorithmSubTypeService.selectAlgorithmSubTypeList(algorithmSubType);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出算法子类型列表
+     */
+    @PreAuthorize("@ss.hasPermi('conf:subType:export')")
+    @Log(title = "算法子类型", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, AlgorithmSubType algorithmSubType)
+    {
+        List<AlgorithmSubType> list = algorithmSubTypeService.selectAlgorithmSubTypeList(algorithmSubType);
+        ExcelUtil<AlgorithmSubType> util = new ExcelUtil<AlgorithmSubType>(AlgorithmSubType.class);
+        util.exportExcel(response, list, "算法子类型数据");
+    }
+
+    /**
+     * 获取算法子类型详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('conf:subType:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(algorithmSubTypeService.selectAlgorithmSubTypeById(id));
+    }
+
+    /**
+     * 新增算法子类型
+     */
+    @PreAuthorize("@ss.hasPermi('conf:subType:add')")
+    @Log(title = "算法子类型", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody AlgorithmSubType algorithmSubType)
+    {
+        return toAjax(algorithmSubTypeService.insertAlgorithmSubType(algorithmSubType));
+    }
+
+    /**
+     * 修改算法子类型
+     */
+    @PreAuthorize("@ss.hasPermi('conf:subType:edit')")
+    @Log(title = "算法子类型", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody AlgorithmSubType algorithmSubType)
+    {
+        return toAjax(algorithmSubTypeService.updateAlgorithmSubType(algorithmSubType));
+    }
+
+    /**
+     * 删除算法子类型
+     */
+    @PreAuthorize("@ss.hasPermi('conf:subType:remove')")
+    @Log(title = "算法子类型", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(algorithmSubTypeService.deleteAlgorithmSubTypeByIds(ids));
+    }
+}

+ 104 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/FileController.java

@@ -0,0 +1,104 @@
+package com.pdaaphm.biz.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.pdaaphm.common.annotation.Log;
+import com.pdaaphm.common.core.controller.BaseController;
+import com.pdaaphm.common.core.domain.AjaxResult;
+import com.pdaaphm.common.enums.BusinessType;
+import com.pdaaphm.biz.domain.File;
+import com.pdaaphm.biz.service.IFileService;
+import com.pdaaphm.common.utils.poi.ExcelUtil;
+import com.pdaaphm.common.core.page.TableDataInfo;
+
+/**
+ * 文件Controller
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+@RestController
+@RequestMapping("/algoManager/file")
+public class FileController extends BaseController
+{
+    @Autowired
+    private IFileService fileService;
+
+    /**
+     * 查询文件列表
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:file:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(File file)
+    {
+        startPage();
+        List<File> list = fileService.selectFileList(file);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出文件列表
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:file:export')")
+    @Log(title = "文件", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, File file)
+    {
+        List<File> list = fileService.selectFileList(file);
+        ExcelUtil<File> util = new ExcelUtil<File>(File.class);
+        util.exportExcel(response, list, "文件数据");
+    }
+
+    /**
+     * 获取文件详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:file:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(fileService.selectFileById(id));
+    }
+
+    /**
+     * 新增文件
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:file:add')")
+    @Log(title = "文件", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody File file)
+    {
+        return toAjax(fileService.insertFile(file));
+    }
+
+    /**
+     * 修改文件
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:file:edit')")
+    @Log(title = "文件", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody File file)
+    {
+        return toAjax(fileService.updateFile(file));
+    }
+
+    /**
+     * 删除文件
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:file:remove')")
+    @Log(title = "文件", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(fileService.deleteFileByIds(ids));
+    }
+}

+ 104 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/SubAlgorithmController.java

@@ -0,0 +1,104 @@
+package com.pdaaphm.biz.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.pdaaphm.common.annotation.Log;
+import com.pdaaphm.common.core.controller.BaseController;
+import com.pdaaphm.common.core.domain.AjaxResult;
+import com.pdaaphm.common.enums.BusinessType;
+import com.pdaaphm.biz.domain.SubAlgorithm;
+import com.pdaaphm.biz.service.ISubAlgorithmService;
+import com.pdaaphm.common.utils.poi.ExcelUtil;
+import com.pdaaphm.common.core.page.TableDataInfo;
+
+/**
+ * 子算法Controller
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+@RestController
+@RequestMapping("/algoManager/subAlgorithm")
+public class SubAlgorithmController extends BaseController
+{
+    @Autowired
+    private ISubAlgorithmService subAlgorithmService;
+
+    /**
+     * 查询子算法列表
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:subAlgorithm:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SubAlgorithm subAlgorithm)
+    {
+        startPage();
+        List<SubAlgorithm> list = subAlgorithmService.selectSubAlgorithmList(subAlgorithm);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出子算法列表
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:subAlgorithm:export')")
+    @Log(title = "子算法", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SubAlgorithm subAlgorithm)
+    {
+        List<SubAlgorithm> list = subAlgorithmService.selectSubAlgorithmList(subAlgorithm);
+        ExcelUtil<SubAlgorithm> util = new ExcelUtil<SubAlgorithm>(SubAlgorithm.class);
+        util.exportExcel(response, list, "子算法数据");
+    }
+
+    /**
+     * 获取子算法详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:subAlgorithm:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(subAlgorithmService.selectSubAlgorithmById(id));
+    }
+
+    /**
+     * 新增子算法
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:subAlgorithm:add')")
+    @Log(title = "子算法", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SubAlgorithm subAlgorithm)
+    {
+        return toAjax(subAlgorithmService.insertSubAlgorithm(subAlgorithm));
+    }
+
+    /**
+     * 修改子算法
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:subAlgorithm:edit')")
+    @Log(title = "子算法", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SubAlgorithm subAlgorithm)
+    {
+        return toAjax(subAlgorithmService.updateSubAlgorithm(subAlgorithm));
+    }
+
+    /**
+     * 删除子算法
+     */
+    @PreAuthorize("@ss.hasPermi('algoManager:subAlgorithm:remove')")
+    @Log(title = "子算法", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(subAlgorithmService.deleteSubAlgorithmByIds(ids));
+    }
+}

+ 130 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/Algorithm.java

@@ -0,0 +1,130 @@
+package com.pdaaphm.biz.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.pdaaphm.common.annotation.Excel;
+import com.pdaaphm.common.core.domain.BaseEntity;
+
+/**
+ * 算法对象 t_algorithm
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public class Algorithm extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 算法类型 */
+    @Excel(name = "算法类型")
+    private String type;
+
+    /** 子类型id */
+    @Excel(name = "子类型id")
+    private Long subTypeId;
+
+    /** 名称 */
+    @Excel(name = "名称")
+    private String name;
+
+    /** 开始时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date startTime;
+
+    /** 完成时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date completedTime;
+
+    /** 耗时(s) */
+    @Excel(name = "耗时(s)")
+    private Long costSecond;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+    public void setSubTypeId(Long subTypeId) 
+    {
+        this.subTypeId = subTypeId;
+    }
+
+    public Long getSubTypeId() 
+    {
+        return subTypeId;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setStartTime(Date startTime) 
+    {
+        this.startTime = startTime;
+    }
+
+    public Date getStartTime() 
+    {
+        return startTime;
+    }
+    public void setCompletedTime(Date completedTime) 
+    {
+        this.completedTime = completedTime;
+    }
+
+    public Date getCompletedTime() 
+    {
+        return completedTime;
+    }
+    public void setCostSecond(Long costSecond) 
+    {
+        this.costSecond = costSecond;
+    }
+
+    public Long getCostSecond() 
+    {
+        return costSecond;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("subTypeId", getSubTypeId())
+            .append("name", getName())
+            .append("startTime", getStartTime())
+            .append("completedTime", getCompletedTime())
+            .append("costSecond", getCostSecond())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 43 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/AlgorithmIoField.java

@@ -0,0 +1,43 @@
+package com.pdaaphm.biz.domain;
+
+import com.pdaaphm.common.annotation.DataSource;
+import lombok.Data;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.pdaaphm.common.annotation.Excel;
+import com.pdaaphm.common.core.domain.BaseEntity;
+
+/**
+ * 算法输入输出字段对象 t_algorithm_io_field
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+@Data
+public class AlgorithmIoField extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 算法子类型编号 */
+    @Excel(name = "算法子类型编号")
+    private Long algorithmSubId;
+
+    /** 输入/输出 */
+    @Excel(name = "输入/输出")
+    private String type;
+
+    /** 名称 */
+    @Excel(name = "名称")
+    private String name;
+
+    /** 排序 */
+    @Excel(name = "排序")
+    private Integer index;
+
+    /** 算法子类型名称 */
+    @Excel(name = "算法子类型名称")
+    private String algoSubName;
+}

+ 84 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/AlgorithmSubType.java

@@ -0,0 +1,84 @@
+package com.pdaaphm.biz.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.pdaaphm.common.annotation.Excel;
+import com.pdaaphm.common.core.domain.BaseEntity;
+
+/**
+ * 算法子类型对象 t_algorithm_sub_type
+ * 
+ * @author allen
+ * @date 2023-07-26
+ */
+public class AlgorithmSubType extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 类型 */
+    @Excel(name = "类型")
+    private String type;
+
+    /** 算法子名称 */
+    @Excel(name = "算法子名称")
+    private String name;
+
+    /** 算法url */
+    @Excel(name = "算法url")
+    private String url;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setUrl(String url) 
+    {
+        this.url = url;
+    }
+
+    public String getUrl() 
+    {
+        return url;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("name", getName())
+            .append("url", getUrl())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 84 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/File.java

@@ -0,0 +1,84 @@
+package com.pdaaphm.biz.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.pdaaphm.common.annotation.Excel;
+import com.pdaaphm.common.core.domain.BaseEntity;
+
+/**
+ * 文件对象 t_file
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public class File extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 文档名称 */
+    @Excel(name = "文档名称")
+    private String name;
+
+    /** 文档路径 */
+    @Excel(name = "文档路径")
+    private String path;
+
+    /** 类型 */
+    @Excel(name = "类型")
+    private String type;
+
+    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 setPath(String path) 
+    {
+        this.path = path;
+    }
+
+    public String getPath() 
+    {
+        return path;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("name", getName())
+            .append("path", getPath())
+            .append("type", getType())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 84 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/domain/SubAlgorithm.java

@@ -0,0 +1,84 @@
+package com.pdaaphm.biz.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.pdaaphm.common.annotation.Excel;
+import com.pdaaphm.common.core.domain.BaseEntity;
+
+/**
+ * 子算法对象 t_sub_algorithm
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public class SubAlgorithm extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 主表id */
+    @Excel(name = "主表id")
+    private Long algorithmId;
+
+    /** 字段id */
+    @Excel(name = "字段id")
+    private Long fieldId;
+
+    /** 文件id */
+    @Excel(name = "文件id")
+    private Long uploadId;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setAlgorithmId(Long algorithmId) 
+    {
+        this.algorithmId = algorithmId;
+    }
+
+    public Long getAlgorithmId() 
+    {
+        return algorithmId;
+    }
+    public void setFieldId(Long fieldId) 
+    {
+        this.fieldId = fieldId;
+    }
+
+    public Long getFieldId() 
+    {
+        return fieldId;
+    }
+    public void setUploadId(Long uploadId) 
+    {
+        this.uploadId = uploadId;
+    }
+
+    public Long getUploadId() 
+    {
+        return uploadId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("algorithmId", getAlgorithmId())
+            .append("fieldId", getFieldId())
+            .append("uploadId", getUploadId())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 66 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/AlgorithmIoFieldMapper.java

@@ -0,0 +1,66 @@
+package com.pdaaphm.biz.mapper;
+
+import java.util.List;
+import java.util.Map;
+
+import com.pdaaphm.biz.domain.AlgorithmIoField;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 算法输入输出字段Mapper接口
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface AlgorithmIoFieldMapper
+{
+    /**
+     * 查询算法输入输出字段
+     *
+     * @param id 算法输入输出字段主键
+     * @return 算法输入输出字段
+     */
+    public AlgorithmIoField selectAlgorithmIoFieldById(Long id);
+
+    /**
+     * 查询算法输入输出字段列表
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 算法输入输出字段集合
+     */
+    public List<AlgorithmIoField> selectAlgorithmIoFieldList(AlgorithmIoField algorithmIoField);
+
+    /**
+     * 新增算法输入输出字段
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 结果
+     */
+    public int insertAlgorithmIoField(AlgorithmIoField algorithmIoField);
+
+    /**
+     * 修改算法输入输出字段
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 结果
+     */
+    public int updateAlgorithmIoField(AlgorithmIoField algorithmIoField);
+
+    /**
+     * 删除算法输入输出字段
+     *
+     * @param id 算法输入输出字段主键
+     * @return 结果
+     */
+    public int deleteAlgorithmIoFieldById(Long id);
+
+    /**
+     * 批量删除算法输入输出字段
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAlgorithmIoFieldByIds(Long[] ids);
+
+    List<Map> getIoSubList(Long id);
+}

+ 65 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/AlgorithmMapper.java

@@ -0,0 +1,65 @@
+package com.pdaaphm.biz.mapper;
+
+import java.util.List;
+import java.util.Map;
+
+import com.pdaaphm.biz.domain.Algorithm;
+
+/**
+ * 算法Mapper接口
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface AlgorithmMapper
+{
+    /**
+     * 查询算法
+     *
+     * @param id 算法主键
+     * @return 算法
+     */
+    public Algorithm selectAlgorithmById(Long id);
+
+    /**
+     * 查询算法列表
+     *
+     * @param algorithm 算法
+     * @return 算法集合
+     */
+    public List<Algorithm> selectAlgorithmList(Algorithm algorithm);
+
+    /**
+     * 新增算法
+     *
+     * @param algorithm 算法
+     * @return 结果
+     */
+    public int insertAlgorithm(Algorithm algorithm);
+
+    /**
+     * 修改算法
+     *
+     * @param algorithm 算法
+     * @return 结果
+     */
+    public int updateAlgorithm(Algorithm algorithm);
+
+    /**
+     * 删除算法
+     *
+     * @param id 算法主键
+     * @return 结果
+     */
+    public int deleteAlgorithmById(Long id);
+
+    /**
+     * 批量删除算法
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAlgorithmByIds(Long[] ids);
+
+    List<Map> getOption();
+}

+ 61 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/AlgorithmSubTypeMapper.java

@@ -0,0 +1,61 @@
+package com.pdaaphm.biz.mapper;
+
+import java.util.List;
+import com.pdaaphm.biz.domain.AlgorithmSubType;
+
+/**
+ * 算法子类型Mapper接口
+ * 
+ * @author allen
+ * @date 2023-07-26
+ */
+public interface AlgorithmSubTypeMapper 
+{
+    /**
+     * 查询算法子类型
+     * 
+     * @param id 算法子类型主键
+     * @return 算法子类型
+     */
+    public AlgorithmSubType selectAlgorithmSubTypeById(Long id);
+
+    /**
+     * 查询算法子类型列表
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 算法子类型集合
+     */
+    public List<AlgorithmSubType> selectAlgorithmSubTypeList(AlgorithmSubType algorithmSubType);
+
+    /**
+     * 新增算法子类型
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 结果
+     */
+    public int insertAlgorithmSubType(AlgorithmSubType algorithmSubType);
+
+    /**
+     * 修改算法子类型
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 结果
+     */
+    public int updateAlgorithmSubType(AlgorithmSubType algorithmSubType);
+
+    /**
+     * 删除算法子类型
+     * 
+     * @param id 算法子类型主键
+     * @return 结果
+     */
+    public int deleteAlgorithmSubTypeById(Long id);
+
+    /**
+     * 批量删除算法子类型
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAlgorithmSubTypeByIds(Long[] ids);
+}

+ 61 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/FileMapper.java

@@ -0,0 +1,61 @@
+package com.pdaaphm.biz.mapper;
+
+import java.util.List;
+import com.pdaaphm.biz.domain.File;
+
+/**
+ * 文件Mapper接口
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface FileMapper 
+{
+    /**
+     * 查询文件
+     * 
+     * @param id 文件主键
+     * @return 文件
+     */
+    public File selectFileById(Long id);
+
+    /**
+     * 查询文件列表
+     * 
+     * @param file 文件
+     * @return 文件集合
+     */
+    public List<File> selectFileList(File file);
+
+    /**
+     * 新增文件
+     * 
+     * @param file 文件
+     * @return 结果
+     */
+    public int insertFile(File file);
+
+    /**
+     * 修改文件
+     * 
+     * @param file 文件
+     * @return 结果
+     */
+    public int updateFile(File file);
+
+    /**
+     * 删除文件
+     * 
+     * @param id 文件主键
+     * @return 结果
+     */
+    public int deleteFileById(Long id);
+
+    /**
+     * 批量删除文件
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteFileByIds(Long[] ids);
+}

+ 61 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/mapper/SubAlgorithmMapper.java

@@ -0,0 +1,61 @@
+package com.pdaaphm.biz.mapper;
+
+import java.util.List;
+import com.pdaaphm.biz.domain.SubAlgorithm;
+
+/**
+ * 子算法Mapper接口
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface SubAlgorithmMapper 
+{
+    /**
+     * 查询子算法
+     * 
+     * @param id 子算法主键
+     * @return 子算法
+     */
+    public SubAlgorithm selectSubAlgorithmById(Long id);
+
+    /**
+     * 查询子算法列表
+     * 
+     * @param subAlgorithm 子算法
+     * @return 子算法集合
+     */
+    public List<SubAlgorithm> selectSubAlgorithmList(SubAlgorithm subAlgorithm);
+
+    /**
+     * 新增子算法
+     * 
+     * @param subAlgorithm 子算法
+     * @return 结果
+     */
+    public int insertSubAlgorithm(SubAlgorithm subAlgorithm);
+
+    /**
+     * 修改子算法
+     * 
+     * @param subAlgorithm 子算法
+     * @return 结果
+     */
+    public int updateSubAlgorithm(SubAlgorithm subAlgorithm);
+
+    /**
+     * 删除子算法
+     * 
+     * @param id 子算法主键
+     * @return 结果
+     */
+    public int deleteSubAlgorithmById(Long id);
+
+    /**
+     * 批量删除子算法
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSubAlgorithmByIds(Long[] ids);
+}

+ 65 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IAlgorithmIoFieldService.java

@@ -0,0 +1,65 @@
+package com.pdaaphm.biz.service;
+
+import java.util.List;
+import java.util.Map;
+
+import com.pdaaphm.biz.domain.AlgorithmIoField;
+
+/**
+ * 算法输入输出字段Service接口
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface IAlgorithmIoFieldService
+{
+    /**
+     * 查询算法输入输出字段
+     *
+     * @param id 算法输入输出字段主键
+     * @return 算法输入输出字段
+     */
+    public AlgorithmIoField selectAlgorithmIoFieldById(Long id);
+
+    /**
+     * 查询算法输入输出字段列表
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 算法输入输出字段集合
+     */
+    public List<AlgorithmIoField> selectAlgorithmIoFieldList(AlgorithmIoField algorithmIoField);
+
+    /**
+     * 新增算法输入输出字段
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 结果
+     */
+    public int insertAlgorithmIoField(AlgorithmIoField algorithmIoField);
+
+    /**
+     * 修改算法输入输出字段
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 结果
+     */
+    public int updateAlgorithmIoField(AlgorithmIoField algorithmIoField);
+
+    /**
+     * 批量删除算法输入输出字段
+     *
+     * @param ids 需要删除的算法输入输出字段主键集合
+     * @return 结果
+     */
+    public int deleteAlgorithmIoFieldByIds(Long[] ids);
+
+    /**
+     * 删除算法输入输出字段信息
+     *
+     * @param id 算法输入输出字段主键
+     * @return 结果
+     */
+    public int deleteAlgorithmIoFieldById(Long id);
+
+    List<Map> getIoSubList(Long id);
+}

+ 65 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IAlgorithmService.java

@@ -0,0 +1,65 @@
+package com.pdaaphm.biz.service;
+
+import java.util.List;
+import java.util.Map;
+
+import com.pdaaphm.biz.domain.Algorithm;
+
+/**
+ * 算法Service接口
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface IAlgorithmService
+{
+    /**
+     * 查询算法
+     *
+     * @param id 算法主键
+     * @return 算法
+     */
+    public Algorithm selectAlgorithmById(Long id);
+
+    /**
+     * 查询算法列表
+     *
+     * @param algorithm 算法
+     * @return 算法集合
+     */
+    public List<Algorithm> selectAlgorithmList(Algorithm algorithm);
+
+    /**
+     * 新增算法
+     *
+     * @param algorithm 算法
+     * @return 结果
+     */
+    public int insertAlgorithm(Algorithm algorithm);
+
+    /**
+     * 修改算法
+     *
+     * @param algorithm 算法
+     * @return 结果
+     */
+    public int updateAlgorithm(Algorithm algorithm);
+
+    /**
+     * 批量删除算法
+     *
+     * @param ids 需要删除的算法主键集合
+     * @return 结果
+     */
+    public int deleteAlgorithmByIds(Long[] ids);
+
+    /**
+     * 删除算法信息
+     *
+     * @param id 算法主键
+     * @return 结果
+     */
+    public int deleteAlgorithmById(Long id);
+
+    List<Map> getOption();
+}

+ 61 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IAlgorithmSubTypeService.java

@@ -0,0 +1,61 @@
+package com.pdaaphm.biz.service;
+
+import java.util.List;
+import com.pdaaphm.biz.domain.AlgorithmSubType;
+
+/**
+ * 算法子类型Service接口
+ * 
+ * @author allen
+ * @date 2023-07-26
+ */
+public interface IAlgorithmSubTypeService 
+{
+    /**
+     * 查询算法子类型
+     * 
+     * @param id 算法子类型主键
+     * @return 算法子类型
+     */
+    public AlgorithmSubType selectAlgorithmSubTypeById(Long id);
+
+    /**
+     * 查询算法子类型列表
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 算法子类型集合
+     */
+    public List<AlgorithmSubType> selectAlgorithmSubTypeList(AlgorithmSubType algorithmSubType);
+
+    /**
+     * 新增算法子类型
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 结果
+     */
+    public int insertAlgorithmSubType(AlgorithmSubType algorithmSubType);
+
+    /**
+     * 修改算法子类型
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 结果
+     */
+    public int updateAlgorithmSubType(AlgorithmSubType algorithmSubType);
+
+    /**
+     * 批量删除算法子类型
+     * 
+     * @param ids 需要删除的算法子类型主键集合
+     * @return 结果
+     */
+    public int deleteAlgorithmSubTypeByIds(Long[] ids);
+
+    /**
+     * 删除算法子类型信息
+     * 
+     * @param id 算法子类型主键
+     * @return 结果
+     */
+    public int deleteAlgorithmSubTypeById(Long id);
+}

+ 61 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/IFileService.java

@@ -0,0 +1,61 @@
+package com.pdaaphm.biz.service;
+
+import java.util.List;
+import com.pdaaphm.biz.domain.File;
+
+/**
+ * 文件Service接口
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface IFileService 
+{
+    /**
+     * 查询文件
+     * 
+     * @param id 文件主键
+     * @return 文件
+     */
+    public File selectFileById(Long id);
+
+    /**
+     * 查询文件列表
+     * 
+     * @param file 文件
+     * @return 文件集合
+     */
+    public List<File> selectFileList(File file);
+
+    /**
+     * 新增文件
+     * 
+     * @param file 文件
+     * @return 结果
+     */
+    public int insertFile(File file);
+
+    /**
+     * 修改文件
+     * 
+     * @param file 文件
+     * @return 结果
+     */
+    public int updateFile(File file);
+
+    /**
+     * 批量删除文件
+     * 
+     * @param ids 需要删除的文件主键集合
+     * @return 结果
+     */
+    public int deleteFileByIds(Long[] ids);
+
+    /**
+     * 删除文件信息
+     * 
+     * @param id 文件主键
+     * @return 结果
+     */
+    public int deleteFileById(Long id);
+}

+ 61 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/ISubAlgorithmService.java

@@ -0,0 +1,61 @@
+package com.pdaaphm.biz.service;
+
+import java.util.List;
+import com.pdaaphm.biz.domain.SubAlgorithm;
+
+/**
+ * 子算法Service接口
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+public interface ISubAlgorithmService 
+{
+    /**
+     * 查询子算法
+     * 
+     * @param id 子算法主键
+     * @return 子算法
+     */
+    public SubAlgorithm selectSubAlgorithmById(Long id);
+
+    /**
+     * 查询子算法列表
+     * 
+     * @param subAlgorithm 子算法
+     * @return 子算法集合
+     */
+    public List<SubAlgorithm> selectSubAlgorithmList(SubAlgorithm subAlgorithm);
+
+    /**
+     * 新增子算法
+     * 
+     * @param subAlgorithm 子算法
+     * @return 结果
+     */
+    public int insertSubAlgorithm(SubAlgorithm subAlgorithm);
+
+    /**
+     * 修改子算法
+     * 
+     * @param subAlgorithm 子算法
+     * @return 结果
+     */
+    public int updateSubAlgorithm(SubAlgorithm subAlgorithm);
+
+    /**
+     * 批量删除子算法
+     * 
+     * @param ids 需要删除的子算法主键集合
+     * @return 结果
+     */
+    public int deleteSubAlgorithmByIds(Long[] ids);
+
+    /**
+     * 删除子算法信息
+     * 
+     * @param id 子算法主键
+     * @return 结果
+     */
+    public int deleteSubAlgorithmById(Long id);
+}

+ 101 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/AlgorithmIoFieldServiceImpl.java

@@ -0,0 +1,101 @@
+package com.pdaaphm.biz.service.impl;
+
+import java.util.List;
+import java.util.Map;
+
+import com.pdaaphm.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.pdaaphm.biz.mapper.AlgorithmIoFieldMapper;
+import com.pdaaphm.biz.domain.AlgorithmIoField;
+import com.pdaaphm.biz.service.IAlgorithmIoFieldService;
+
+/**
+ * 算法输入输出字段Service业务层处理
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+@Service
+public class AlgorithmIoFieldServiceImpl implements IAlgorithmIoFieldService
+{
+    @Autowired
+    private AlgorithmIoFieldMapper algorithmIoFieldMapper;
+
+    /**
+     * 查询算法输入输出字段
+     *
+     * @param id 算法输入输出字段主键
+     * @return 算法输入输出字段
+     */
+    @Override
+    public AlgorithmIoField selectAlgorithmIoFieldById(Long id)
+    {
+        return algorithmIoFieldMapper.selectAlgorithmIoFieldById(id);
+    }
+
+    /**
+     * 查询算法输入输出字段列表
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 算法输入输出字段
+     */
+    @Override
+    public List<AlgorithmIoField> selectAlgorithmIoFieldList(AlgorithmIoField algorithmIoField)
+    {
+        return algorithmIoFieldMapper.selectAlgorithmIoFieldList(algorithmIoField);
+    }
+
+    /**
+     * 新增算法输入输出字段
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 结果
+     */
+    @Override
+    public int insertAlgorithmIoField(AlgorithmIoField algorithmIoField)
+    {
+        algorithmIoField.setCreateTime(DateUtils.getNowDate());
+        return algorithmIoFieldMapper.insertAlgorithmIoField(algorithmIoField);
+    }
+
+    /**
+     * 修改算法输入输出字段
+     *
+     * @param algorithmIoField 算法输入输出字段
+     * @return 结果
+     */
+    @Override
+    public int updateAlgorithmIoField(AlgorithmIoField algorithmIoField)
+    {
+        algorithmIoField.setUpdateTime(DateUtils.getNowDate());
+        return algorithmIoFieldMapper.updateAlgorithmIoField(algorithmIoField);
+    }
+
+    /**
+     * 批量删除算法输入输出字段
+     *
+     * @param ids 需要删除的算法输入输出字段主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAlgorithmIoFieldByIds(Long[] ids)
+    {
+        return algorithmIoFieldMapper.deleteAlgorithmIoFieldByIds(ids);
+    }
+
+    /**
+     * 删除算法输入输出字段信息
+     *
+     * @param id 算法输入输出字段主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAlgorithmIoFieldById(Long id)
+    {
+        return algorithmIoFieldMapper.deleteAlgorithmIoFieldById(id);
+    }
+
+    @Override
+    public List<Map> getIoSubList(Long id) { return algorithmIoFieldMapper.getIoSubList(id); }
+}

+ 101 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/AlgorithmServiceImpl.java

@@ -0,0 +1,101 @@
+package com.pdaaphm.biz.service.impl;
+
+import java.util.List;
+import java.util.Map;
+
+import com.pdaaphm.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.pdaaphm.biz.mapper.AlgorithmMapper;
+import com.pdaaphm.biz.domain.Algorithm;
+import com.pdaaphm.biz.service.IAlgorithmService;
+
+/**
+ * 算法Service业务层处理
+ *
+ * @author xlk
+ * @date 2023-07-26
+ */
+@Service
+public class AlgorithmServiceImpl implements IAlgorithmService
+{
+    @Autowired
+    private AlgorithmMapper algorithmMapper;
+
+    /**
+     * 查询算法
+     *
+     * @param id 算法主键
+     * @return 算法
+     */
+    @Override
+    public Algorithm selectAlgorithmById(Long id)
+    {
+        return algorithmMapper.selectAlgorithmById(id);
+    }
+
+    /**
+     * 查询算法列表
+     *
+     * @param algorithm 算法
+     * @return 算法
+     */
+    @Override
+    public List<Algorithm> selectAlgorithmList(Algorithm algorithm)
+    {
+        return algorithmMapper.selectAlgorithmList(algorithm);
+    }
+
+    /**
+     * 新增算法
+     *
+     * @param algorithm 算法
+     * @return 结果
+     */
+    @Override
+    public int insertAlgorithm(Algorithm algorithm)
+    {
+        algorithm.setCreateTime(DateUtils.getNowDate());
+        return algorithmMapper.insertAlgorithm(algorithm);
+    }
+
+    /**
+     * 修改算法
+     *
+     * @param algorithm 算法
+     * @return 结果
+     */
+    @Override
+    public int updateAlgorithm(Algorithm algorithm)
+    {
+        algorithm.setUpdateTime(DateUtils.getNowDate());
+        return algorithmMapper.updateAlgorithm(algorithm);
+    }
+
+    /**
+     * 批量删除算法
+     *
+     * @param ids 需要删除的算法主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAlgorithmByIds(Long[] ids)
+    {
+        return algorithmMapper.deleteAlgorithmByIds(ids);
+    }
+
+    /**
+     * 删除算法信息
+     *
+     * @param id 算法主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAlgorithmById(Long id)
+    {
+        return algorithmMapper.deleteAlgorithmById(id);
+    }
+
+    @Override
+    public List<Map> getOption() { return algorithmMapper.getOption(); }
+}

+ 96 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/AlgorithmSubTypeServiceImpl.java

@@ -0,0 +1,96 @@
+package com.pdaaphm.biz.service.impl;
+
+import java.util.List;
+import com.pdaaphm.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.pdaaphm.biz.mapper.AlgorithmSubTypeMapper;
+import com.pdaaphm.biz.domain.AlgorithmSubType;
+import com.pdaaphm.biz.service.IAlgorithmSubTypeService;
+
+/**
+ * 算法子类型Service业务层处理
+ * 
+ * @author allen
+ * @date 2023-07-26
+ */
+@Service
+public class AlgorithmSubTypeServiceImpl implements IAlgorithmSubTypeService 
+{
+    @Autowired
+    private AlgorithmSubTypeMapper algorithmSubTypeMapper;
+
+    /**
+     * 查询算法子类型
+     * 
+     * @param id 算法子类型主键
+     * @return 算法子类型
+     */
+    @Override
+    public AlgorithmSubType selectAlgorithmSubTypeById(Long id)
+    {
+        return algorithmSubTypeMapper.selectAlgorithmSubTypeById(id);
+    }
+
+    /**
+     * 查询算法子类型列表
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 算法子类型
+     */
+    @Override
+    public List<AlgorithmSubType> selectAlgorithmSubTypeList(AlgorithmSubType algorithmSubType)
+    {
+        return algorithmSubTypeMapper.selectAlgorithmSubTypeList(algorithmSubType);
+    }
+
+    /**
+     * 新增算法子类型
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 结果
+     */
+    @Override
+    public int insertAlgorithmSubType(AlgorithmSubType algorithmSubType)
+    {
+        algorithmSubType.setCreateTime(DateUtils.getNowDate());
+        return algorithmSubTypeMapper.insertAlgorithmSubType(algorithmSubType);
+    }
+
+    /**
+     * 修改算法子类型
+     * 
+     * @param algorithmSubType 算法子类型
+     * @return 结果
+     */
+    @Override
+    public int updateAlgorithmSubType(AlgorithmSubType algorithmSubType)
+    {
+        algorithmSubType.setUpdateTime(DateUtils.getNowDate());
+        return algorithmSubTypeMapper.updateAlgorithmSubType(algorithmSubType);
+    }
+
+    /**
+     * 批量删除算法子类型
+     * 
+     * @param ids 需要删除的算法子类型主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAlgorithmSubTypeByIds(Long[] ids)
+    {
+        return algorithmSubTypeMapper.deleteAlgorithmSubTypeByIds(ids);
+    }
+
+    /**
+     * 删除算法子类型信息
+     * 
+     * @param id 算法子类型主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAlgorithmSubTypeById(Long id)
+    {
+        return algorithmSubTypeMapper.deleteAlgorithmSubTypeById(id);
+    }
+}

+ 96 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/FileServiceImpl.java

@@ -0,0 +1,96 @@
+package com.pdaaphm.biz.service.impl;
+
+import java.util.List;
+import com.pdaaphm.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.pdaaphm.biz.mapper.FileMapper;
+import com.pdaaphm.biz.domain.File;
+import com.pdaaphm.biz.service.IFileService;
+
+/**
+ * 文件Service业务层处理
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+@Service
+public class FileServiceImpl implements IFileService 
+{
+    @Autowired
+    private FileMapper fileMapper;
+
+    /**
+     * 查询文件
+     * 
+     * @param id 文件主键
+     * @return 文件
+     */
+    @Override
+    public File selectFileById(Long id)
+    {
+        return fileMapper.selectFileById(id);
+    }
+
+    /**
+     * 查询文件列表
+     * 
+     * @param file 文件
+     * @return 文件
+     */
+    @Override
+    public List<File> selectFileList(File file)
+    {
+        return fileMapper.selectFileList(file);
+    }
+
+    /**
+     * 新增文件
+     * 
+     * @param file 文件
+     * @return 结果
+     */
+    @Override
+    public int insertFile(File file)
+    {
+        file.setCreateTime(DateUtils.getNowDate());
+        return fileMapper.insertFile(file);
+    }
+
+    /**
+     * 修改文件
+     * 
+     * @param file 文件
+     * @return 结果
+     */
+    @Override
+    public int updateFile(File file)
+    {
+        file.setUpdateTime(DateUtils.getNowDate());
+        return fileMapper.updateFile(file);
+    }
+
+    /**
+     * 批量删除文件
+     * 
+     * @param ids 需要删除的文件主键
+     * @return 结果
+     */
+    @Override
+    public int deleteFileByIds(Long[] ids)
+    {
+        return fileMapper.deleteFileByIds(ids);
+    }
+
+    /**
+     * 删除文件信息
+     * 
+     * @param id 文件主键
+     * @return 结果
+     */
+    @Override
+    public int deleteFileById(Long id)
+    {
+        return fileMapper.deleteFileById(id);
+    }
+}

+ 96 - 0
pdaaphm-admin/src/main/java/com/pdaaphm/biz/service/impl/SubAlgorithmServiceImpl.java

@@ -0,0 +1,96 @@
+package com.pdaaphm.biz.service.impl;
+
+import java.util.List;
+import com.pdaaphm.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.pdaaphm.biz.mapper.SubAlgorithmMapper;
+import com.pdaaphm.biz.domain.SubAlgorithm;
+import com.pdaaphm.biz.service.ISubAlgorithmService;
+
+/**
+ * 子算法Service业务层处理
+ * 
+ * @author xlk
+ * @date 2023-07-26
+ */
+@Service
+public class SubAlgorithmServiceImpl implements ISubAlgorithmService 
+{
+    @Autowired
+    private SubAlgorithmMapper subAlgorithmMapper;
+
+    /**
+     * 查询子算法
+     * 
+     * @param id 子算法主键
+     * @return 子算法
+     */
+    @Override
+    public SubAlgorithm selectSubAlgorithmById(Long id)
+    {
+        return subAlgorithmMapper.selectSubAlgorithmById(id);
+    }
+
+    /**
+     * 查询子算法列表
+     * 
+     * @param subAlgorithm 子算法
+     * @return 子算法
+     */
+    @Override
+    public List<SubAlgorithm> selectSubAlgorithmList(SubAlgorithm subAlgorithm)
+    {
+        return subAlgorithmMapper.selectSubAlgorithmList(subAlgorithm);
+    }
+
+    /**
+     * 新增子算法
+     * 
+     * @param subAlgorithm 子算法
+     * @return 结果
+     */
+    @Override
+    public int insertSubAlgorithm(SubAlgorithm subAlgorithm)
+    {
+        subAlgorithm.setCreateTime(DateUtils.getNowDate());
+        return subAlgorithmMapper.insertSubAlgorithm(subAlgorithm);
+    }
+
+    /**
+     * 修改子算法
+     * 
+     * @param subAlgorithm 子算法
+     * @return 结果
+     */
+    @Override
+    public int updateSubAlgorithm(SubAlgorithm subAlgorithm)
+    {
+        subAlgorithm.setUpdateTime(DateUtils.getNowDate());
+        return subAlgorithmMapper.updateSubAlgorithm(subAlgorithm);
+    }
+
+    /**
+     * 批量删除子算法
+     * 
+     * @param ids 需要删除的子算法主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSubAlgorithmByIds(Long[] ids)
+    {
+        return subAlgorithmMapper.deleteSubAlgorithmByIds(ids);
+    }
+
+    /**
+     * 删除子算法信息
+     * 
+     * @param id 子算法主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSubAlgorithmById(Long id)
+    {
+        return subAlgorithmMapper.deleteSubAlgorithmById(id);
+    }
+}

+ 105 - 0
pdaaphm-admin/src/main/resources/mapper/algoManager/AlgorithmMapper.xml

@@ -0,0 +1,105 @@
+<?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.pdaaphm.biz.mapper.AlgorithmMapper">
+
+    <resultMap type="Algorithm" id="AlgorithmResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="subTypeId"    column="sub_type_id"    />
+        <result property="name"    column="name"    />
+        <result property="startTime"    column="start_time"    />
+        <result property="completedTime"    column="completed_time"    />
+        <result property="costSecond"    column="cost_second"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectAlgorithmVo">
+        select id, `type`, sub_type_id, `name`, start_time, completed_time, cost_second, create_by, create_time, update_by, update_time, remark from t_algorithm
+    </sql>
+
+    <select id="selectAlgorithmList" parameterType="Algorithm" resultMap="AlgorithmResult">
+        <include refid="selectAlgorithmVo"/>
+        <where>
+            <if test="type != null  and type != ''"> and `type` = #{type}</if>
+            <if test="subTypeId != null "> and sub_type_id = #{subTypeId}</if>
+            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
+            <if test="startTime != null "> and start_time = #{startTime}</if>
+            <if test="completedTime != null "> and completed_time = #{completedTime}</if>
+            <if test="costSecond != null "> and cost_second = #{costSecond}</if>
+        </where>
+    </select>
+
+    <select id="selectAlgorithmById" parameterType="Long" resultMap="AlgorithmResult">
+        <include refid="selectAlgorithmVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertAlgorithm" parameterType="Algorithm" useGeneratedKeys="true" keyProperty="id">
+        insert into t_algorithm
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">`type`,</if>
+            <if test="subTypeId != null">sub_type_id,</if>
+            <if test="name != null">`name`,</if>
+            <if test="startTime != null">start_time,</if>
+            <if test="completedTime != null">completed_time,</if>
+            <if test="costSecond != null">cost_second,</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>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="subTypeId != null">#{subTypeId},</if>
+            <if test="name != null">#{name},</if>
+            <if test="startTime != null">#{startTime},</if>
+            <if test="completedTime != null">#{completedTime},</if>
+            <if test="costSecond != null">#{costSecond},</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>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAlgorithm" parameterType="Algorithm">
+        update t_algorithm
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="subTypeId != null">sub_type_id = #{subTypeId},</if>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="startTime != null">start_time = #{startTime},</if>
+            <if test="completedTime != null">completed_time = #{completedTime},</if>
+            <if test="costSecond != null">cost_second = #{costSecond},</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>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAlgorithmById" parameterType="Long">
+        delete from t_algorithm where id = #{id}
+    </delete>
+
+    <delete id="deleteAlgorithmByIds" parameterType="String">
+        delete from t_algorithm where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <select id="getOption" resultType="Map">
+        select id, `type`, `name` from t_algorithm_sub_type
+    </select>
+</mapper>

+ 86 - 0
pdaaphm-admin/src/main/resources/mapper/algoManager/FileMapper.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.pdaaphm.biz.mapper.FileMapper">
+
+    <resultMap type="File" id="FileResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="path"    column="path"    />
+        <result property="type"    column="type"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectFileVo">
+        select id, `name`, `path`, `type`, create_by, create_time, update_by, update_time, remark from t_file
+    </sql>
+
+    <select id="selectFileList" parameterType="File" resultMap="FileResult">
+        <include refid="selectFileVo"/>
+        <where>
+            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
+            <if test="path != null  and path != ''"> and `path` = #{path}</if>
+            <if test="type != null  and type != ''"> and `type` = #{type}</if>
+        </where>
+    </select>
+
+    <select id="selectFileById" parameterType="Long" resultMap="FileResult">
+        <include refid="selectFileVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertFile" parameterType="File" useGeneratedKeys="true" keyProperty="id">
+        insert into t_file
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">`name`,</if>
+            <if test="path != null">`path`,</if>
+            <if test="type != null">`type`,</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>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="path != null">#{path},</if>
+            <if test="type != null">#{type},</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>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateFile" parameterType="File">
+        update t_file
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">`name` = #{name},</if>
+            <if test="path != null">`path` = #{path},</if>
+            <if test="type != null">`type` = #{type},</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>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteFileById" parameterType="Long">
+        delete from t_file where id = #{id}
+    </delete>
+
+    <delete id="deleteFileByIds" parameterType="String">
+        delete from t_file where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 86 - 0
pdaaphm-admin/src/main/resources/mapper/algoManager/SubAlgorithmMapper.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.pdaaphm.biz.mapper.SubAlgorithmMapper">
+    
+    <resultMap type="SubAlgorithm" id="SubAlgorithmResult">
+        <result property="id"    column="id"    />
+        <result property="algorithmId"    column="algorithm_id"    />
+        <result property="fieldId"    column="field_id"    />
+        <result property="uploadId"    column="upload_id"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectSubAlgorithmVo">
+        select id, algorithm_id, field_id, upload_id, create_by, create_time, update_by, update_time, remark from t_sub_algorithm
+    </sql>
+
+    <select id="selectSubAlgorithmList" parameterType="SubAlgorithm" resultMap="SubAlgorithmResult">
+        <include refid="selectSubAlgorithmVo"/>
+        <where>  
+            <if test="algorithmId != null "> and algorithm_id = #{algorithmId}</if>
+            <if test="fieldId != null "> and field_id = #{fieldId}</if>
+            <if test="uploadId != null "> and upload_id = #{uploadId}</if>
+        </where>
+    </select>
+    
+    <select id="selectSubAlgorithmById" parameterType="Long" resultMap="SubAlgorithmResult">
+        <include refid="selectSubAlgorithmVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertSubAlgorithm" parameterType="SubAlgorithm" useGeneratedKeys="true" keyProperty="id">
+        insert into t_sub_algorithm
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="algorithmId != null">algorithm_id,</if>
+            <if test="fieldId != null">field_id,</if>
+            <if test="uploadId != null">upload_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>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="algorithmId != null">#{algorithmId},</if>
+            <if test="fieldId != null">#{fieldId},</if>
+            <if test="uploadId != null">#{uploadId},</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>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSubAlgorithm" parameterType="SubAlgorithm">
+        update t_sub_algorithm
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="algorithmId != null">algorithm_id = #{algorithmId},</if>
+            <if test="fieldId != null">field_id = #{fieldId},</if>
+            <if test="uploadId != null">upload_id = #{uploadId},</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>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSubAlgorithmById" parameterType="Long">
+        delete from t_sub_algorithm where id = #{id}
+    </delete>
+
+    <delete id="deleteSubAlgorithmByIds" parameterType="String">
+        delete from t_sub_algorithm where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
pdaaphm-admin/src/main/resources/mapper/conf/AlgorithmIoFieldMapper.xml

@@ -0,0 +1,96 @@
+<?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.pdaaphm.biz.mapper.AlgorithmIoFieldMapper">
+
+    <resultMap type="AlgorithmIoField" id="AlgorithmIoFieldResult">
+        <result property="id"    column="id"    />
+        <result property="algorithmSubId"    column="algorithm_sub_id"    />
+        <result property="type"    column="type"    />
+        <result property="name"    column="name"    />
+        <result property="index"    column="index"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+        <result property="algoSubName" column="sub_name"    />
+    </resultMap>
+
+    <sql id="selectAlgorithmIoFieldVo">
+        select io.id, io.algorithm_sub_id, io.`type`, io.`name`, io.`index`, io.create_by, io.create_time, io.update_by, io.update_time, io.remark, sub.name as sub_name from t_algorithm_io_field as io left join t_algorithm_sub_type as sub on io.algorithm_sub_id = sub.id
+    </sql>
+
+    <select id="selectAlgorithmIoFieldList" parameterType="AlgorithmIoField" resultMap="AlgorithmIoFieldResult">
+        <include refid="selectAlgorithmIoFieldVo"/>
+        <where>
+            <if test="algorithmSubId != null "> and algorithm_sub_id = #{algorithmSubId}</if>
+            <if test="type != null  and type != ''"> and `type` = #{type}</if>
+            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
+            <if test="index != null "> and `index` = #{index}</if>
+        </where>
+    </select>
+
+    <select id="selectAlgorithmIoFieldById" parameterType="Long" resultMap="AlgorithmIoFieldResult">
+        <include refid="selectAlgorithmIoFieldVo"/>
+        where io.id = #{id}
+    </select>
+
+    <insert id="insertAlgorithmIoField" parameterType="AlgorithmIoField" useGeneratedKeys="true" keyProperty="id">
+        insert into t_algorithm_io_field
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="algorithmSubId != null">algorithm_sub_id,</if>
+            <if test="type != null">`type`,</if>
+            <if test="name != null">`name`,</if>
+            <if test="index != null">`index`,</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>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="algorithmSubId != null">#{algorithmSubId},</if>
+            <if test="type != null">#{type},</if>
+            <if test="name != null">#{name},</if>
+            <if test="index != null">#{index},</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>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAlgorithmIoField" parameterType="AlgorithmIoField">
+        update t_algorithm_io_field
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="algorithmSubId != null">algorithm_sub_id = #{algorithmSubId},</if>
+            <if test="type != null">`type` = #{type},</if>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="index != null">`index` = #{index},</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>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAlgorithmIoFieldById" parameterType="Long">
+        delete from t_algorithm_io_field where id = #{id}
+    </delete>
+
+    <delete id="deleteAlgorithmIoFieldByIds" parameterType="String">
+        delete from t_algorithm_io_field where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <select id="getIoSubList" resultType="Map">
+        select id, `type`, `name` from t_algorithm_io_field where algorithm_sub_id = #{id}
+    </select>
+</mapper>

+ 86 - 0
pdaaphm-admin/src/main/resources/mapper/conf/AlgorithmSubTypeMapper.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.pdaaphm.biz.mapper.AlgorithmSubTypeMapper">
+
+    <resultMap type="AlgorithmSubType" id="AlgorithmSubTypeResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="name"    column="name"    />
+        <result property="url"    column="url"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectAlgorithmSubTypeVo">
+        select id, `type`, `name`, url, create_by, create_time, update_by, update_time, remark from t_algorithm_sub_type
+    </sql>
+
+    <select id="selectAlgorithmSubTypeList" parameterType="AlgorithmSubType" resultMap="AlgorithmSubTypeResult">
+        <include refid="selectAlgorithmSubTypeVo"/>
+        <where>
+            <if test="type != null  and type != ''"> and `type` = #{type}</if>
+            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
+            <if test="url != null  and url != ''"> and url = #{url}</if>
+        </where>
+    </select>
+
+    <select id="selectAlgorithmSubTypeById" parameterType="Long" resultMap="AlgorithmSubTypeResult">
+        <include refid="selectAlgorithmSubTypeVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertAlgorithmSubType" parameterType="AlgorithmSubType" useGeneratedKeys="true" keyProperty="id">
+        insert into t_algorithm_sub_type
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">`type`,</if>
+            <if test="name != null">`name`,</if>
+            <if test="url != null">url,</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>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="name != null">#{name},</if>
+            <if test="url != null">#{url},</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>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAlgorithmSubType" parameterType="AlgorithmSubType">
+        update t_algorithm_sub_type
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="url != null">url = #{url},</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>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAlgorithmSubTypeById" parameterType="Long">
+        delete from t_algorithm_sub_type where id = #{id}
+    </delete>
+
+    <delete id="deleteAlgorithmSubTypeByIds" parameterType="String">
+        delete from t_algorithm_sub_type where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 52 - 0
pdaaphm-ui/src/api/algoManager/algorithm.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询算法列表
+export function listAlgorithm(query) {
+  return request({
+    url: '/algoManager/algorithm/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询算法详细
+export function getAlgorithm(id) {
+  return request({
+    url: '/algoManager/algorithm/' + id,
+    method: 'get'
+  })
+}
+
+// 新增算法
+export function addAlgorithm(data) {
+  return request({
+    url: '/algoManager/algorithm',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改算法
+export function updateAlgorithm(data) {
+  return request({
+    url: '/algoManager/algorithm',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除算法
+export function delAlgorithm(id) {
+  return request({
+    url: '/algoManager/algorithm/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询算法子类管理列表
+export function getAlgoSubOption() {
+  return request({
+    url: '/algoManager/algorithm/getOption',
+    method: 'get',
+  })
+}

+ 44 - 0
pdaaphm-ui/src/api/algoManager/file.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询文件列表
+export function listFile(query) {
+  return request({
+    url: '/algoManager/file/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询文件详细
+export function getFile(id) {
+  return request({
+    url: '/algoManager/file/' + id,
+    method: 'get'
+  })
+}
+
+// 新增文件
+export function addFile(data) {
+  return request({
+    url: '/algoManager/file',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改文件
+export function updateFile(data) {
+  return request({
+    url: '/algoManager/file',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除文件
+export function delFile(id) {
+  return request({
+    url: '/algoManager/file/' + id,
+    method: 'delete'
+  })
+}

+ 52 - 0
pdaaphm-ui/src/api/conf/field.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询算法输入输出字段列表
+export function listField(query) {
+  return request({
+    url: '/conf/field/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询算法输入输出字段详细
+export function getField(id) {
+  return request({
+    url: '/conf/field/' + id,
+    method: 'get'
+  })
+}
+
+// 新增算法输入输出字段
+export function addField(data) {
+  return request({
+    url: '/conf/field',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改算法输入输出字段
+export function updateField(data) {
+  return request({
+    url: '/conf/field',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除算法输入输出字段
+export function delField(id) {
+  return request({
+    url: '/conf/field/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询具体算法输入输出字段列表
+export function getIoSubList(subTypeId) {
+  return request({
+    url: '/conf/field/getIoSubList/' + subTypeId,
+    method: 'get',
+  })
+}

+ 44 - 0
pdaaphm-ui/src/api/conf/subType.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询算法子类型列表
+export function listSubType(query) {
+  return request({
+    url: '/conf/subType/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询算法子类型详细
+export function getSubType(id) {
+  return request({
+    url: '/conf/subType/' + id,
+    method: 'get'
+  })
+}
+
+// 新增算法子类型
+export function addSubType(data) {
+  return request({
+    url: '/conf/subType',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改算法子类型
+export function updateSubType(data) {
+  return request({
+    url: '/conf/subType',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除算法子类型
+export function delSubType(id) {
+  return request({
+    url: '/conf/subType/' + id,
+    method: 'delete'
+  })
+}

+ 418 - 0
pdaaphm-ui/src/views/algoManager/algorithm/index.vue

@@ -0,0 +1,418 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="算法类型" prop="type">
+        <el-select v-model="queryParams.type" placeholder="请选择算法类型" clearable filterable @change=changeQueryType()>
+          <el-option
+            v-for="dict in dict.type.algorithm_type"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="算法子类型" prop="subTypeId">
+        <el-select
+          v-model="queryParams.subTypeId"
+          placeholder="请选择算法子类型"
+          clearable
+          filterable
+        >
+          <el-option
+            v-for="item in algoTypeList"
+            :key="item.id"
+            :label="item.name"
+            :value="item.id"
+          >
+          </el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <!-- <el-form-item label="开始时间" prop="startTime">
+        <el-date-picker clearable
+          v-model="queryParams.startTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择开始时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="完成时间" prop="completedTime">
+        <el-date-picker clearable
+          v-model="queryParams.completedTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择完成时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="耗时(s)" prop="costSecond">
+        <el-input
+          v-model="queryParams.costSecond"
+          placeholder="请输入耗时(s)"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item> -->
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['algoManager:algorithm:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['algoManager:algorithm:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['algoManager:algorithm:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['algoManager:algorithm:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="algorithmList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="编号" align="center" prop="id" />
+      <el-table-column label="算法类型" align="center" prop="type">
+        <template slot-scope="scope">
+          <dict-tag :options="dict.type.algorithm_type" :value="scope.row.type"/>
+        </template>
+      </el-table-column>
+      <el-table-column label="算法子类型" align="center" prop="subTypeId" />
+      <el-table-column label="名称" align="center" prop="name" />
+      <el-table-column label="开始时间" align="center" prop="startTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="完成时间" align="center" prop="completedTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.completedTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="耗时(s)" align="center" prop="costSecond" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['algoManager:algorithm:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['algoManager:algorithm:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改算法对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="算法类型" prop="type">
+          <el-select v-model="form.type" placeholder="请选择算法类型" clearable filterable @change='changeFormType()'>
+            <el-option
+              v-for="dict in dict.type.algorithm_type"
+              :key="dict.value"
+              :label="dict.label"
+              :value="dict.value"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="算法子类型" prop="subTypeId">
+          <el-select
+            v-model="form.subTypeId"
+            placeholder="请选择算法子类型"
+            clearable
+            filterable
+            @change='changeFormSubType(form.subTypeId)'
+          >
+            <el-option
+              v-for="item in algoTypeList"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <template v-if="form.subTypeId">
+          <el-form-item v-for="item in ioSubList" :label="item.name" :key="item.id" prop="name">
+            <file-upload v-model="form.path"/>
+          </el-form-item>
+        </template>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listAlgorithm, getAlgorithm, delAlgorithm, addAlgorithm, updateAlgorithm } from "@/api/algoManager/algorithm";
+import { getAlgoSubOption } from "@/api/algoManager/algorithm";
+import { getIoSubList } from "@/api/conf/field";
+
+export default {
+  name: "Algorithm",
+  dicts: ['algorithm_type'],
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 算法表格数据
+      algorithmList: [],
+      // 算法子类列表
+      algorithmSubList: [],
+      // 算法特定类列表
+      algoTypeList: [],
+      // 具体算法输入输出文件列表
+      ioSubList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        type: null,
+        subTypeId: null,
+
+        name: null,
+        startTime: null,
+        completedTime: null,
+        costSecond: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        subTypeId: [
+          { required: true, message: "算法子类型不能为空", trigger: "blur" }
+        ],
+      },
+      typeMap: new Map(),
+    };
+  },
+  created() {
+    this.getList();
+    this.getAlgoSubOption();
+  },
+  methods: {
+    /** 查询算法列表 */
+    getList() {
+      this.loading = true;
+      listAlgorithm(this.queryParams).then(response => {
+        this.algorithmList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+
+    getAlgoSubOption() {
+      getAlgoSubOption().then((resp) => {
+        this.algorithmSubList = resp.data;
+        this.createTypeMap();
+        console.info(resp);
+      });
+    },
+
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        type: null,
+        subTypeId: null,
+        name: null,
+        startTime: null,
+        completedTime: null,
+        costSecond: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        remark: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加算法";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getAlgorithm(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改算法";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateAlgorithm(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addAlgorithm(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除算法编号为"' + ids + '"的数据项?').then(function() {
+        return delAlgorithm(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('algoManager/algorithm/export', {
+        ...this.queryParams
+      }, `algorithm_${new Date().getTime()}.xlsx`)
+    },
+    
+    createTypeMap() {
+      for (const algorithmSub of this.algorithmSubList) {
+        if(this.typeMap.has(algorithmSub.type)) {
+          this.typeMap.get(algorithmSub.type).push({
+            id: algorithmSub.id,
+            name: algorithmSub.name
+          });
+        }
+        else {
+          this.typeMap.set(algorithmSub.type, [{
+            id: algorithmSub.id,
+            name: algorithmSub.name
+          }]);
+        }
+      }
+    },
+
+    changeQueryType() {
+      this.queryParams.subTypeId = null;
+      this.algoTypeList = this.typeMap.get(this.queryParams.type);
+    },
+
+    changeFormType() {
+      this.form.subTypeId = null;
+      this.algoTypeList = this.typeMap.get(this.form.type);
+    },
+
+    changeFormSubType() {
+      getIoSubList(this.form.subTypeId).then((resp) => {
+        this.ioSubList = resp.data;
+        console.info(resp);
+      });
+    },
+  }
+};
+</script>

+ 282 - 0
pdaaphm-ui/src/views/algoManager/file/index.vue

@@ -0,0 +1,282 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="文档名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入文档名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['algoManager:file:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['algoManager:file:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['algoManager:file:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['algoManager:file:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="fileList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="编号" align="center" prop="id" />
+      <el-table-column label="文档名称" align="center" prop="name" />
+      <el-table-column label="文档路径" align="center" prop="path" />
+      <el-table-column label="类型" align="center" prop="type" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['algoManager:file:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['algoManager:file:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改文件对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="文档名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入文档名称" />
+        </el-form-item>
+        <el-form-item label="文档路径" prop="path">
+          <file-upload v-model="form.path"/>
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listFile, getFile, delFile, addFile, updateFile } from "@/api/algoManager/file";
+
+export default {
+  name: "File",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 文件表格数据
+      fileList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        name: null,
+        path: null,
+        type: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询文件列表 */
+    getList() {
+      this.loading = true;
+      listFile(this.queryParams).then(response => {
+        this.fileList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        name: null,
+        path: null,
+        type: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        remark: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加文件";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getFile(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改文件";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if(this.form.name == null) {
+            this.form.name = this.getFileName(this.form.path);
+          }
+          if (this.form.id != null) {
+            updateFile(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addFile(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除文件编号为"' + ids + '"的数据项?').then(function() {
+        return delFile(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('algoManager/file/export', {
+        ...this.queryParams
+      }, `file_${new Date().getTime()}.xlsx`)
+    },
+
+    getFileName(path) {
+      if (!path) {
+        return ''
+      } else if (path.lastIndexOf("/") > -1) {
+        const newName = path.slice(path.lastIndexOf("/") + 1)
+        const names = newName.split(".")
+        if ((names.size = 2) && (names[0].length > 19)) {
+          return newName.substring(0, names[0].length - 19) + '.' + names[1]
+        } else {
+          return newName
+        }
+      } else {
+        return '';
+      }
+    },
+  }
+};
+</script>

+ 344 - 0
pdaaphm-ui/src/views/conf/field/index.vue

@@ -0,0 +1,344 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="算法子类型" prop="algorithmSubId">
+        <el-select
+          v-model="form.algorithmSubId"
+          placeholder="请选择算法子类型"
+          filterable
+        >
+          <el-option
+            v-for="item in algorithmSubList"
+            :key="item.id"
+            :label="item.name"
+            :value="item.id"
+          >
+          </el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="输入/输出" prop="type">
+        <el-select v-model="queryParams.type" placeholder="请选择输入/输出" clearable>
+          <el-option
+            v-for="dict in dict.type.algorithm_io_type"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="排序" prop="index">
+        <el-input
+          v-model="queryParams.index"
+          placeholder="请输入排序"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['conf:field:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['conf:field:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['conf:field:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['conf:field:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="fieldList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="编号" align="center" prop="id" />
+      <el-table-column label="算法子类型" align="center" prop="algoSubName" />
+      <el-table-column label="输入/输出" align="center" prop="type">
+        <template slot-scope="scope">
+          <dict-tag :options="dict.type.algorithm_io_type" :value="scope.row.type"/>
+        </template>
+      </el-table-column>
+      <el-table-column label="名称" align="center" prop="name" />
+      <el-table-column label="排序" align="center" prop="index" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['conf:field:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['conf:field:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改算法输入输出字段对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="算法子类型" prop="algorithmSubId">
+          <el-select
+            v-model="form.algorithmSubId"
+            placeholder="请选择算法子类型"
+            filterable
+          >
+            <el-option
+              v-for="item in algorithmSubList"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="输入/输出" prop="type">
+          <el-select v-model="form.type" placeholder="请选择输入/输出">
+            <el-option
+              v-for="dict in dict.type.algorithm_io_type"
+              :key="dict.value"
+              :label="dict.label"
+              :value="dict.value"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入名称" />
+        </el-form-item>
+        <el-form-item label="排序" prop="index">
+          <el-input v-model="form.index" placeholder="请输入排序" />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listField, getField, delField, addField, updateField } from "@/api/conf/field";
+import { getAlgoSubOption } from "@/api/algoManager/algorithm";
+
+export default {
+  name: "Field",
+  dicts: ['algorithm_io_type'],
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 算法输入输出字段表格数据
+      fieldList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        algorithmSubId: null,
+        type: null,
+        name: null,
+        index: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        algorithmSubId: [
+          { required: true, message: "算法子类型编号不能为空", trigger: "blur" }
+        ],
+      },
+      // 算法子类列表
+      algorithmSubList: [],
+    };
+  },
+  created() {
+    this.getAlgoSubOption();
+    this.getList();
+  },
+  methods: {
+    /** 查询算法输入输出字段列表 */
+    getList() {
+      this.loading = true;
+      listField(this.queryParams).then(response => {
+        this.fieldList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        algorithmSubId: null,
+        type: null,
+        name: null,
+        index: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        remark: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加算法输入输出字段";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getField(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改算法输入输出字段";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateField(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addField(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除算法输入输出字段编号为"' + ids + '"的数据项?').then(function() {
+        return delField(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('conf/field/export', {
+        ...this.queryParams
+      }, `field_${new Date().getTime()}.xlsx`)
+    },
+
+    getAlgoSubOption() {
+      getAlgoSubOption().then((resp) => {
+        this.algorithmSubList = resp.data;
+        console.info(resp);
+        console.info(this);
+      });
+    },
+  }
+};
+</script>

+ 296 - 0
pdaaphm-ui/src/views/conf/subType/index.vue

@@ -0,0 +1,296 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="类型" prop="type">
+        <el-select v-model="queryParams.type" placeholder="请选择类型" clearable>
+          <el-option
+            v-for="dict in dict.type.algorithm_type"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="算法子名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入算法子名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="算法url" prop="url">
+        <el-input
+          v-model="queryParams.url"
+          placeholder="请输入算法url"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['conf:subType:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['conf:subType:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['conf:subType:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['conf:subType:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="subTypeList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="编号" align="center" prop="id" />
+      <el-table-column label="类型" align="center" prop="type">
+        <template slot-scope="scope">
+          <dict-tag :options="dict.type.algorithm_type" :value="scope.row.type"/>
+        </template>
+      </el-table-column>
+      <el-table-column label="算法子名称" align="center" prop="name" />
+      <el-table-column label="算法url" align="center" prop="url" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['conf:subType:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['conf:subType:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改算法子类型对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="类型" prop="type">
+          <el-select v-model="form.type" placeholder="请选择类型">
+            <el-option
+              v-for="dict in dict.type.algorithm_type"
+              :key="dict.value"
+              :label="dict.label"
+              :value="dict.value"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="算法子名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入算法子名称" />
+        </el-form-item>
+        <el-form-item label="算法url" prop="url">
+          <el-input v-model="form.url" placeholder="请输入算法url" />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listSubType, getSubType, delSubType, addSubType, updateSubType } from "@/api/conf/subType";
+
+export default {
+  name: "SubType",
+  dicts: ['algorithm_type'],
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 算法子类型表格数据
+      subTypeList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        type: null,
+        name: null,
+        url: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询算法子类型列表 */
+    getList() {
+      this.loading = true;
+      listSubType(this.queryParams).then(response => {
+        this.subTypeList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        type: null,
+        name: null,
+        url: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        remark: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加算法子类型";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getSubType(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改算法子类型";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateSubType(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addSubType(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除算法子类型编号为"' + ids + '"的数据项?').then(function() {
+        return delSubType(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('conf/subType/export', {
+        ...this.queryParams
+      }, `subType_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>