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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.FBOTestDataInf;
import com.whyc.service.FBOTestDataInfService;
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("fBOTestDataInf")
@RestController
@Api(tags = "在线监测-一体机导入记录")
public class FBOTestDataInfController {
 
    @Autowired
    private FBOTestDataInfService service;
 
    @GetMapping("list")
    @ApiOperation(value = "查询一体机充放电数据")
    public Response<List<FBOTestDataInf>> getList(@RequestParam Integer battGroupId){
        List<FBOTestDataInf> list = service.getList(battGroupId);
        return new Response<List<FBOTestDataInf>>().set(1,list);
    }
 
    @DeleteMapping
    @ApiOperation(value = "删除某次测试记录")
    public Response delete(@RequestParam Integer battGroupId,@RequestParam Integer testRecordCount){
        service.delete(battGroupId,testRecordCount);
        return new Response().set(1,"删除成功");
    }
 
}