| @@ -121,8 +121,9 @@ public class ExperimentInsController { | |||||
| @GetMapping(("/log/")) | @GetMapping(("/log/")) | ||||
| @ApiOperation("查询实例日志") | @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)); | |||||
| } | } | ||||
| @@ -80,9 +80,8 @@ public interface ExperimentInsService { | |||||
| /** | /** | ||||
| * 查询实验实例日志 | * 查询实验实例日志 | ||||
| * | * | ||||
| * @param id 主键 | |||||
| * @return 运行日志 | * @return 运行日志 | ||||
| */ | */ | ||||
| String showExperimentInsLog(Map<String, Object> req); | |||||
| String showExperimentInsLog(Integer id, String componentId); | |||||
| } | } | ||||
| @@ -344,14 +344,11 @@ public class ExperimentInsServiceImpl implements ExperimentInsService { | |||||
| /** | /** | ||||
| * 查询实验实例日志 | * 查询实验实例日志 | ||||
| * | * | ||||
| * @param map Map格式的请求数据 | |||||
| * @return 运行日志 | * @return 运行日志 | ||||
| */ | */ | ||||
| @Override | @Override | ||||
| public String showExperimentInsLog(Map<String, Object> map) { | |||||
| public String showExperimentInsLog(Integer id, String componentId) { | |||||
| //先从map中取出数据 | //先从map中取出数据 | ||||
| Integer id = (Integer) map.get("id"); | |||||
| String componentId = (String) map.get("component_id"); | |||||
| //先查出实验记录 | //先查出实验记录 | ||||
| ExperimentIns experimentIns = this.experimentInsDao.queryById(id); | ExperimentIns experimentIns = this.experimentInsDao.queryById(id); | ||||