Ver Fonte

Merge branch 'master' of http://39.98.38.2:13000/dumingliang/sh-model-platform

nanjingliujinyu há 5 meses atrás
pai
commit
ebbc1b7250

+ 98 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/controller/MdAppController.java

@@ -0,0 +1,98 @@
+package com.ruoyi.interfaces.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.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.interfaces.domain.MdApp;
+import com.ruoyi.interfaces.service.IMdAppService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 模型应用Controller
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+@RestController
+@RequestMapping("/md/app")
+public class MdAppController extends BaseController
+{
+    @Autowired
+    private IMdAppService mdAppService;
+
+    /**
+     * 查询模型应用列表
+     */
+    @GetMapping("/list")
+    public TableDataInfo list(MdApp mdApp)
+    {
+        startPage();
+        List<MdApp> list = mdAppService.selectMdAppList(mdApp);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出模型应用列表
+     */
+    @Log(title = "模型应用", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, MdApp mdApp)
+    {
+        List<MdApp> list = mdAppService.selectMdAppList(mdApp);
+        ExcelUtil<MdApp> util = new ExcelUtil<MdApp>(MdApp.class);
+        util.exportExcel(response, list, "模型应用数据");
+    }
+
+    /**
+     * 获取模型应用详细信息
+     */
+    @GetMapping(value = "/{appId}")
+    public AjaxResult getInfo(@PathVariable("appId") Long appId)
+    {
+        return success(mdAppService.selectMdAppByAppId(appId));
+    }
+
+    /**
+     * 新增模型应用
+     */
+    @Log(title = "模型应用", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody MdApp mdApp)
+    {
+        return toAjax(mdAppService.insertMdApp(mdApp));
+    }
+
+    /**
+     * 修改模型应用
+     */
+    @Log(title = "模型应用", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody MdApp mdApp)
+    {
+        return toAjax(mdAppService.updateMdApp(mdApp));
+    }
+
+    /**
+     * 删除模型应用
+     */
+    @Log(title = "模型应用", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{appIds}")
+    public AjaxResult remove(@PathVariable Long[] appIds)
+    {
+        return toAjax(mdAppService.deleteMdAppByAppIds(appIds));
+    }
+}

+ 98 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/controller/MdAppFlowController.java

@@ -0,0 +1,98 @@
+package com.ruoyi.interfaces.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.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.interfaces.domain.MdAppFlow;
+import com.ruoyi.interfaces.service.IMdAppFlowService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 模型应用流程Controller
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+@RestController
+@RequestMapping("/app/flow")
+public class MdAppFlowController extends BaseController
+{
+    @Autowired
+    private IMdAppFlowService mdAppFlowService;
+
+    /**
+     * 查询模型应用流程列表
+     */
+    @GetMapping("/list")
+    public TableDataInfo list(MdAppFlow mdAppFlow)
+    {
+        startPage();
+        List<MdAppFlow> list = mdAppFlowService.selectMdAppFlowList(mdAppFlow);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出模型应用流程列表
+     */
+    @Log(title = "模型应用流程", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, MdAppFlow mdAppFlow)
+    {
+        List<MdAppFlow> list = mdAppFlowService.selectMdAppFlowList(mdAppFlow);
+        ExcelUtil<MdAppFlow> util = new ExcelUtil<MdAppFlow>(MdAppFlow.class);
+        util.exportExcel(response, list, "模型应用流程数据");
+    }
+
+    /**
+     * 获取模型应用流程详细信息
+     */
+    @GetMapping(value = "/{flowId}")
+    public AjaxResult getInfo(@PathVariable("flowId") Long flowId)
+    {
+        return success(mdAppFlowService.selectMdAppFlowByFlowId(flowId));
+    }
+
+    /**
+     * 新增模型应用流程
+     */
+    @Log(title = "模型应用流程", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody MdAppFlow mdAppFlow)
+    {
+        return toAjax(mdAppFlowService.insertMdAppFlow(mdAppFlow));
+    }
+
+    /**
+     * 修改模型应用流程
+     */
+    @Log(title = "模型应用流程", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody MdAppFlow mdAppFlow)
+    {
+        return toAjax(mdAppFlowService.updateMdAppFlow(mdAppFlow));
+    }
+
+    /**
+     * 删除模型应用流程
+     */
+    @Log(title = "模型应用流程", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{flowIds}")
+    public AjaxResult remove(@PathVariable Long[] flowIds)
+    {
+        return toAjax(mdAppFlowService.deleteMdAppFlowByFlowIds(flowIds));
+    }
+}

+ 95 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/domain/MdApp.java

@@ -0,0 +1,95 @@
+package com.ruoyi.interfaces.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 模型应用对象 md_app
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+public class MdApp extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 应用标识 */
+    private Long appId;
+
+    /** 模型应用名称 */
+    @Excel(name = "模型应用名称")
+    private String appTitle;
+
+    /** 模型应用介绍 */
+    @Excel(name = "模型应用介绍")
+    private String appNote;
+
+    /** 模型应用图标 */
+    @Excel(name = "模型应用图标")
+    private String appIcon;
+
+    /** 模型应用排序 */
+    @Excel(name = "模型应用排序")
+    private Long appOrd;
+
+    public void setAppId(Long appId) 
+    {
+        this.appId = appId;
+    }
+
+    public Long getAppId() 
+    {
+        return appId;
+    }
+    public void setAppTitle(String appTitle) 
+    {
+        this.appTitle = appTitle;
+    }
+
+    public String getAppTitle() 
+    {
+        return appTitle;
+    }
+    public void setAppNote(String appNote) 
+    {
+        this.appNote = appNote;
+    }
+
+    public String getAppNote() 
+    {
+        return appNote;
+    }
+    public void setAppIcon(String appIcon) 
+    {
+        this.appIcon = appIcon;
+    }
+
+    public String getAppIcon() 
+    {
+        return appIcon;
+    }
+    public void setAppOrd(Long appOrd) 
+    {
+        this.appOrd = appOrd;
+    }
+
+    public Long getAppOrd() 
+    {
+        return appOrd;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("appId", getAppId())
+            .append("appTitle", getAppTitle())
+            .append("appNote", getAppNote())
+            .append("appIcon", getAppIcon())
+            .append("appOrd", getAppOrd())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .toString();
+    }
+}

+ 139 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/domain/MdAppFlow.java

@@ -0,0 +1,139 @@
+package com.ruoyi.interfaces.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 模型应用流程对象 md_app_flow
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+public class MdAppFlow extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 流程图ID */
+    private Long flowId;
+
+    /** 模型ID */
+    @Excel(name = "模型ID")
+    private String appId;
+
+    /** 流程图名称 */
+    @Excel(name = "流程图名称")
+    private String flowName;
+
+    /** 流程图 */
+    @Excel(name = "流程图")
+    private String flowGraph;
+
+    /** 流程类型 */
+    @Excel(name = "流程类型")
+    private String flowType;
+
+    /** 流程图描述 */
+    @Excel(name = "流程图描述")
+    private String flowNote;
+
+    /** 流程图状态 */
+    @Excel(name = "流程图状态")
+    private Integer flowStatus;
+
+    /** 流程排序 */
+    @Excel(name = "流程排序")
+    private Integer flowSort;
+
+    public void setFlowId(Long flowId) 
+    {
+        this.flowId = flowId;
+    }
+
+    public Long getFlowId() 
+    {
+        return flowId;
+    }
+    public void setAppId(String appId) 
+    {
+        this.appId = appId;
+    }
+
+    public String getAppId() 
+    {
+        return appId;
+    }
+    public void setFlowName(String flowName) 
+    {
+        this.flowName = flowName;
+    }
+
+    public String getFlowName() 
+    {
+        return flowName;
+    }
+    public void setFlowGraph(String flowGraph) 
+    {
+        this.flowGraph = flowGraph;
+    }
+
+    public String getFlowGraph() 
+    {
+        return flowGraph;
+    }
+    public void setFlowType(String flowType) 
+    {
+        this.flowType = flowType;
+    }
+
+    public String getFlowType() 
+    {
+        return flowType;
+    }
+    public void setFlowNote(String flowNote) 
+    {
+        this.flowNote = flowNote;
+    }
+
+    public String getFlowNote() 
+    {
+        return flowNote;
+    }
+    public void setFlowStatus(Integer flowStatus) 
+    {
+        this.flowStatus = flowStatus;
+    }
+
+    public Integer getFlowStatus() 
+    {
+        return flowStatus;
+    }
+    public void setFlowSort(Integer flowSort) 
+    {
+        this.flowSort = flowSort;
+    }
+
+    public Integer getFlowSort() 
+    {
+        return flowSort;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("flowId", getFlowId())
+            .append("appId", getAppId())
+            .append("flowName", getFlowName())
+            .append("flowGraph", getFlowGraph())
+            .append("flowType", getFlowType())
+            .append("flowNote", getFlowNote())
+            .append("flowStatus", getFlowStatus())
+            .append("flowSort", getFlowSort())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/mapper/MdAppFlowMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.interfaces.mapper;
+
+import java.util.List;
+import com.ruoyi.interfaces.domain.MdAppFlow;
+
+/**
+ * 模型应用流程Mapper接口
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+public interface MdAppFlowMapper 
+{
+    /**
+     * 查询模型应用流程
+     * 
+     * @param flowId 模型应用流程主键
+     * @return 模型应用流程
+     */
+    public MdAppFlow selectMdAppFlowByFlowId(Long flowId);
+
+    /**
+     * 查询模型应用流程列表
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 模型应用流程集合
+     */
+    public List<MdAppFlow> selectMdAppFlowList(MdAppFlow mdAppFlow);
+
+    /**
+     * 新增模型应用流程
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 结果
+     */
+    public int insertMdAppFlow(MdAppFlow mdAppFlow);
+
+    /**
+     * 修改模型应用流程
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 结果
+     */
+    public int updateMdAppFlow(MdAppFlow mdAppFlow);
+
+    /**
+     * 删除模型应用流程
+     * 
+     * @param flowId 模型应用流程主键
+     * @return 结果
+     */
+    public int deleteMdAppFlowByFlowId(Long flowId);
+
+    /**
+     * 批量删除模型应用流程
+     * 
+     * @param flowIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteMdAppFlowByFlowIds(Long[] flowIds);
+}

+ 67 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/mapper/MdAppMapper.java

@@ -0,0 +1,67 @@
+package com.ruoyi.interfaces.mapper;
+
+import java.util.List;
+
+import com.ruoyi.common.annotation.DataSource;
+import com.ruoyi.common.enums.DataSourceType;
+import com.ruoyi.interfaces.domain.MdApp;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 模型应用Mapper接口
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+@Mapper
+@DataSource(DataSourceType.SLAVE)
+public interface MdAppMapper 
+{
+    /**
+     * 查询模型应用
+     * 
+     * @param appId 模型应用主键
+     * @return 模型应用
+     */
+    public MdApp selectMdAppByAppId(Long appId);
+
+    /**
+     * 查询模型应用列表
+     * 
+     * @param mdApp 模型应用
+     * @return 模型应用集合
+     */
+    public List<MdApp> selectMdAppList(MdApp mdApp);
+
+    /**
+     * 新增模型应用
+     * 
+     * @param mdApp 模型应用
+     * @return 结果
+     */
+    public int insertMdApp(MdApp mdApp);
+
+    /**
+     * 修改模型应用
+     * 
+     * @param mdApp 模型应用
+     * @return 结果
+     */
+    public int updateMdApp(MdApp mdApp);
+
+    /**
+     * 删除模型应用
+     * 
+     * @param appId 模型应用主键
+     * @return 结果
+     */
+    public int deleteMdAppByAppId(Long appId);
+
+    /**
+     * 批量删除模型应用
+     * 
+     * @param appIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteMdAppByAppIds(Long[] appIds);
+}

+ 61 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/service/IMdAppFlowService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.interfaces.service;
+
+import java.util.List;
+import com.ruoyi.interfaces.domain.MdAppFlow;
+
+/**
+ * 模型应用流程Service接口
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+public interface IMdAppFlowService 
+{
+    /**
+     * 查询模型应用流程
+     * 
+     * @param flowId 模型应用流程主键
+     * @return 模型应用流程
+     */
+    public MdAppFlow selectMdAppFlowByFlowId(Long flowId);
+
+    /**
+     * 查询模型应用流程列表
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 模型应用流程集合
+     */
+    public List<MdAppFlow> selectMdAppFlowList(MdAppFlow mdAppFlow);
+
+    /**
+     * 新增模型应用流程
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 结果
+     */
+    public int insertMdAppFlow(MdAppFlow mdAppFlow);
+
+    /**
+     * 修改模型应用流程
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 结果
+     */
+    public int updateMdAppFlow(MdAppFlow mdAppFlow);
+
+    /**
+     * 批量删除模型应用流程
+     * 
+     * @param flowIds 需要删除的模型应用流程主键集合
+     * @return 结果
+     */
+    public int deleteMdAppFlowByFlowIds(Long[] flowIds);
+
+    /**
+     * 删除模型应用流程信息
+     * 
+     * @param flowId 模型应用流程主键
+     * @return 结果
+     */
+    public int deleteMdAppFlowByFlowId(Long flowId);
+}

+ 61 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/service/IMdAppService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.interfaces.service;
+
+import java.util.List;
+import com.ruoyi.interfaces.domain.MdApp;
+
+/**
+ * 模型应用Service接口
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+public interface IMdAppService 
+{
+    /**
+     * 查询模型应用
+     * 
+     * @param appId 模型应用主键
+     * @return 模型应用
+     */
+    public MdApp selectMdAppByAppId(Long appId);
+
+    /**
+     * 查询模型应用列表
+     * 
+     * @param mdApp 模型应用
+     * @return 模型应用集合
+     */
+    public List<MdApp> selectMdAppList(MdApp mdApp);
+
+    /**
+     * 新增模型应用
+     * 
+     * @param mdApp 模型应用
+     * @return 结果
+     */
+    public int insertMdApp(MdApp mdApp);
+
+    /**
+     * 修改模型应用
+     * 
+     * @param mdApp 模型应用
+     * @return 结果
+     */
+    public int updateMdApp(MdApp mdApp);
+
+    /**
+     * 批量删除模型应用
+     * 
+     * @param appIds 需要删除的模型应用主键集合
+     * @return 结果
+     */
+    public int deleteMdAppByAppIds(Long[] appIds);
+
+    /**
+     * 删除模型应用信息
+     * 
+     * @param appId 模型应用主键
+     * @return 结果
+     */
+    public int deleteMdAppByAppId(Long appId);
+}

+ 96 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/service/impl/MdAppFlowServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.interfaces.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.interfaces.mapper.MdAppFlowMapper;
+import com.ruoyi.interfaces.domain.MdAppFlow;
+import com.ruoyi.interfaces.service.IMdAppFlowService;
+
+/**
+ * 模型应用流程Service业务层处理
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+@Service
+public class MdAppFlowServiceImpl implements IMdAppFlowService 
+{
+    @Autowired
+    private MdAppFlowMapper mdAppFlowMapper;
+
+    /**
+     * 查询模型应用流程
+     * 
+     * @param flowId 模型应用流程主键
+     * @return 模型应用流程
+     */
+    @Override
+    public MdAppFlow selectMdAppFlowByFlowId(Long flowId)
+    {
+        return mdAppFlowMapper.selectMdAppFlowByFlowId(flowId);
+    }
+
+    /**
+     * 查询模型应用流程列表
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 模型应用流程
+     */
+    @Override
+    public List<MdAppFlow> selectMdAppFlowList(MdAppFlow mdAppFlow)
+    {
+        return mdAppFlowMapper.selectMdAppFlowList(mdAppFlow);
+    }
+
+    /**
+     * 新增模型应用流程
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 结果
+     */
+    @Override
+    public int insertMdAppFlow(MdAppFlow mdAppFlow)
+    {
+        mdAppFlow.setCreateTime(DateUtils.getNowDate());
+        return mdAppFlowMapper.insertMdAppFlow(mdAppFlow);
+    }
+
+    /**
+     * 修改模型应用流程
+     * 
+     * @param mdAppFlow 模型应用流程
+     * @return 结果
+     */
+    @Override
+    public int updateMdAppFlow(MdAppFlow mdAppFlow)
+    {
+        mdAppFlow.setUpdateTime(DateUtils.getNowDate());
+        return mdAppFlowMapper.updateMdAppFlow(mdAppFlow);
+    }
+
+    /**
+     * 批量删除模型应用流程
+     * 
+     * @param flowIds 需要删除的模型应用流程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteMdAppFlowByFlowIds(Long[] flowIds)
+    {
+        return mdAppFlowMapper.deleteMdAppFlowByFlowIds(flowIds);
+    }
+
+    /**
+     * 删除模型应用流程信息
+     * 
+     * @param flowId 模型应用流程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteMdAppFlowByFlowId(Long flowId)
+    {
+        return mdAppFlowMapper.deleteMdAppFlowByFlowId(flowId);
+    }
+}

+ 95 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/service/impl/MdAppServiceImpl.java

@@ -0,0 +1,95 @@
+package com.ruoyi.interfaces.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.interfaces.mapper.MdAppMapper;
+import com.ruoyi.interfaces.domain.MdApp;
+import com.ruoyi.interfaces.service.IMdAppService;
+
+/**
+ * 模型应用Service业务层处理
+ * 
+ * @author 朱得糠
+ * @date 2025-08-19
+ */
+@Service
+public class MdAppServiceImpl implements IMdAppService 
+{
+    @Autowired
+    private MdAppMapper mdAppMapper;
+
+    /**
+     * 查询模型应用
+     * 
+     * @param appId 模型应用主键
+     * @return 模型应用
+     */
+    @Override
+    public MdApp selectMdAppByAppId(Long appId)
+    {
+        return mdAppMapper.selectMdAppByAppId(appId);
+    }
+
+    /**
+     * 查询模型应用列表
+     * 
+     * @param mdApp 模型应用
+     * @return 模型应用
+     */
+    @Override
+    public List<MdApp> selectMdAppList(MdApp mdApp)
+    {
+        return mdAppMapper.selectMdAppList(mdApp);
+    }
+
+    /**
+     * 新增模型应用
+     * 
+     * @param mdApp 模型应用
+     * @return 结果
+     */
+    @Override
+    public int insertMdApp(MdApp mdApp)
+    {
+        mdApp.setCreateTime(DateUtils.getNowDate());
+        return mdAppMapper.insertMdApp(mdApp);
+    }
+
+    /**
+     * 修改模型应用
+     * 
+     * @param mdApp 模型应用
+     * @return 结果
+     */
+    @Override
+    public int updateMdApp(MdApp mdApp)
+    {
+        return mdAppMapper.updateMdApp(mdApp);
+    }
+
+    /**
+     * 批量删除模型应用
+     * 
+     * @param appIds 需要删除的模型应用主键
+     * @return 结果
+     */
+    @Override
+    public int deleteMdAppByAppIds(Long[] appIds)
+    {
+        return mdAppMapper.deleteMdAppByAppIds(appIds);
+    }
+
+    /**
+     * 删除模型应用信息
+     * 
+     * @param appId 模型应用主键
+     * @return 结果
+     */
+    @Override
+    public int deleteMdAppByAppId(Long appId)
+    {
+        return mdAppMapper.deleteMdAppByAppId(appId);
+    }
+}

+ 106 - 0
ruoyi-api-patform/src/main/resources/mapper/interfaces/MdAppFlowMapper.xml

@@ -0,0 +1,106 @@
+<?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.ruoyi.interfaces.mapper.MdAppFlowMapper">
+
+    <resultMap type="com.ruoyi.interfaces.domain.MdAppFlow" id="MdAppFlowResult">
+        <result property="flowId"    column="FLOW_ID"    />
+        <result property="appId"    column="APP_ID"    />
+        <result property="flowName"    column="FLOW_NAME"    />
+        <result property="flowGraph"    column="FLOW_GRAPH"    />
+        <result property="flowType"    column="FLOW_TYPE"    />
+        <result property="flowNote"    column="FLOW_NOTE"    />
+        <result property="flowStatus"    column="FLOW_STATUS"    />
+        <result property="flowSort"    column="FLOW_SORT"    />
+        <result property="createBy"    column="CREATE_BY"    />
+        <result property="createTime"    column="CREATE_TIME"    />
+        <result property="updateBy"    column="UPDATE_BY"    />
+        <result property="updateTime"    column="UPDATE_TIME"    />
+    </resultMap>
+
+    <sql id="selectMdAppFlowVo">
+        select FLOW_ID, APP_ID, FLOW_NAME, FLOW_GRAPH, FLOW_TYPE, FLOW_NOTE, FLOW_STATUS, FLOW_SORT, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME from md_app_flow
+    </sql>
+
+    <select id="selectMdAppFlowList" parameterType="com.ruoyi.interfaces.domain.MdAppFlow" resultMap="MdAppFlowResult">
+        <include refid="selectMdAppFlowVo"/>
+        <where>
+            <if test="appId != null  and appId != ''"> and APP_ID = #{appId}</if>
+            <if test="flowName != null  and flowName != ''"> and FLOW_NAME like concat('%', #{flowName}, '%')</if>
+            <if test="flowGraph != null  and flowGraph != ''"> and FLOW_GRAPH = #{flowGraph}</if>
+            <if test="flowType != null  and flowType != ''"> and FLOW_TYPE = #{flowType}</if>
+            <if test="flowNote != null  and flowNote != ''"> and FLOW_NOTE = #{flowNote}</if>
+            <if test="flowStatus != null "> and FLOW_STATUS = #{flowStatus}</if>
+            <if test="flowSort != null "> and FLOW_SORT = #{flowSort}</if>
+            <if test="createBy != null  and createBy != ''"> and CREATE_BY = #{createBy}</if>
+            <if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
+            <if test="updateBy != null  and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
+            <if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
+        </where>
+    </select>
+
+    <select id="selectMdAppFlowByFlowId" parameterType="Long" resultMap="MdAppFlowResult">
+        <include refid="selectMdAppFlowVo"/>
+        where FLOW_ID = #{flowId}
+    </select>
+
+    <insert id="insertMdAppFlow" parameterType="com.ruoyi.interfaces.domain.MdAppFlow" useGeneratedKeys="true" keyProperty="flowId">
+        insert into md_app_flow
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="appId != null and appId != ''">APP_ID,</if>
+            <if test="flowName != null and flowName != ''">FLOW_NAME,</if>
+            <if test="flowGraph != null">FLOW_GRAPH,</if>
+            <if test="flowType != null">FLOW_TYPE,</if>
+            <if test="flowNote != null">FLOW_NOTE,</if>
+            <if test="flowStatus != null">FLOW_STATUS,</if>
+            <if test="flowSort != null">FLOW_SORT,</if>
+            <if test="createBy != null">CREATE_BY,</if>
+            <if test="createTime != null">CREATE_TIME,</if>
+            <if test="updateBy != null">UPDATE_BY,</if>
+            <if test="updateTime != null">UPDATE_TIME,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="appId != null and appId != ''">#{appId},</if>
+            <if test="flowName != null and flowName != ''">#{flowName},</if>
+            <if test="flowGraph != null">#{flowGraph},</if>
+            <if test="flowType != null">#{flowType},</if>
+            <if test="flowNote != null">#{flowNote},</if>
+            <if test="flowStatus != null">#{flowStatus},</if>
+            <if test="flowSort != null">#{flowSort},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+        </trim>
+    </insert>
+
+    <update id="updateMdAppFlow" parameterType="com.ruoyi.interfaces.domain.MdAppFlow">
+        update md_app_flow
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="appId != null and appId != ''">APP_ID = #{appId},</if>
+            <if test="flowName != null and flowName != ''">FLOW_NAME = #{flowName},</if>
+            <if test="flowGraph != null">FLOW_GRAPH = #{flowGraph},</if>
+            <if test="flowType != null">FLOW_TYPE = #{flowType},</if>
+            <if test="flowNote != null">FLOW_NOTE = #{flowNote},</if>
+            <if test="flowStatus != null">FLOW_STATUS = #{flowStatus},</if>
+            <if test="flowSort != null">FLOW_SORT = #{flowSort},</if>
+            <if test="createBy != null">CREATE_BY = #{createBy},</if>
+            <if test="createTime != null">CREATE_TIME = #{createTime},</if>
+            <if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
+            <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
+        </trim>
+        where FLOW_ID = #{flowId}
+    </update>
+
+    <delete id="deleteMdAppFlowByFlowId" parameterType="Long">
+        delete from md_app_flow where FLOW_ID = #{flowId}
+    </delete>
+
+    <delete id="deleteMdAppFlowByFlowIds" parameterType="String">
+        delete from md_app_flow where FLOW_ID in
+        <foreach item="flowId" collection="array" open="(" separator="," close=")">
+            #{flowId}
+        </foreach>
+    </delete>
+</mapper>

+ 81 - 0
ruoyi-api-patform/src/main/resources/mapper/interfaces/MdAppMapper.xml

@@ -0,0 +1,81 @@
+<?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.ruoyi.interfaces.mapper.MdAppMapper">
+
+    <resultMap type="com.ruoyi.interfaces.domain.MdApp" id="MdAppResult">
+        <result property="appId"    column="APP_ID"    />
+        <result property="appTitle"    column="APP_TITLE"    />
+        <result property="appNote"    column="APP_NOTE"    />
+        <result property="appIcon"    column="APP_ICON"    />
+        <result property="appOrd"    column="APP_ORD"    />
+        <result property="createBy"    column="CREATE_BY"    />
+        <result property="createTime"    column="CREATE_TIME"    />
+    </resultMap>
+
+    <sql id="selectMdAppVo">
+        select APP_ID, APP_TITLE, APP_NOTE, APP_ICON, APP_ORD, CREATE_BY, CREATE_TIME from md_app
+    </sql>
+
+    <select id="selectMdAppList" parameterType="com.ruoyi.interfaces.domain.MdApp" resultMap="MdAppResult">
+        <include refid="selectMdAppVo"/>
+        <where>
+            <if test="appTitle != null  and appTitle != ''"> and APP_TITLE like concat('%', #{appTitle}, '%')</if>
+            <if test="appNote != null  and appNote != ''"> and APP_NOTE = #{appNote}</if>
+            <if test="appIcon != null  and appIcon != ''"> and APP_ICON = #{appIcon}</if>
+            <if test="appOrd != null "> and APP_ORD = #{appOrd}</if>
+            <if test="createBy != null  and createBy != ''"> and CREATE_BY = #{createBy}</if>
+            <if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
+        </where>
+    </select>
+
+    <select id="selectMdAppByAppId" parameterType="Long" resultMap="MdAppResult">
+        <include refid="selectMdAppVo"/>
+        where APP_ID = #{appId}
+    </select>
+
+    <insert id="insertMdApp" parameterType="com.ruoyi.interfaces.domain.MdApp" useGeneratedKeys="true" keyProperty="appId">
+        insert into md_app
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="appTitle != null and appTitle != ''">APP_TITLE,</if>
+            <if test="appNote != null and appNote != ''">APP_NOTE,</if>
+            <if test="appIcon != null">APP_ICON,</if>
+            <if test="appOrd != null">APP_ORD,</if>
+            <if test="createBy != null">CREATE_BY,</if>
+            <if test="createTime != null">CREATE_TIME,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="appTitle != null and appTitle != ''">#{appTitle},</if>
+            <if test="appNote != null and appNote != ''">#{appNote},</if>
+            <if test="appIcon != null">#{appIcon},</if>
+            <if test="appOrd != null">#{appOrd},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+        </trim>
+    </insert>
+
+    <update id="updateMdApp" parameterType="com.ruoyi.interfaces.domain.MdApp">
+        update md_app
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="appTitle != null and appTitle != ''">APP_TITLE = #{appTitle},</if>
+            <if test="appNote != null and appNote != ''">APP_NOTE = #{appNote},</if>
+            <if test="appIcon != null">APP_ICON = #{appIcon},</if>
+            <if test="appOrd != null">APP_ORD = #{appOrd},</if>
+            <if test="createBy != null">CREATE_BY = #{createBy},</if>
+            <if test="createTime != null">CREATE_TIME = #{createTime},</if>
+        </trim>
+        where APP_ID = #{appId}
+    </update>
+
+    <delete id="deleteMdAppByAppId" parameterType="Long">
+        delete from md_app where APP_ID = #{appId}
+    </delete>
+
+    <delete id="deleteMdAppByAppIds" parameterType="String">
+        delete from md_app where APP_ID in
+        <foreach item="appId" collection="array" open="(" separator="," close=")">
+            #{appId}
+        </foreach>
+    </delete>
+</mapper>