Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AI算法平台
RuoYi-Vue-master
Commits
8b4d8b46
Commit
8b4d8b46
authored
May 16, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、开发通过算法块获取算法块参数接口
parent
2a734e5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
ruoyi-admin/src/main/java/com/ruoyi/algorithm/controller/AlgorithmPieceVariableController.java
...lgorithm/controller/AlgorithmPieceVariableController.java
+12
-0
ruoyi-admin/src/main/resources/mapper/system/AlgorithmPieceVariableMapper.xml
.../resources/mapper/system/AlgorithmPieceVariableMapper.xml
+1
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/algorithm/controller/AlgorithmPieceVariableController.java
View file @
8b4d8b46
...
...
@@ -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
));
}
/**
* 导出策略算法块所需参数列表
*/
...
...
ruoyi-admin/src/main/resources/mapper/system/AlgorithmPieceVariableMapper.xml
View file @
8b4d8b46
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment