whyclxw
2021-12-16 06a3ee2348db3261bcfbc7b21f28306e398fd6a6
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
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.BattRtstateService;
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 BattRtstateService service;
 
 
    @PostMapping("/searchBattLife")
    @ApiOperation( value = "电池实时状态查询/searchBattLife")
    public Response<List<BattState>> searchBattLife(@RequestBody Batt_Maint_Dealarm bmd) {
 
        return service.searchBattLife(bmd);
    }
 
}