package com.fgkj.actions;
|
|
import com.fgkj.dto.Sensor_inf;
|
import com.fgkj.dto.Sensor_state;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Sensor_stateService;
|
|
|
public class Sensor_stateAction extends ActionUtil{
|
private Sensor_stateService service=new Sensor_stateService();
|
private String json;
|
private String result;
|
|
|
//根据设备id查询状态
|
public String serchByCondition(){
|
Sensor_state state=ActionUtil.getGson().fromJson(json, Sensor_state.class);
|
ServiceModel model=service.serchByCondition(state);
|
result=tojson(model);
|
return SUCCESS;
|
}
|
|
|
|
|
public String getResult() {
|
return result;
|
}
|
public void setJson(String json) {
|
this.json = json;
|
}
|
|
|
}
|