添加字段和表
parent
34b113a19c
commit
f7101a0a3b
|
@ -80,11 +80,11 @@ public class TaskInputController {
|
|||
*/
|
||||
@GetMapping("/{id}")
|
||||
@Operation(summary = "任务信息查询", description = "通过任务id查询任务信息")
|
||||
public Result<TaskInputResp> selectById(@PathVariable("id") Long id) {
|
||||
public Result selectById(@PathVariable("id") Long id) {
|
||||
QueryWrapper<TaskInput> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("node_id",id);
|
||||
TaskInput byId = taskInputService.getById(wrapper);
|
||||
return Result.success(TaskInput.build(byId));
|
||||
List<TaskInput> list = taskInputService.list(wrapper);
|
||||
return Result.success(list.stream().map(taskInput -> TaskInput.build(taskInput)).toList());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue