Browse Source

修改为param入参

tags/v20240126
fans 2 years ago
parent
commit
e2c4a2403e
3 changed files with 5 additions and 8 deletions
  1. +3
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentInsController.java
  2. +1
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/ExperimentInsService.java
  3. +1
    -4
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java

+ 3
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentInsController.java View File

@@ -121,8 +121,9 @@ public class ExperimentInsController {

@GetMapping(("/log/"))
@ApiOperation("查询实例日志")
public AjaxResult showExperimentInsLog(@RequestBody Map<String,Object> req){
return AjaxResult.success(this.experimentInsService.showExperimentInsLog(req));
public AjaxResult showExperimentInsLog(@RequestParam Integer id,
@RequestParam("component_id") String componentId){
return AjaxResult.success(this.experimentInsService.showExperimentInsLog(id,componentId));
}




+ 1
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/ExperimentInsService.java View File

@@ -80,9 +80,8 @@ public interface ExperimentInsService {
/**
* 查询实验实例日志
*
* @param id 主键
* @return 运行日志
*/
String showExperimentInsLog(Map<String, Object> req);
String showExperimentInsLog(Integer id, String componentId);

}

+ 1
- 4
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java View File

@@ -344,14 +344,11 @@ public class ExperimentInsServiceImpl implements ExperimentInsService {
/**
* 查询实验实例日志
*
* @param map Map格式的请求数据
* @return 运行日志
*/
@Override
public String showExperimentInsLog(Map<String, Object> map) {
public String showExperimentInsLog(Integer id, String componentId) {
//先从map中取出数据
Integer id = (Integer) map.get("id");
String componentId = (String) map.get("component_id");

//先查出实验记录
ExperimentIns experimentIns = this.experimentInsDao.queryById(id);


Loading…
Cancel
Save