package com.whyc.controller;
|
|
import com.whyc.dto.RealDataStatic.SticRealDataAc;
|
import com.whyc.dto.Response;
|
import com.whyc.service.BattRealdataIdService;
|
import com.whyc.service.PwrdevHistorydataIdService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.text.ParseException;
|
|
@RestController
|
@Api(tags = "实时数据曲线统计")
|
@RequestMapping("realStatic")
|
public class RealDataStaticController {
|
@Autowired
|
private PwrdevHistorydataIdService pwrdevHistorydataIdService;
|
|
@Autowired
|
private BattRealdataIdService battRealdataIdService;
|
|
@ApiOperation(value = "交流单元")
|
@PostMapping("getPwrHisAcData")
|
public Response getPwrHisAcData(@RequestBody SticRealDataAc stic) throws ParseException, InterruptedException {
|
return pwrdevHistorydataIdService.getPwrHisAcData(stic);
|
}
|
|
}
|