whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
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
package com.fgkj.controller.Ld9;
 
import com.fgkj.dto.Ld9testdata;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Ld9.Ld9testdataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
 
@RequestMapping("ld9TestData")
@RestController
@Api(tags = "ld9TestData接口")
public class Ld9testdataController{
 
    @Resource
    private Ld9testdataService service;
    
    //历史数据查询
    @PostMapping("byCondition")
    @ApiOperation(notes = "",value="历史数据查询")
    public ServiceModel serchByCondition(@RequestParam Integer battGroupId,@RequestParam Integer test_record_count,
                                         @RequestParam Integer record_num,@RequestParam Integer test_monnum) {
        Ld9testdata ld9 = new Ld9testdata();
        ld9.setBattGroupId(battGroupId);            //1000002
        ld9.setTest_record_count(test_record_count);//2
        ld9.setRecord_num(record_num);                //2
        ld9.setTest_monnum(test_monnum);            //1
        ServiceModel model=service.serchByCondition(ld9);
 
        return model;
    }
    //查询某次测试下电池组节数放电情况
    @PostMapping("byInfo")
    @ApiOperation(notes = "",value="查询某次测试下电池组节数放电情况")
    public ServiceModel serchByInfo(@RequestParam Integer battGroupId,@RequestParam Integer test_record_count) {
        Ld9testdata ld9 = new Ld9testdata();
        ld9.setBattGroupId(battGroupId);
        ld9.setTest_record_count(test_record_count);
        ServiceModel model=service.serchByInfo(ld9);
 
        return model;
    }
    
}