whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/Fbsdev_Statechange_infController.java
@@ -3,24 +3,27 @@
import com.fgkj.dto.Fbsdev_Statechange_inf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Fbsdev_Statechange_infService;
import com.opensymphony.xwork2.ActionSupport;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
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("fbsDevStateChangeInf")
@RestController
@Api
@Api(tags = "fbsDevStateChangeInf接口")
//Perry TODO
public class Fbsdev_Statechange_infController{
   @Autowired
   @Resource
   private Fbsdev_Statechange_infService service;
   
   //根据设备id,时间等条件筛选设备
   @GetMapping("byCondition")
   @ApiOperation(notes = "",value="根据设备id,时间等条件筛选设备")
   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);