lxw
2023-09-21 b1d9b55dfc60ce75f1380e2142a84fe9f4a65d9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.whyc.controller;
 
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.*;
 
import java.util.List;
 
/**
 * 落后单体查询
 */
@RequestMapping("BadBattMon")
@RestController
@Api(tags = "报表统计")
public class BadBattMonController {
 
    @Autowired
    private BadBattMonService service;
 
 
    /**
     * 放电测试(查询用户管理的维护区)
     *
     * @param battinfPar
     * @return
     */
    @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.searchByInfo(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);
    }
 
}