package com.fgkj.controller;
|
|
import com.fgkj.util.*;
|
|
import com.fgkj.dto.Batttestdata;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.BatttestdataService;
|
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.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
@RequestMapping("battTestData")
|
@RestController
|
@Api(tags = "battTestData接口")
|
public class BatttestdataController{
|
|
@Resource
|
private BatttestdataService service;
|
|
// private Batttestdata btd;
|
|
@GetMapping("byInfo")
|
@ApiOperation(notes = "",value="byInfo")
|
public ServiceModel findByInfo(@RequestBody Batttestdata btd) {
|
ServiceModel model = service.serchByCondition(btd);
|
|
model = null;
|
System.gc();
|
return model;
|
}
|
|
/**
|
* 历史数据查询
|
* @return
|
*/
|
@GetMapping("history")
|
@ApiOperation(notes = "",value="历史数据查询")
|
public ServiceModel findhistory(@RequestBody Batttestdata btd){
|
// Batttestdata btd = ActionUtil.getGson().fromJson(json, Batttestdata.class);
|
ServiceModel model = service.serchByCondition(btd);
|
|
//System.out.println("*************************");
|
return model;
|
}
|
/**
|
* 历史数据查询 <!------------- 跨域访问 -------------------->
|
* @return
|
*/
|
@GetMapping("history_ky")
|
@ApiOperation(tags = "跨域", notes = "",value="历史数据查询 跨域专用")
|
public ServiceModel findhistory_ky(@RequestBody Batttestdata btd){
|
// btd = ActionUtil.getGson().fromJson(json, Batttestdata.class);
|
ServiceModel model = service.serchByCondition_ky(btd);
|
|
return model;
|
}
|
|
}
|