whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/BadBattMonController.java
@@ -1,16 +1,13 @@
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;
@@ -20,7 +17,7 @@
@RequestMapping("BadBattMon")
@RestController
@Api(tags = "报表统计")
public class BadBattMonController {
public class BadBattMonController extends BaseController{
    @Autowired
    private BadBattMonService service;
@@ -32,12 +29,22 @@
     * @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);
    }
}