#
luxiaotao1123
2024-10-29 bfac8bfa522289b8d2c0b66c50c4bf8b8d75c0e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.zy.acs.manager.core;
 
import com.zy.acs.framework.common.R;
import com.zy.acs.manager.core.service.LaneService;
import com.zy.acs.manager.manager.entity.Task;
import com.zy.acs.manager.manager.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * Created by vincent on 10/24/2024
 */
@RestController
@RequestMapping("/test")
public class DispatcherTestController {
 
    @Autowired
    private LaneService laneService;
    @Autowired
    private TaskService taskService;
 
    @GetMapping("/lanes")
    public R getLanes() {
        List<Task> taskList = taskService.findRunningTasksByLaneHash("4b81ebaedd8ed7662d37b63e20dec5dd089d4c32136b8826c6323839fe51938e");
 
        return R.ok().add(laneService.search("00000010"));
    }
 
}