package com.fgkj.controller;
|
|
import com.fgkj.dto.Batt_realdata;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.history.Batt_realdataService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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("battRealData")
|
@RestController
|
@Api(tags = "battRealData接口")
|
public class Batt_realdataController{
|
|
@Resource
|
private Batt_realdataService service;
|
|
//按照时间倒序查出具体电池组的所有信息
|
@GetMapping("byCondition")
|
@ApiOperation(notes = "",value="按照时间倒序查出具体电池组的所有信息")
|
public ServiceModel serchByCondition(@RequestBody Batt_realdata realData) {
|
// Batt_realdata breal=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_realdata.class);
|
ServiceModel model=service.serchByCondition(realData);
|
|
return model;
|
}
|
|
}
|