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
package com.fgkj.actions.Ld9;
 
import java.util.List;
 
import com.fgkj.actions.ActionUtil;
import com.fgkj.dto.Ld9testdatastop;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Ld9.Ld9testdataService;
import com.fgkj.services.Ld9.Ld9testdatastopService;
 
public class Ld9testdatastopAction extends ActionUtil{
    private String json;
    private String result;
    private Ld9testdatastopService service=new Ld9testdatastopService();
    
    //历史监测容量的柱状图
    public String serchByCondition(){
        Ld9testdatastop ld9=getGson().fromJson(json, Ld9testdatastop.class);
        ServiceModel model=service.serchByCondition(ld9);
        result=tojson(model);
        return SUCCESS;
    }
    
    //根据电池组id;单体编号,test_record_count查询测试结束的信息
    public String serchByInfo(){
        Ld9testdatastop ld9=getGson().fromJson(json, Ld9testdatastop.class);
        ServiceModel model=service.serchByInfo(ld9);
        result=tojson(model);
        return SUCCESS;
    }
    
    public String getResult() {
        return result;
    }
    public void setJson(String json) {
        this.json = json;
    }
    
    
}