1
81041
2019-06-20 ab3c4acf83f54f8449ca8664c4a2bb79bd30f297
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
    }
}