| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.constant.BattSingalIdEnum; |
| | | import com.whyc.dto.AnalysisAlm.AnalysisChangeRes; |
| | | import com.whyc.dto.Param.AlmAnalyseDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.service.AlmAnalysisParamService; |
| | | import com.whyc.service.BattRealdataIdService; |
| | | import com.whyc.service.BattalarmDataService; |
| | | import com.whyc.service.PwrdevAlarmService; |
| | | import com.whyc.pojo.db_alarm.BattalarmData; |
| | | import com.whyc.service.*; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | |
| | | @RequestMapping("analysis") |
| | | @RestController |
| | |
| | | |
| | | @Autowired |
| | | private AlmAnalysisParamService almAnalysisParamService; |
| | | |
| | | @Autowired |
| | | private DevalarmDataService devalarmDataService; |
| | | |
| | | @PostMapping("getBattAlmAnalyse") |
| | | @ApiOperation("预警分析管理-电池告警") |
| | | public Response getBattAlmAnalyse(@RequestBody AlmAnalyseDto dto){ |
| | |
| | | return battalarmDataService.getBattAlmAnalyse(dto); |
| | | } |
| | | |
| | | @PostMapping("getDevAlmAnalyse") |
| | | @ApiOperation("预警分析管理-设备告警") |
| | | public Response getDevAlmAnalyse(@RequestBody AlmAnalyseDto dto){ |
| | | Integer uid= ActionUtil.getUser().getId(); |
| | | dto.setUid(uid); |
| | | return devalarmDataService.getDevAlmAnalyse(dto); |
| | | } |
| | | |
| | | @PostMapping("getPwrtAlmAnalyse") |
| | | @ApiOperation("预警分析管理-电源告警") |
| | | public Response getPwrtAlmAnalyse(@RequestBody AlmAnalyseDto dto){ |