whyclxw
2024-11-22 db47e45574b36a3d4e3760cc359acd86468ee3c5
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.whyc.controller;
 
import ch.qos.logback.classic.sift.AppenderFactoryUsingJoran;
import com.whyc.service.HeiHeStationService;
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;
 
@RestController
@RequestMapping("heihe")
public class HeiHeStationController {
 
    @Autowired
    private HeiHeStationService service;
 
    /**
     * TODO 第一步调用
     *  首先需要执行
     * 插入机房信息
     * 调试使用
     */
    @GetMapping("call")
    public void call(){
        service.getAndSaveStationInf();
    }
 
    /**
     * 插入实时数据
     * 调试使用
     */
    @GetMapping("callII")
    public void callII(){
        service.getAndSaveRealtimeData();
    }
 
    /**
     * TODO !!!!!!!!!!! 第一步需要进行调用的,后续所有的实时数据工作开展都是基于这个!!!!!!!!!!!!!!
     */
    /*@GetMapping("getObid")
    public void collectObidAndNameToTable(){
        service.collectObidAndNameToTable();
    }
 
    @GetMapping("getObid2")
    public void collectObidAndNameToTable2(String stId){
        service.collectObidAndNameToTable(stId);
    }*/
 
}