1、任务启动时就发送指令
2、新增局点多级数据库表查询 3、静态任务下发指令补充指令展示id
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.realtime.protection.server.nodetree;
|
||||
|
||||
|
||||
import com.realtime.protection.configuration.response.ResponseResult;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
//李福连
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/nodeTree")
|
||||
@Slf4j
|
||||
public class NodeTreeController {
|
||||
|
||||
@Autowired
|
||||
NodeTreeService nodeTreeService;
|
||||
@GetMapping("/get")
|
||||
public ResponseResult tupoInfo(String business) throws IOException {
|
||||
|
||||
List<NodeEntity> roots = nodeTreeService.get();
|
||||
|
||||
|
||||
if (!roots.isEmpty()) {
|
||||
return ResponseResult.ok()
|
||||
.setData("data", roots);
|
||||
}
|
||||
|
||||
return ResponseResult.error()
|
||||
.setMessage("没有查到");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user