whyclxw
2021-12-15 809111afdd91e43f9aab288533a68e4da3881a1b
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
51
52
53
package com.whyc.controller;
 
import com.whyc.dto.AllModel;
import com.whyc.dto.Batt_Maint_Dealarm;
import com.whyc.dto.Response;
import com.whyc.service.BattMaintDealarmService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
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;
import java.util.List;
 
/**
 * 电池组统计分析查询、蓄电池组后评估
 */
@RequestMapping("BattMaintDealarm")
@RestController
@Api(tags = "报表统计")
public class BattMaintDealarmController {
 
    @Resource
    private BattMaintDealarmService battMaintDealarmService;
 
    /**
     * 电池组统计分析查询
     *
     * @param bmd
     * @return
     */
    //1.3根据电池组id查询电池的电导和充放电信息
    @PostMapping("searchLow")
    @ApiOperation(notes = "TODO ", value = "电池组统计分析查询/serchLow")
    public Response<List<AllModel>> searchLow(@RequestBody Batt_Maint_Dealarm bmd) {
 
        return battMaintDealarmService.searchLow(bmd);
//        return null;
    }
 
    /**
     * 蓄电池组后评估
     */
    @PostMapping("searchByCondition")
    @ApiOperation(notes = "TODO ", value = "蓄电池组后评估/searchByCondition")
    public Response<List<AllModel>> searchByCondition(@RequestBody Batt_Maint_Dealarm bmd) {
 
        return battMaintDealarmService.searchByCondition(bmd);
//        return null;
    }
}