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
package com.fgkj.actions;
 
 
import com.fgkj.dto.Batt_history;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Batt_historyService;
 
public class Batt_historyAction extends ActionUtil{
    private Batt_historyService service=new Batt_historyService();
    private String json;
    private String result;
    
    
    //查询所有的历史实时数据
    public String serchByCondition(){
        Batt_history batt_his=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_history.class);
        ServiceModel model=service.serchByCondition(batt_his);
        result=tojson(model);    
        return SUCCESS;
    }
    
    public String getResult() {
        return result;
    }
    public void setJson(String json) {
        this.json = json;
    }
    
 
}