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

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

parent 2a734e5d
......@@ -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));
}
/**
* 导出策略算法块所需参数列表
*/
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment