package com.fgkj.controller;
|
|
import com.fgkj.dto.Btsstaechange_inf;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.history.Btsstaechange_infService;
|
import io.swagger.annotations.Api;
|
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;
|
|
@RequestMapping("btsStateChange")
|
@RestController
|
@Api
|
public class Btsstaechange_infController {
|
|
@Autowired
|
private Btsstaechange_infService service;
|
|
|
//按照时间顺序显示设备的事件信息
|
@GetMapping("byCondition")
|
public ServiceModel serchByCondition(@RequestBody Btsstaechange_inf binf) {
|
// Btsstaechange_inf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Btsstaechange_inf.class);
|
ServiceModel model=service.serchByCondition(binf);
|
|
return model;
|
}
|
|
|
|
}
|