whycxzp
2023-10-27 ac79b74a686aa0d02e9e4b0f3c6882be29042580
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.AvoidPlan;
import com.whyc.pojo.BattCompare;
import com.whyc.service.BattCompareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@RestController
@Api(tags = "天一电厂3D")
@RequestMapping("battCompare")
public class BattCompareController {
    @Autowired
    private BattCompareService service;
 
    @ApiOperation("添加电池组对应关系表")
    @PostMapping("addCompare")
    private Response addCompare(@RequestBody List<BattCompare> list){
        return service.addCompare(list);
    }
 
    @ApiOperation(value = "天一电厂3D前100比历史数据")
    @GetMapping("serchDate100")
    public Response serchDate100() {
        return service.serchDate100();
    }
 
    @ApiOperation(value = "读取电池组对应关系")
    @GetMapping("getCompare")
    public Response getCompare() {
        return service.getCompare();
    }
}