whyclxw
2022-01-07 dca5fa1b0367ccbc052ef953db6adb5c2e2bc64c
src/main/java/com/whyc/controller/FBOTestDataInfController.java
@@ -1,11 +1,17 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.pojo.FBOTestDataInf;
import com.whyc.service.FBOTestDataInfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RequestMapping("fBOTestDataInf")
@RestController
@@ -15,4 +21,11 @@
    @Autowired
    private FBOTestDataInfService service;
    @GetMapping("list")
    @ApiOperation(value = "查询一体机充放电数据")
    public Response<List<FBOTestDataInf>> getList(@RequestParam Integer battGroupId){
        List<FBOTestDataInf> list = service.getList(battGroupId);
        return new Response<List<FBOTestDataInf>>().set(1,list);
    }
}