package com.fgkj.actions.ram;
|
|
import com.fgkj.actions.ActionUtil;
|
import com.fgkj.dto.JhState;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.ram.JhStateService;
|
|
public class JhStateAction extends ActionUtil{
|
private JhStateService service=new JhStateService();
|
private String json;
|
private String result;
|
|
//根据设备id查询设备均衡供电模块的信息
|
public String serchByCondition() {
|
JhState jh=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, JhState.class);
|
ServiceModel model=service.serchByCondition(jh);
|
result=tojson(model);
|
return SUCCESS;
|
}
|
|
|
|
|
public String getResult() {
|
return result;
|
}
|
public void setJson(String json) {
|
this.json = json;
|
}
|
|
|
|
}
|