whyclj
2019-10-29 1c0469e45346d464e0c5672ee68f9ecd4fb6be7c
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
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;
    }
    
    
 
}