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);
|
}*/
|
|
}
|