| | |
| | | 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; |
| | |
| | | |
| | | @RequestMapping("battRealData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battRealData接口") |
| | | public class Batt_realdataController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //按照时间倒序查出具体电池组的所有信息 |
| | | @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); |