whyclxw
2024-04-28 b25b814a949d2065a61fd3167206ffb51a57af65
src/main/java/com/whyc/controller/BattCompareController.java
@@ -7,10 +7,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
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 org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -26,4 +23,16 @@
    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();
    }
}