package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.FBOTestData;
|
import com.whyc.service.FBOTestDataInfService;
|
import com.whyc.service.FBOTestDataService;
|
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("FBOTestData")
|
@RestController
|
@Api(tags = "在线监测-一体机导入记录")
|
public class FBOTestDataController {
|
|
@Autowired
|
private FBOTestDataService service;
|
|
@GetMapping("list")
|
@ApiOperation(value = "查询一体机电池组某次测试的具体明细数据")
|
public Response<List<FBOTestData>> getList(@RequestParam int battGroupId,@RequestParam int testRecordCount){
|
List<FBOTestData> list = service.getList(battGroupId,testRecordCount);
|
return new Response<List<FBOTestData>>().set(1,list);
|
}
|
|
}
|