| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.BattState; |
| | | import com.whyc.dto.Batt_Maint_Dealarm; |
| | | import com.whyc.dto.BattMaintDealarm; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.service.BattTtstateService; |
| | | import com.whyc.pojo.Battinf; |
| | | import com.whyc.service.BattRtstateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | @RequestMapping("BattRtstate") |
| | | @RestController |
| | | @Api(tags = "报表统计") |
| | | public class BattRtstateController { |
| | | public class BattRtstateController extends BaseController{ |
| | | |
| | | @Resource |
| | | private BattTtstateService service; |
| | | private BattRtstateService service; |
| | | |
| | | |
| | | @PostMapping("/searchBattLife") |
| | | @ApiOperation(notes = "{\n" + |
| | | "\t\"binf\": {\n" + |
| | | "\t\t\"num\": 0,\n" + |
| | | "\t\t\"battGroupId\": 0,\n" + |
| | | "\t\t\"stationName\": \"\",\n" + |
| | | "\t\t\"stationName1\": \"\"\n" + |
| | | "\t},\n" + |
| | | "\t\"page\": {\n" + |
| | | "\t\t\"pageAll\": 0,\n" + |
| | | "\t\t\"pageCurr\": 0,\n" + |
| | | "\t\t\"pageSize\": 0\n" + |
| | | "\t},\n" + |
| | | "\t\"uinf\": {\n" + |
| | | "\t\t\"uid\": 0\n" + |
| | | "\t}\n" + |
| | | "}", value = "电池实时状态查询/searchBattLife") |
| | | public Response<List<BattState>> searchBattLife(@RequestBody Batt_Maint_Dealarm bmd) { |
| | | @ApiOperation( value = "电池实时状态查询/searchBattLife",notes = " binf: {\n" + |
| | | " num: this.battStatus, //电池状态\n" + |
| | | " StationName1: this.selectValue1, //维护区\n" + |
| | | " StationName: this.selectValue2, //机房类型\n" + |
| | | " BattGroupId: this.selectValue3 || 0, //电池组名称ID\n" + |
| | | " }") |
| | | public Response searchBattLife(@RequestParam int pageNum,@RequestParam int pageSize, @RequestBody Battinf binf) { |
| | | return service.searchBattLife(pageNum,pageSize,binf); |
| | | } |
| | | |
| | | return service.searchBattLife(bmd); |
| | | @GetMapping("/serchByCondition") |
| | | @ApiOperation( value = "在线监测-实时监控-查询实时组端信息") |
| | | public Response serchByCondition(@RequestParam int battGroupId) { |
| | | return service.serchByCondition(battGroupId); |
| | | } |
| | | |
| | | } |