package com.fgkj.controller;
|
|
import com.fgkj.util.*;
|
|
import com.fgkj.dto.Fbsdev_Statechange_inf;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Fbsdev_Statechange_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("fbsDevStateChangeInf")
|
@RestController
|
@Api
|
public class Fbsdev_Statechange_infController{
|
|
@Autowired
|
private Fbsdev_Statechange_infService service;
|
|
//根据设备id,时间等条件筛选设备
|
@GetMapping("byCondition")
|
public ServiceModel serchByCondition(@RequestBody Fbsdev_Statechange_inf state_inf){
|
// Fbsdev_Statechange_inf state_inf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbsdev_Statechange_inf.class);
|
ServiceModel model=service.serchByCondition(state_inf);
|
|
return model;
|
}
|
|
|
|
|
|
}
|