whyclxw
2024-06-15 1a0bfdfde3df69c67f71a77a72e40ed816655c26
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.BattTestInfDataService;
import com.whyc.service.BattTestInfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@Api(tags = "电池组充放电记录")
@RequestMapping("tinf")
public class BattTestInfController {
    @Autowired
    private BattTestInfService service;
    @Autowired
    private BattTestInfDataService dataService;
 
    @ApiOperation("查询充放电记录")
    @GetMapping("getTinfHis")
    public Response getTinfHis(@RequestParam int binfId
            , @RequestParam int pageNum, @RequestParam int pageSize){
        Response res=service.getTinfHis(binfId,pageNum,pageSize);
        return res;
    }
 
    @ApiOperation("根据充放电记录查询单体放电历史详情")
    @GetMapping("getTDataHis")
    public Response getTDataHis(@RequestParam int binfId,@RequestParam int testRecordCount){
        Response res=dataService.getTDataHis(binfId,testRecordCount);
        return res;
    }
}