package com.fgkj.actions; import java.util.List; import com.fgkj.dto.Fbsdev_Statechange_inf; import com.fgkj.dto.ServiceModel; import com.fgkj.services.Fbsdev_Statechange_infService; import com.opensymphony.xwork2.ActionSupport; public class Fbsdev_Statechange_infAction extends ActionUtil{ private String json; private String result; private Fbsdev_Statechange_infService service=new Fbsdev_Statechange_infService(); //根据设备id,时间等条件筛选设备 public String serchByCondition(){ Fbsdev_Statechange_inf state_inf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbsdev_Statechange_inf.class); ServiceModel model=service.serchByCondition(state_inf); result=tojson(model); return SUCCESS; } public String getResult() { return result; } public void setJson(String json) { this.json = json; } }