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
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.fgkj.actions.ram;
 
import java.util.List;
 
import com.fgkj.actions.ActionUtil;
import com.fgkj.dto.BattInf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.ram.FBS9100;
import com.fgkj.dto.ram.Fbs9100s_dcdc_state;
import com.fgkj.services.ram.Fbs9100s_dcdc_stateService;
import com.google.gson.reflect.TypeToken;
 
public class Fbs9100s_dcdc_stateAction extends ActionUtil{
    private Fbs9100s_dcdc_stateService service = new Fbs9100s_dcdc_stateService();
    private String result;
    private String json;
    //根据设备id查询设备的充放电设备模块的参数信息
    public String serchByCondition(){
        FBS9100 fbs9100 = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, FBS9100.class);
        ServiceModel model = service.serchByCondition(fbs9100);
        result = tojson(model);
        return SUCCESS;
    }
    //刷新dcdc模块信息表格中数据
    public String refreshTable(){
        List<FBS9100> list= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<FBS9100>>(){}.getType());
        ServiceModel model = service.refreshTable(list);
        result = tojson(model);
        return SUCCESS;
    }
    public String getResult() {
        return result;
    }
    public void setResult(String result) {
        this.result = result;
    }
    public String getJson() {
        return json;
    }
    public void setJson(String json) {
        this.json = json;
    }
    
    
 
}