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("getSticRealAcData") public Response getSticRealAcData(@RequestBody SticRealDataAc stic) throws ParseException, InterruptedException { return pwrdevHistorydataIdService.getSticRealAcData(stic); } @ApiOperation(value = "核容设备") @PostMapping("getSticRealHrData") public Response getSticRealHrData(@RequestBody SticRealDataAc stic) throws ParseException, InterruptedException { return battRealdataIdService.getSticRealHrData(stic); } }