Răsfoiți Sursa

生成算法和数据样例模块

wukai 2 săptămâni în urmă
părinte
comite
78329c0680

+ 99 - 0
jjt-biz/src/main/java/com/jjt/biz/controller/RipaAlgoController.java

@@ -0,0 +1,99 @@
+package com.jjt.biz.controller;
+
+import com.jjt.biz.domain.RipaAlgo;
+import com.jjt.biz.service.IRipaAlgoService;
+import com.jjt.common.annotation.Log;
+import com.jjt.common.core.controller.BaseController;
+import com.jjt.common.core.domain.AjaxResult;
+import com.jjt.common.core.page.TableDataInfo;
+import com.jjt.common.enums.BusinessType;
+import com.jjt.common.utils.poi.ExcelUtil;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 算法管理Controller
+ *
+ * @author jjt
+ * @date 2025-10-21
+ */
+@Api(tags = "算法管理")
+@RestController
+@RequestMapping("/biz/algo")
+public class RipaAlgoController extends BaseController {
+    @Resource
+    private IRipaAlgoService ripaAlgoService;
+
+    /**
+     * 查询算法管理列表
+     */
+    @ApiOperation("查询算法管理列表")
+    //@PreAuthorize("@ss.hasPermi('biz:algo:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(RipaAlgo ripaAlgo) {
+        startPage();
+        List<RipaAlgo> list = ripaAlgoService.selectRipaAlgoList(ripaAlgo);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出算法管理列表
+     */
+    @ApiOperation("导出算法管理列表")
+    //@PreAuthorize("@ss.hasPermi('biz:algo:export')")
+    @Log(title = "算法管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, RipaAlgo ripaAlgo) {
+        List<RipaAlgo> list = ripaAlgoService.selectRipaAlgoList(ripaAlgo);
+        ExcelUtil<RipaAlgo> util = new ExcelUtil<RipaAlgo>(RipaAlgo.class);
+        util.exportExcel(response, list, "算法管理数据");
+    }
+
+    /**
+     * 获取算法管理详细信息
+     */
+    @ApiOperation("获取算法管理详细信息")
+    //@PreAuthorize("@ss.hasPermi('biz:algo:query')")
+    @GetMapping(value = "/detail")
+    public AjaxResult getInfo(Long algoId) {
+        return success(ripaAlgoService.selectRipaAlgoByAlgoId(algoId));
+    }
+
+    /**
+     * 新增算法管理
+     */
+    @ApiOperation("新增算法管理")
+    //@PreAuthorize("@ss.hasPermi('biz:algo:add')")
+    @Log(title = "算法管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody RipaAlgo ripaAlgo) {
+        return toAjax(ripaAlgoService.insertRipaAlgo(ripaAlgo));
+    }
+
+    /**
+     * 修改算法管理
+     */
+    @ApiOperation("修改算法管理")
+    //@PreAuthorize("@ss.hasPermi('biz:algo:edit')")
+    @Log(title = "算法管理", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    public AjaxResult edit(@RequestBody RipaAlgo ripaAlgo) {
+        return toAjax(ripaAlgoService.updateRipaAlgo(ripaAlgo));
+    }
+
+    /**
+     * 删除算法管理
+     */
+    @ApiOperation("删除算法管理")
+    //@PreAuthorize("@ss.hasPermi('biz:algo:remove')")
+    @Log(title = "算法管理", businessType = BusinessType.DELETE)
+    @GetMapping("/del")
+    public AjaxResult remove(Long algoId) {
+        return toAjax(ripaAlgoService.deleteRipaAlgoByAlgoId(algoId));
+    }
+}

+ 99 - 0
jjt-biz/src/main/java/com/jjt/biz/controller/RipaAlgoDataController.java

@@ -0,0 +1,99 @@
+package com.jjt.biz.controller;
+
+import com.jjt.biz.domain.RipaAlgoData;
+import com.jjt.biz.service.IRipaAlgoDataService;
+import com.jjt.common.annotation.Log;
+import com.jjt.common.core.controller.BaseController;
+import com.jjt.common.core.domain.AjaxResult;
+import com.jjt.common.core.page.TableDataInfo;
+import com.jjt.common.enums.BusinessType;
+import com.jjt.common.utils.poi.ExcelUtil;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 算法数据样例管理Controller
+ *
+ * @author jjt
+ * @date 2025-10-21
+ */
+@Api(tags = "算法数据样例管理")
+@RestController
+@RequestMapping("/biz/data")
+public class RipaAlgoDataController extends BaseController {
+    @Resource
+    private IRipaAlgoDataService ripaAlgoDataService;
+
+    /**
+     * 查询算法数据样例管理列表
+     */
+    @ApiOperation("查询算法数据样例管理列表")
+    //@PreAuthorize("@ss.hasPermi('biz:data:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(RipaAlgoData ripaAlgoData) {
+        startPage();
+        List<RipaAlgoData> list = ripaAlgoDataService.selectRipaAlgoDataList(ripaAlgoData);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出算法数据样例管理列表
+     */
+    @ApiOperation("导出算法数据样例管理列表")
+    //@PreAuthorize("@ss.hasPermi('biz:data:export')")
+    @Log(title = "算法数据样例管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, RipaAlgoData ripaAlgoData) {
+        List<RipaAlgoData> list = ripaAlgoDataService.selectRipaAlgoDataList(ripaAlgoData);
+        ExcelUtil<RipaAlgoData> util = new ExcelUtil<RipaAlgoData>(RipaAlgoData.class);
+        util.exportExcel(response, list, "算法数据样例管理数据");
+    }
+
+    /**
+     * 获取算法数据样例管理详细信息
+     */
+    @ApiOperation("获取算法数据样例管理详细信息")
+    //@PreAuthorize("@ss.hasPermi('biz:data:query')")
+    @GetMapping(value = "/detail")
+    public AjaxResult getInfo(Long dataId) {
+        return success(ripaAlgoDataService.selectRipaAlgoDataByDataId(dataId));
+    }
+
+    /**
+     * 新增算法数据样例管理
+     */
+    @ApiOperation("新增算法数据样例管理")
+    //@PreAuthorize("@ss.hasPermi('biz:data:add')")
+    @Log(title = "算法数据样例管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody RipaAlgoData ripaAlgoData) {
+        return toAjax(ripaAlgoDataService.insertRipaAlgoData(ripaAlgoData));
+    }
+
+    /**
+     * 修改算法数据样例管理
+     */
+    @ApiOperation("修改算法数据样例管理")
+    //@PreAuthorize("@ss.hasPermi('biz:data:edit')")
+    @Log(title = "算法数据样例管理", businessType = BusinessType.UPDATE)
+    @PostMapping("/edit")
+    public AjaxResult edit(@RequestBody RipaAlgoData ripaAlgoData) {
+        return toAjax(ripaAlgoDataService.updateRipaAlgoData(ripaAlgoData));
+    }
+
+    /**
+     * 删除算法数据样例管理
+     */
+    @ApiOperation("删除算法数据样例管理")
+    //@PreAuthorize("@ss.hasPermi('biz:data:remove')")
+    @Log(title = "算法数据样例管理", businessType = BusinessType.DELETE)
+    @GetMapping("/del")
+    public AjaxResult remove(Long dataId) {
+        return toAjax(ripaAlgoDataService.deleteRipaAlgoDataByDataId(dataId));
+    }
+}

+ 138 - 0
jjt-biz/src/main/java/com/jjt/biz/domain/RipaAlgo.java

@@ -0,0 +1,138 @@
+package com.jjt.biz.domain;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.jjt.common.annotation.Excel;
+import com.jjt.common.core.domain.BaseEntity;
+
+/**
+ * 算法管理对象 ripa_algo
+ *
+ * @author jjt
+ * @date 2025-10-21
+ */
+@ApiModel(value = "RipaAlgo", description = "算法管理")
+public class RipaAlgo extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 算法ID */
+    @ApiModelProperty("算法ID")
+    @TableId
+    private Long algoId;
+
+    /** 算法名称 */
+    @ApiModelProperty("算法名称")
+    @Excel(name = "算法名称")
+    private String algoName;
+
+    /** 算法描述 */
+    @ApiModelProperty("算法描述")
+    @Excel(name = "算法描述")
+    private String algoDesc;
+
+    /** 算法脚本 */
+    @ApiModelProperty("算法脚本")
+    @Excel(name = "算法脚本")
+    private String algoScript;
+
+    /** 算法是否正确 */
+    @ApiModelProperty("算法是否正确")
+    @Excel(name = "算法是否正确")
+    private String algoOk;
+
+    /** 算法类别 */
+    @ApiModelProperty("算法类别")
+    @Excel(name = "算法类别")
+    private String algoType;
+
+    /** 算法参数 */
+    @ApiModelProperty("算法参数")
+    @Excel(name = "算法参数")
+    private String algoPara;
+
+    public void setAlgoId(Long algoId)
+    {
+        this.algoId = algoId;
+    }
+
+    public Long getAlgoId()
+    {
+        return algoId;
+    }
+    public void setAlgoName(String algoName)
+    {
+        this.algoName = algoName;
+    }
+
+    public String getAlgoName()
+    {
+        return algoName;
+    }
+    public void setAlgoDesc(String algoDesc)
+    {
+        this.algoDesc = algoDesc;
+    }
+
+    public String getAlgoDesc()
+    {
+        return algoDesc;
+    }
+    public void setAlgoScript(String algoScript)
+    {
+        this.algoScript = algoScript;
+    }
+
+    public String getAlgoScript()
+    {
+        return algoScript;
+    }
+    public void setAlgoOk(String algoOk)
+    {
+        this.algoOk = algoOk;
+    }
+
+    public String getAlgoOk()
+    {
+        return algoOk;
+    }
+    public void setAlgoType(String algoType)
+    {
+        this.algoType = algoType;
+    }
+
+    public String getAlgoType()
+    {
+        return algoType;
+    }
+    public void setAlgoPara(String algoPara)
+    {
+        this.algoPara = algoPara;
+    }
+
+    public String getAlgoPara()
+    {
+        return algoPara;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("algoId", getAlgoId())
+            .append("algoName", getAlgoName())
+            .append("algoDesc", getAlgoDesc())
+            .append("algoScript", getAlgoScript())
+            .append("algoOk", getAlgoOk())
+            .append("algoType", getAlgoType())
+            .append("algoPara", getAlgoPara())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 88 - 0
jjt-biz/src/main/java/com/jjt/biz/domain/RipaAlgoData.java

@@ -0,0 +1,88 @@
+package com.jjt.biz.domain;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.jjt.common.annotation.Excel;
+import com.jjt.common.core.domain.BaseEntity;
+
+/**
+ * 算法数据样例管理对象 ripa_algo_data
+ *
+ * @author jjt
+ * @date 2025-10-21
+ */
+@ApiModel(value = "RipaAlgoData", description = "算法数据样例管理")
+public class RipaAlgoData extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 数据样例ID */
+    @ApiModelProperty("数据样例ID")
+    @TableId
+    private Long dataId;
+
+    /** 样例名称 */
+    @ApiModelProperty("样例名称")
+    @Excel(name = "样例名称")
+    private String dataName;
+
+    /** 本周数据 */
+    @ApiModelProperty("本周数据")
+    @Excel(name = "本周数据")
+    private String currData;
+
+    /** 上周数据 */
+    @ApiModelProperty("上周数据")
+    @Excel(name = "上周数据")
+    private String lastData;
+
+    public void setDataId(Long dataId)
+    {
+        this.dataId = dataId;
+    }
+
+    public Long getDataId()
+    {
+        return dataId;
+    }
+    public void setDataName(String dataName)
+    {
+        this.dataName = dataName;
+    }
+
+    public String getDataName()
+    {
+        return dataName;
+    }
+    public void setCurrData(String currData)
+    {
+        this.currData = currData;
+    }
+
+    public String getCurrData()
+    {
+        return currData;
+    }
+    public void setLastData(String lastData)
+    {
+        this.lastData = lastData;
+    }
+
+    public String getLastData()
+    {
+        return lastData;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("dataId", getDataId())
+            .append("dataName", getDataName())
+            .append("currData", getCurrData())
+            .append("lastData", getLastData())
+            .toString();
+    }
+}

+ 62 - 0
jjt-biz/src/main/java/com/jjt/biz/mapper/RipaAlgoDataMapper.java

@@ -0,0 +1,62 @@
+package com.jjt.biz.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.jjt.biz.domain.RipaAlgoData;
+
+/**
+ * 算法数据样例管理Mapper接口
+ * 
+ * @author jjt
+ * @date 2025-10-21
+ */
+public interface RipaAlgoDataMapper extends BaseMapper<RipaAlgoData>
+{
+    /**
+     * 查询算法数据样例管理
+     * 
+     * @param dataId 算法数据样例管理主键
+     * @return 算法数据样例管理
+     */
+    public RipaAlgoData selectRipaAlgoDataByDataId(Long dataId);
+
+    /**
+     * 查询算法数据样例管理列表
+     * 
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 算法数据样例管理集合
+     */
+    public List<RipaAlgoData> selectRipaAlgoDataList(RipaAlgoData ripaAlgoData);
+
+    /**
+     * 新增算法数据样例管理
+     * 
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 结果
+     */
+    public int insertRipaAlgoData(RipaAlgoData ripaAlgoData);
+
+    /**
+     * 修改算法数据样例管理
+     * 
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 结果
+     */
+    public int updateRipaAlgoData(RipaAlgoData ripaAlgoData);
+
+    /**
+     * 删除算法数据样例管理
+     * 
+     * @param dataId 算法数据样例管理主键
+     * @return 结果
+     */
+    public int deleteRipaAlgoDataByDataId(Long dataId);
+
+    /**
+     * 批量删除算法数据样例管理
+     * 
+     * @param dataIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteRipaAlgoDataByDataIds(Long[] dataIds);
+}

+ 62 - 0
jjt-biz/src/main/java/com/jjt/biz/mapper/RipaAlgoMapper.java

@@ -0,0 +1,62 @@
+package com.jjt.biz.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.jjt.biz.domain.RipaAlgo;
+
+/**
+ * 算法管理Mapper接口
+ * 
+ * @author jjt
+ * @date 2025-10-21
+ */
+public interface RipaAlgoMapper extends BaseMapper<RipaAlgo>
+{
+    /**
+     * 查询算法管理
+     * 
+     * @param algoId 算法管理主键
+     * @return 算法管理
+     */
+    public RipaAlgo selectRipaAlgoByAlgoId(Long algoId);
+
+    /**
+     * 查询算法管理列表
+     * 
+     * @param ripaAlgo 算法管理
+     * @return 算法管理集合
+     */
+    public List<RipaAlgo> selectRipaAlgoList(RipaAlgo ripaAlgo);
+
+    /**
+     * 新增算法管理
+     * 
+     * @param ripaAlgo 算法管理
+     * @return 结果
+     */
+    public int insertRipaAlgo(RipaAlgo ripaAlgo);
+
+    /**
+     * 修改算法管理
+     * 
+     * @param ripaAlgo 算法管理
+     * @return 结果
+     */
+    public int updateRipaAlgo(RipaAlgo ripaAlgo);
+
+    /**
+     * 删除算法管理
+     * 
+     * @param algoId 算法管理主键
+     * @return 结果
+     */
+    public int deleteRipaAlgoByAlgoId(Long algoId);
+
+    /**
+     * 批量删除算法管理
+     * 
+     * @param algoIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteRipaAlgoByAlgoIds(Long[] algoIds);
+}

+ 61 - 0
jjt-biz/src/main/java/com/jjt/biz/service/IRipaAlgoDataService.java

@@ -0,0 +1,61 @@
+package com.jjt.biz.service;
+
+import java.util.List;
+import com.jjt.biz.domain.RipaAlgoData;
+
+/**
+ * 算法数据样例管理Service接口
+ * 
+ * @author jjt
+ * @date 2025-10-21
+ */
+public interface IRipaAlgoDataService 
+{
+    /**
+     * 查询算法数据样例管理
+     * 
+     * @param dataId 算法数据样例管理主键
+     * @return 算法数据样例管理
+     */
+    public RipaAlgoData selectRipaAlgoDataByDataId(Long dataId);
+
+    /**
+     * 查询算法数据样例管理列表
+     * 
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 算法数据样例管理集合
+     */
+    public List<RipaAlgoData> selectRipaAlgoDataList(RipaAlgoData ripaAlgoData);
+
+    /**
+     * 新增算法数据样例管理
+     * 
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 结果
+     */
+    public int insertRipaAlgoData(RipaAlgoData ripaAlgoData);
+
+    /**
+     * 修改算法数据样例管理
+     * 
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 结果
+     */
+    public int updateRipaAlgoData(RipaAlgoData ripaAlgoData);
+
+    /**
+     * 批量删除算法数据样例管理
+     * 
+     * @param dataIds 需要删除的算法数据样例管理主键集合
+     * @return 结果
+     */
+    public int deleteRipaAlgoDataByDataIds(Long[] dataIds);
+
+    /**
+     * 删除算法数据样例管理信息
+     * 
+     * @param dataId 算法数据样例管理主键
+     * @return 结果
+     */
+    public int deleteRipaAlgoDataByDataId(Long dataId);
+}

+ 61 - 0
jjt-biz/src/main/java/com/jjt/biz/service/IRipaAlgoService.java

@@ -0,0 +1,61 @@
+package com.jjt.biz.service;
+
+import java.util.List;
+import com.jjt.biz.domain.RipaAlgo;
+
+/**
+ * 算法管理Service接口
+ * 
+ * @author jjt
+ * @date 2025-10-21
+ */
+public interface IRipaAlgoService 
+{
+    /**
+     * 查询算法管理
+     * 
+     * @param algoId 算法管理主键
+     * @return 算法管理
+     */
+    public RipaAlgo selectRipaAlgoByAlgoId(Long algoId);
+
+    /**
+     * 查询算法管理列表
+     * 
+     * @param ripaAlgo 算法管理
+     * @return 算法管理集合
+     */
+    public List<RipaAlgo> selectRipaAlgoList(RipaAlgo ripaAlgo);
+
+    /**
+     * 新增算法管理
+     * 
+     * @param ripaAlgo 算法管理
+     * @return 结果
+     */
+    public int insertRipaAlgo(RipaAlgo ripaAlgo);
+
+    /**
+     * 修改算法管理
+     * 
+     * @param ripaAlgo 算法管理
+     * @return 结果
+     */
+    public int updateRipaAlgo(RipaAlgo ripaAlgo);
+
+    /**
+     * 批量删除算法管理
+     * 
+     * @param algoIds 需要删除的算法管理主键集合
+     * @return 结果
+     */
+    public int deleteRipaAlgoByAlgoIds(Long[] algoIds);
+
+    /**
+     * 删除算法管理信息
+     * 
+     * @param algoId 算法管理主键
+     * @return 结果
+     */
+    public int deleteRipaAlgoByAlgoId(Long algoId);
+}

+ 86 - 0
jjt-biz/src/main/java/com/jjt/biz/service/impl/RipaAlgoDataServiceImpl.java

@@ -0,0 +1,86 @@
+package com.jjt.biz.service.impl;
+
+import java.util.List;
+import org.springframework.stereotype.Service;
+import com.jjt.biz.mapper.RipaAlgoDataMapper;
+import com.jjt.biz.domain.RipaAlgoData;
+import com.jjt.biz.service.IRipaAlgoDataService;
+import javax.annotation.Resource;
+
+/**
+ * 算法数据样例管理Service业务层处理
+ *
+ * @author jjt
+ * @date 2025-10-21
+ */
+@Service
+public class RipaAlgoDataServiceImpl implements IRipaAlgoDataService {
+    @Resource
+    private RipaAlgoDataMapper ripaAlgoDataMapper;
+
+    /**
+     * 查询算法数据样例管理
+     *
+     * @param dataId 算法数据样例管理主键
+     * @return 算法数据样例管理
+     */
+    @Override
+    public RipaAlgoData selectRipaAlgoDataByDataId(Long dataId) {
+        return ripaAlgoDataMapper.selectRipaAlgoDataByDataId(dataId);
+    }
+
+    /**
+     * 查询算法数据样例管理列表
+     *
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 算法数据样例管理
+     */
+    @Override
+    public List<RipaAlgoData> selectRipaAlgoDataList(RipaAlgoData ripaAlgoData) {
+        return ripaAlgoDataMapper.selectRipaAlgoDataList(ripaAlgoData);
+    }
+
+    /**
+     * 新增算法数据样例管理
+     *
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 结果
+     */
+    @Override
+    public int insertRipaAlgoData(RipaAlgoData ripaAlgoData) {
+            return ripaAlgoDataMapper.insertRipaAlgoData(ripaAlgoData);
+    }
+
+    /**
+     * 修改算法数据样例管理
+     *
+     * @param ripaAlgoData 算法数据样例管理
+     * @return 结果
+     */
+    @Override
+    public int updateRipaAlgoData(RipaAlgoData ripaAlgoData) {
+        return ripaAlgoDataMapper.updateRipaAlgoData(ripaAlgoData);
+    }
+
+    /**
+     * 批量删除算法数据样例管理
+     *
+     * @param dataIds 需要删除的算法数据样例管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRipaAlgoDataByDataIds(Long[] dataIds) {
+        return ripaAlgoDataMapper.deleteRipaAlgoDataByDataIds(dataIds);
+    }
+
+    /**
+     * 删除算法数据样例管理信息
+     *
+     * @param dataId 算法数据样例管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRipaAlgoDataByDataId(Long dataId) {
+        return ripaAlgoDataMapper.deleteRipaAlgoDataByDataId(dataId);
+    }
+}

+ 89 - 0
jjt-biz/src/main/java/com/jjt/biz/service/impl/RipaAlgoServiceImpl.java

@@ -0,0 +1,89 @@
+package com.jjt.biz.service.impl;
+
+import java.util.List;
+        import com.jjt.common.utils.DateUtils;
+import org.springframework.stereotype.Service;
+import com.jjt.biz.mapper.RipaAlgoMapper;
+import com.jjt.biz.domain.RipaAlgo;
+import com.jjt.biz.service.IRipaAlgoService;
+import javax.annotation.Resource;
+
+/**
+ * 算法管理Service业务层处理
+ *
+ * @author jjt
+ * @date 2025-10-21
+ */
+@Service
+public class RipaAlgoServiceImpl implements IRipaAlgoService {
+    @Resource
+    private RipaAlgoMapper ripaAlgoMapper;
+
+    /**
+     * 查询算法管理
+     *
+     * @param algoId 算法管理主键
+     * @return 算法管理
+     */
+    @Override
+    public RipaAlgo selectRipaAlgoByAlgoId(Long algoId) {
+        return ripaAlgoMapper.selectRipaAlgoByAlgoId(algoId);
+    }
+
+    /**
+     * 查询算法管理列表
+     *
+     * @param ripaAlgo 算法管理
+     * @return 算法管理
+     */
+    @Override
+    public List<RipaAlgo> selectRipaAlgoList(RipaAlgo ripaAlgo) {
+        return ripaAlgoMapper.selectRipaAlgoList(ripaAlgo);
+    }
+
+    /**
+     * 新增算法管理
+     *
+     * @param ripaAlgo 算法管理
+     * @return 结果
+     */
+    @Override
+    public int insertRipaAlgo(RipaAlgo ripaAlgo) {
+                ripaAlgo.setCreateTime(DateUtils.getNowDate());
+            return ripaAlgoMapper.insertRipaAlgo(ripaAlgo);
+    }
+
+    /**
+     * 修改算法管理
+     *
+     * @param ripaAlgo 算法管理
+     * @return 结果
+     */
+    @Override
+    public int updateRipaAlgo(RipaAlgo ripaAlgo) {
+                ripaAlgo.setUpdateTime(DateUtils.getNowDate());
+        return ripaAlgoMapper.updateRipaAlgo(ripaAlgo);
+    }
+
+    /**
+     * 批量删除算法管理
+     *
+     * @param algoIds 需要删除的算法管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRipaAlgoByAlgoIds(Long[] algoIds) {
+        return ripaAlgoMapper.deleteRipaAlgoByAlgoIds(algoIds);
+    }
+
+    /**
+     * 删除算法管理信息
+     *
+     * @param algoId 算法管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteRipaAlgoByAlgoId(Long algoId) {
+        return ripaAlgoMapper.deleteRipaAlgoByAlgoId(algoId);
+    }
+}

+ 88 - 0
jjt-biz/src/main/resources/mapper/biz/RipaAlgoDataMapper.xml

@@ -0,0 +1,88 @@
+<?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.jjt.biz.mapper.RipaAlgoDataMapper">
+
+    <resultMap type="RipaAlgoData" id="RipaAlgoDataResult">
+            <result property="dataId" column="DATA_ID"/>
+            <result property="dataName" column="DATA_NAME"/>
+            <result property="currData" column="CURR_DATA"/>
+            <result property="lastData" column="LAST_DATA"/>
+    </resultMap>
+
+    <sql id="selectRipaAlgoDataVo">
+        select DATA_ID, DATA_NAME, CURR_DATA, LAST_DATA
+        from ripa_algo_data
+    </sql>
+
+    <select id="selectRipaAlgoDataList" parameterType="RipaAlgoData" resultMap="RipaAlgoDataResult">
+        <include refid="selectRipaAlgoDataVo"/>
+        <where>
+                        <if test="dataName != null  and dataName != ''">
+                            and DATA_NAME like concat('%', #{dataName}, '%')
+                        </if>
+                        <if test="currData != null  and currData != ''">
+                            and CURR_DATA = #{currData}
+                        </if>
+                        <if test="lastData != null  and lastData != ''">
+                            and LAST_DATA = #{lastData}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectRipaAlgoDataByDataId" parameterType="Long"
+            resultMap="RipaAlgoDataResult">
+            <include refid="selectRipaAlgoDataVo"/>
+            where DATA_ID = #{dataId}
+    </select>
+
+    <insert id="insertRipaAlgoData" parameterType="RipaAlgoData" useGeneratedKeys="true"
+            keyProperty="dataId">
+        insert into ripa_algo_data
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="dataName != null">DATA_NAME,
+                    </if>
+                    <if test="currData != null">CURR_DATA,
+                    </if>
+                    <if test="lastData != null">LAST_DATA,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="dataName != null">#{dataName},
+                    </if>
+                    <if test="currData != null">#{currData},
+                    </if>
+                    <if test="lastData != null">#{lastData},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateRipaAlgoData" parameterType="RipaAlgoData">
+        update ripa_algo_data
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="dataName != null">DATA_NAME =
+                        #{dataName},
+                    </if>
+                    <if test="currData != null">CURR_DATA =
+                        #{currData},
+                    </if>
+                    <if test="lastData != null">LAST_DATA =
+                        #{lastData},
+                    </if>
+        </trim>
+        where DATA_ID = #{dataId}
+    </update>
+
+    <delete id="deleteRipaAlgoDataByDataId" parameterType="Long">
+        delete
+        from ripa_algo_data where DATA_ID = #{dataId}
+    </delete>
+
+    <delete id="deleteRipaAlgoDataByDataIds" parameterType="String">
+        delete from ripa_algo_data where DATA_ID in
+        <foreach item="dataId" collection="array" open="(" separator="," close=")">
+            #{dataId}
+        </foreach>
+    </delete>
+</mapper>

+ 155 - 0
jjt-biz/src/main/resources/mapper/biz/RipaAlgoMapper.xml

@@ -0,0 +1,155 @@
+<?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.jjt.biz.mapper.RipaAlgoMapper">
+
+    <resultMap type="RipaAlgo" id="RipaAlgoResult">
+            <result property="algoId" column="ALGO_ID"/>
+            <result property="algoName" column="ALGO_NAME"/>
+            <result property="algoDesc" column="ALGO_DESC"/>
+            <result property="algoScript" column="ALGO_SCRIPT"/>
+            <result property="algoOk" column="ALGO_OK"/>
+            <result property="algoType" column="ALGO_TYPE"/>
+            <result property="algoPara" column="ALGO_PARA"/>
+            <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="selectRipaAlgoVo">
+        select ALGO_ID, ALGO_NAME, ALGO_DESC, ALGO_SCRIPT, ALGO_OK, ALGO_TYPE, ALGO_PARA, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK
+        from ripa_algo
+    </sql>
+
+    <select id="selectRipaAlgoList" parameterType="RipaAlgo" resultMap="RipaAlgoResult">
+        <include refid="selectRipaAlgoVo"/>
+        <where>
+                        <if test="algoName != null  and algoName != ''">
+                            and ALGO_NAME like concat('%', #{algoName}, '%')
+                        </if>
+                        <if test="algoDesc != null  and algoDesc != ''">
+                            and ALGO_DESC = #{algoDesc}
+                        </if>
+                        <if test="algoType != null  and algoType != ''">
+                            and ALGO_TYPE = #{algoType}
+                        </if>
+                        <if test="algoPara != null  and algoPara != ''">
+                            and ALGO_PARA = #{algoPara}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectRipaAlgoByAlgoId" parameterType="Long"
+            resultMap="RipaAlgoResult">
+            <include refid="selectRipaAlgoVo"/>
+            where ALGO_ID = #{algoId}
+    </select>
+
+    <insert id="insertRipaAlgo" parameterType="RipaAlgo" useGeneratedKeys="true"
+            keyProperty="algoId">
+        insert into ripa_algo
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="algoName != null">ALGO_NAME,
+                    </if>
+                    <if test="algoDesc != null">ALGO_DESC,
+                    </if>
+                    <if test="algoScript != null">ALGO_SCRIPT,
+                    </if>
+                    <if test="algoOk != null">ALGO_OK,
+                    </if>
+                    <if test="algoType != null">ALGO_TYPE,
+                    </if>
+                    <if test="algoPara != null">ALGO_PARA,
+                    </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="algoName != null">#{algoName},
+                    </if>
+                    <if test="algoDesc != null">#{algoDesc},
+                    </if>
+                    <if test="algoScript != null">#{algoScript},
+                    </if>
+                    <if test="algoOk != null">#{algoOk},
+                    </if>
+                    <if test="algoType != null">#{algoType},
+                    </if>
+                    <if test="algoPara != null">#{algoPara},
+                    </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="updateRipaAlgo" parameterType="RipaAlgo">
+        update ripa_algo
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="algoName != null">ALGO_NAME =
+                        #{algoName},
+                    </if>
+                    <if test="algoDesc != null">ALGO_DESC =
+                        #{algoDesc},
+                    </if>
+                    <if test="algoScript != null">ALGO_SCRIPT =
+                        #{algoScript},
+                    </if>
+                    <if test="algoOk != null">ALGO_OK =
+                        #{algoOk},
+                    </if>
+                    <if test="algoType != null">ALGO_TYPE =
+                        #{algoType},
+                    </if>
+                    <if test="algoPara != null">ALGO_PARA =
+                        #{algoPara},
+                    </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 ALGO_ID = #{algoId}
+    </update>
+
+    <delete id="deleteRipaAlgoByAlgoId" parameterType="Long">
+        delete
+        from ripa_algo where ALGO_ID = #{algoId}
+    </delete>
+
+    <delete id="deleteRipaAlgoByAlgoIds" parameterType="String">
+        delete from ripa_algo where ALGO_ID in
+        <foreach item="algoId" collection="array" open="(" separator="," close=")">
+            #{algoId}
+        </foreach>
+    </delete>
+</mapper>