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.Ld9;
 
import com.fgkj.actions.ActionUtil;
import com.fgkj.dto.Ld9testdata;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Ld9.Ld9testdataService;
 
public class Ld9testdataAction extends ActionUtil{
    private String json;
    private String result;
    private Ld9testdataService service=new Ld9testdataService();
    
    
    //历史数据查询
    public String serchByCondition() {
        Ld9testdata ld9=ActionUtil.getGson().fromJson(json, Ld9testdata.class);
        ServiceModel model=service.serchByCondition(ld9);
        result=tojson(model);
        return SUCCESS;
    }
    //查询某次测试下电池组节数放电情况
    public String serchByInfo() {
        Ld9testdata ld9=ActionUtil.getGson().fromJson(json, Ld9testdata.class);
        ServiceModel model=service.serchByInfo(ld9);
        result=tojson(model);
        return SUCCESS;
    }
    
    public String getResult() {
        return result;
    }
    public void setJson(String json) {
        this.json = json;
    }
    
    
}