whycrzg
2021-02-20 aa885eba07f4b84390922b4b146d1806676293c0
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
package com.fgkj.controller;
 
import com.fgkj.dto.Batt_Maint_Dealarm;
import com.fgkj.dto.Batttestdatastop;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.BatttestdatastopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
@RequestMapping("battTestDataStop")
@RestController
@Api(tags = "battTestDataStop接口")
//Perry TODO
public class BatttestdatastopController{
 
    @Resource
    private BatttestdatastopService service;
 
    // private Batttestdatastop btds;
 
    @GetMapping("byInfo")
    @ApiOperation(notes = "",value="历史监测单体电压折线图")
    public ServiceModel findByInfo(@RequestBody Batttestdatastop btds){
        //System.out.println(btds);
        ServiceModel model=service.serchByCondition(btds);
        return model;
    }
    
    //7.1电池放电落后单体筛选,并将电容告警的电池组加到告警表中
    @GetMapping("badBatt")
    @ApiOperation(notes = "",value="电池放电落后单体筛选,并将电容告警的电池组加到告警表中")
    public ServiceModel serchBadBatt(@RequestBody Batt_Maint_Dealarm bmd){
        // Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class);
        //System.out.println(bmd);
        ServiceModel  model = service.serchBadBatt(bmd);
        return model;
    }
 
}