package com.fgkj.actions.bts61850;
|
|
import com.fgkj.actions.ActionUtil;
|
import com.fgkj.dto.BTS_61850_state;
|
import com.fgkj.dto.LD9_state;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.dto.User_inf;
|
import com.fgkj.services.bts61850.BTS_61850_stateService;
|
|
public class BTS_61850_stateAction extends ActionUtil{
|
private String json;
|
private String result;
|
private BTS_61850_stateService service=new BTS_61850_stateService();
|
//查询BTS_61850_stateService实时数据
|
public String searchAll() {
|
ServiceModel model=service.searchAll();
|
result=tojson(model);
|
return SUCCESS;
|
}
|
|
//11.1BTS_61850设备通信状态查询
|
public String serchByCondition(){
|
//System.out.println(json);
|
BTS_61850_state bts= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BTS_61850_state.class);
|
User_inf uinf=(User_inf) ActionUtil.getUser();
|
bts.setNum(uinf.getUId());//将用户id存放在BTS_61850_state的num中用于处理用户管理的机房问题
|
ServiceModel model = service.serchByCondition(bts);
|
result = tojson(model);
|
return SUCCESS;
|
}
|
public String getResult() {
|
return result;
|
}
|
public void setJson(String json) {
|
this.json = json;
|
}
|
}
|