| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Batt_Maint_Dealarm; |
| | | import com.whyc.dto.BattMaintDealarm; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.paramter.BattinfPar; |
| | | import com.whyc.service.BadBattMonService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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 java.util.List; |
| | | |
| | |
| | | @RequestMapping("BadBattMon") |
| | | @RestController |
| | | @Api(tags = "报表统计") |
| | | public class BadBattMonController { |
| | | public class BadBattMonController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private BadBattMonService service; |
| | |
| | | * @param battinfPar |
| | | * @return |
| | | */ |
| | | @PostMapping("/searchByInfo") |
| | | @ApiOperation(notes = "TODO ", value = "落后单体查询/searchByInfo") |
| | | public Response<List<Batt_Maint_Dealarm>> searchByInfo(@RequestBody BattinfPar battinfPar) { |
| | | |
| | | return service.searchByInfo(battinfPar);//TODO RZG |
| | | @PostMapping("searchByInfo") |
| | | @ApiOperation(notes = "BadBatt_monAction!serchByInfo ", value = "落后单体查询/searchByInfo") |
| | | public Response<List<BattMaintDealarm>> searchByInfo(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody BattinfPar battinfPar) { |
| | | return service.searchByInfo2(pageNum, pageSize, battinfPar); |
| | | } |
| | | |
| | | @GetMapping("searchNums") |
| | | @ApiOperation(value = "落后单体数量查询/searchNums") |
| | | public Response searchNums() { |
| | | return service.searchNums(); |
| | | } |
| | | |
| | | @GetMapping("getProductQuaAnalysis") |
| | | @ApiOperation(value = "测试/getProductQuaAnalysis") |
| | | public Response getProductQuaAnalysis() { |
| | | return service.getProductQuaAnalysis(1001); |
| | | } |
| | | |
| | | } |