Commit 8b4d8b46 authored by 周昊's avatar 周昊
Browse files

1、开发通过算法块获取算法块参数接口

parent 2a734e5d
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -46,6 +46,18 @@ public class AlgorithmPieceVariableController extends BaseController
        return getDataTable(list);
    }

    /**
     * 查询策略算法块所需参数列表
     */
    @PreAuthorize("@ss.hasPermi('system:variable:list')")
    @GetMapping("/list/{pieceId}")
    public AjaxResult listByPieceId(@PathVariable("pieceId") Long pieceId)
    {
        AlgorithmPieceVariable algorithmPieceVariable = new AlgorithmPieceVariable();
        algorithmPieceVariable.setAlgorithmPieceBaseId(pieceId);
        return success(algorithmPieceVariableService.selectAlgorithmPieceVariableList(algorithmPieceVariable));
    }

    /**
     * 导出策略算法块所需参数列表
     */
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
    <select id="selectAlgorithmPieceVariableList" parameterType="AlgorithmPieceVariable" resultMap="AlgorithmPieceVariableResult">
        <include refid="selectAlgorithmPieceVariableVo"/>
        <where>  
            <if test="algorithmPieceBaseId != null"> and algorithm_piece_base_id = #{algorithmPieceBaseId}</if>
            <if test="variableName != null  and variableName != ''"> and variable_name like concat('%', #{variableName}, '%')</if>
            <if test="variableType != null  and variableType != ''"> and variable_type = #{variableType}</if>
        </where>