whycrzg
2021-11-19 c6638fd3fe9dd6d4cf8a038e96d6e36d9adf01cd
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
package com.whyc.controller;
 
import com.whyc.dto.BattState;
import com.whyc.dto.Batt_Maint_Dealarm;
import com.whyc.dto.Response;
import com.whyc.service.BattTtstateService;
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("BattRtstate")
@RestController
@Api(tags = "报表统计")
public class BattRtstateController {
 
    @Resource
    private BattTtstateService service;
 
 
    @PostMapping("/searchBattLife")
    @ApiOperation(notes = "{\n" +
            "\t\"binf\": {\n" +
            "\t\t\"num\": 0,\n" +
            "\t\t\"battGroupId\": 0,\n" +
            "\t\t\"stationName\": \"\",\n" +
            "\t\t\"stationName1\": \"\"\n" +
            "\t},\n" +
            "\t\"page\": {\n" +
            "\t\t\"pageAll\": 0,\n" +
            "\t\t\"pageCurr\": 0,\n" +
            "\t\t\"pageSize\": 0\n" +
            "\t},\n" +
            "\t\"uinf\": {\n" +
            "\t\t\"uid\": 0\n" +
            "\t}\n" +
            "}", value = "电池实时状态查询/searchBattLife")
    public Response<List<BattState>> searchBattLife(@RequestBody Batt_Maint_Dealarm bmd) {
 
        return service.searchBattLife(bmd);
    }
 
}